Feedback

NATS MCP Server

@bmorphism Claim

Basic information

Category
License
Not specified
Transports
stdio
Author
bmorphism
Submitted by
Community
Quality
25
Stars
7

About NATS MCP Server

MCP server for NATS messaging system using NATS CLI - enabling AI agents to interact with NATS messaging

NATS MCP Server is a MCP server in the Other category listed in the AddMCP.net directory, published by bmorphism. Supported transport: stdio. The repository has 7 GitHub stars. Source code is hosted on github.com. Related topics: ai-agents, mcp, messaging, nats.

Setup

{
    "mcpServers": {
        "nats": {
            "command": "node",
            "args": [
                "/path/to/nats-mcp-server/build/index.js"
            ],
            "env": {
                "NATS_URL": "nats://localhost:4222"
            }
        }
    }
}

NATS MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "nats": {
            "command": "node",
            "args": [
                "/path/to/nats-mcp-server/build/index.js"
            ],
            "env": {
                "NATS_URL": "nats://localhost:4222"
            }
        }
    }
}

NATS MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is NATS MCP Server?

NATS MCP Server is a Model Context Protocol server that provides access to NATS, a cloud-native messaging system, through the NATS CLI. It enables AI models to publish, subscribe to, and request-reply over NATS subjects.

How to use NATS MCP Server?

Install via npm (npm install @modelcontextprotocol/nats-mcp-server) or build from source. Configure with the NATS_URL environment variable (default nats://localhost:4222). Add the server to your MCP client’s configuration (e.g., Cline or Claude Desktop) and then invoke its tools: publish, subscribe, or request.

Key features of NATS MCP Server

  • Publish messages with headers, templates, and reply subjects
  • Subscribe to subjects with configurable timeouts and message counts
  • Request-reply pattern support with optional headers
  • Go template functions for dynamic message content
  • Full NATS CLI integration and robust error handling

Use cases of NATS MCP Server

  • AI assistants sending commands or events via NATS subjects
  • Implementing request-reply service calls (e.g., asking a service for the time)
  • Broadcasting messages to multiple subscribers with templates or headers
  • Testing and debugging NATS messaging patterns from an MCP client

Frequently asked questions

1 What are the required dependencies?

Node.js >= 14.0.0 and the NATS CLI (nats) installed on the system.

2 How do I install the NATS CLI?

Installation varies by OS: Homebrew on macOS (brew install nats), snap install nats on Linux, Chocolatey or Scoop on Windows, or build from source with Go.

3 How do I configure the NATS server URL?

Set the NATS_URL environment variable before starting the MCP server. Default is nats://localhost:4222.

4 What MCP tools does the server offer?

Three tools: publish (send messages with optional headers, templates, and reply subjects), subscribe (receive messages with timeout and count limits), and request (send a request and wait for a reply with optional headers).

5 Can I use templates in messages?

Yes. When template: true is set on publish, the message can use functions like {{Count}}, {{Time}}, {{Random min max}}, and others.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬