NATS MCP Server
About
MCP server for NATS messaging system using NATS CLI - enabling AI agents to interact with NATS messaging
Explore
- Publish messages with advanced options (headers, templates, reply subjects)
- Subscribe to subjects with configurable timeouts and message counts
- Request-reply pattern support with headers
- Full NATS CLI integration
- Error handling and cleanup
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
NATS MCP ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
- Node.js >= 14.0.0
- NATS CLI (nats)
sudo apt-get update
sudo apt-get install nats-server
Using yum (RHEL/CentOS):
bash
After installation, verify the CLI works:
```bash
npm install @modelcontextprotocol/nats-mcp-server
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"nats mcp server": {
"nats": {
"command": "node",
"args": [
"/path/to/nats-mcp-server/build/index.js"
],
"env": {
"NATS_URL": "nats://localhost:4222"
}
}
}
}
}
McpServers
{
"nats": {
"command": "node",
"args": [
"/path/to/nats-mcp-server/build/index.js"
],
"env": {
"NATS_URL": "nats://localhost:4222"
}
}
}
An MCP (Model Context Protocol) server that provides access to NATS, a cloud native messaging system, through the NATS CLI.
Features
- Publish messages with advanced options (headers, templates, reply subjects)
- Subscribe to subjects with configurable timeouts and message counts
- Request-reply pattern support with headers
- Full NATS CLI integration
- Error handling and cleanup
Requirements
- Node.js >= 14.0.0
- NATS CLI (nats)
Installing NATS CLI
macOS
Using Homebrew:
brew tap nats-io/nats-tools
brew install nats-io/nats-tools/nats
Linux
Using snap:
snap install nats
Using apt (Debian/Ubuntu):
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



