# Connect NATS to Your AI Agent (Universal MCP)

> Use your AI to build software, monitor systems, and manage cloud resources in NATS — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http nats https://api.universalmcp.app/mcp/nats`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/nats` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "nats", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: NATS | Category: Manufacturing & Supply Chain (NATS) | Auth: Guided self-hosted connector setup | Deployment: self-hosted
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Stream and consumer metrics, Accounts and NKeys, Issue drafts; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://universalmcp.app/mcp/nats | Guide: https://universalmcp.app/mcp/nats
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (15 actions: 7 Read, 8 Write)
Perform over 10 actions across security & releases, messaging, cluster topology, client integration, and edge & iot. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Security & Releases (4):** Rotate Post-Quantum Keys (write), Review Security Configuration (read), Download Server Release (read), Track Release Roadmap (read)
- **Messaging (3):** Publish Messages to Subjects (write), Subscribe to Subjects (read), Issue Request-Reply Calls (write)
- **Cluster Topology (3):** Configure Leaf Node Connection (write), Add Supercluster Region (write), Review Cluster Routing (read)
- **Client Integration (3):** Install Official Client Library (write), Browse Community Clients (read), Connect Agentic AI Agents (write)
- **Edge & IoT (2):** Connect Edge Sensor Gateway (write), Monitor Edge Site Connections (read)

## Example Prompts for NATS
- **Check consumer lag:** "In NATS, list consumers whose pending message count rose over the last hour, sorted by lag size."
- **Review stream replicas:** "Using NATS, confirm replica sync status for every JetStream stream and flag any that fell out of sync."
- **Audit account permissions:** "In NATS, list accounts and users whose publish or subscribe permissions changed in the last seven days."
- **Draft lag ticket:** "In NATS, draft an engineering issue describing the orders.created lag and hold it for my review before filing."
