nats-mcp MCP Server

MCP server for NATS — publish messages, request-reply, manage JetStream streams, use the KV store, and inspect server diagnostics over stdio.

Local serverstdio

What is the nats-mcp Server?

nats-mcp is an MCP project maintained in the daanrongen/nats-mcp repository. The maintainer describes its purpose as “MCP server for NATS — publish messages, request-reply, manage JetStream streams, use the KV store, and inspect server diagnostics over stdio”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using bunx. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares NATS_URL. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
DomainTools
Corepublish, request
Streamsstream_list, stream_info, stream_create, stream_delete, stream_publish, stream_fetch, stream_consumer_create
KVkv_create_bucket, kv_list_buckets, kv_get, kv_put, kv_delete, kv_list_keys, kv_history
Serverserver_info

How to install the nats-mcp Server

{
  "mcpServers": {
    "nats": {
      "type": "stdio",
      "command": "bunx",
      "args": [
        "@daanrongen/nats-mcp"
      ],
      "env": {
        "NATS_URL": "nats://localhost:4222"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
NATS_URLDeclared in the maintainer’s client configuration.Yes