Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables inter-agent communication via RabbitMQ, allowing agents to ask and answer questions routed by topic.

README.md

agent-mesh-mcp

MCP server for inter-agent communication via RabbitMQ. Two transports:

  • stdio (index.mjs) — for local Claude Code / Cursor sessions
  • HTTP (server.mjs) — for remote access from Claude.ai, Claude Desktop, or mobile via Streamable HTTP + Keycloak OAuth

Install

npm install -g agent-mesh-mcp

Local Usage (stdio)

Claude Code (~/.claude/settings.local.json)

{
  "mcpServers": {
    "agent-mesh": {
      "command": "agent-mesh-mcp",
      "env": {
        "RABBITMQ_URL": "amqp://user:pass@your-rabbitmq:5672/",
        "RABBITMQ_MGMT_URL": "http://your-rabbitmq:15672",
        "EXCHANGE_NAME": "agents",
        "AGENT_NAME": "human"
      }
    }
  }
}

Cursor (.cursor/mcp.json)

Same format as above.

Remote Usage (HTTP)

Run server.mjs as a standalone HTTP server with Keycloak OAuth:

MCP_PORT=3100 \
KEYCLOAK_URL=https://your-keycloak \
KEYCLOAK_REALM=master \
KEYCLOAK_CLIENT_ID=agent-mesh \
KEYCLOAK_CLIENT_SECRET=your-secret \
RABBITMQ_URL=amqp://user:pass@your-rabbitmq:5672/ \
RABBITMQ_MGMT_URL=http://your-rabbitmq:15672 \
EXCHANGE_NAME=agents \
node server.mjs

Then add as a custom connector in Claude.ai:

  • URL: https://your-domain/mcp
  • Claude.ai handles OAuth automatically via /.well-known/oauth-authorization-server

Architecture

Claude.ai / Phone / Desktop
        |
        v  HTTPS
   your-domain/mcp (Cloudflare Tunnel or reverse proxy)
        |
        v
   server.mjs (Streamable HTTP + OAuth)
        |
        v  AMQP
   RabbitMQ --> All workers (any machine)

OAuth Flow

The server proxies OAuth to Keycloak:

  • GET /authorize — redirects to Keycloak login
  • POST /token — exchanges auth code for access token via Keycloak
  • POST /register — dynamic client registration
  • GET /.well-known/oauth-authorization-server — OAuth metadata
  • GET /health — health check (no auth)

All /mcp requests require a valid Keycloak bearer token.

Tools

list_agents()

List all online agents and their topics.

ask_agent(topic, message, timeout?)

Ask another agent a question via RabbitMQ.

Parameters:

  • topic — routing key (e.g. datalake, platform, ops, prod)
  • message — the message to send
  • timeout — seconds to wait for reply (default: 900)

Returns: the agent's reply, or a timeout message.

How It Works

Caller --> ask_agent(topic, message)
              |
              v
         RabbitMQ (topic exchange)
              |
              v
         Worker on ask.<topic> queue
              |
              v
         Agent processes message (Claude Agent SDK)
              |
              v
         Reply --> RabbitMQ --> Caller

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | RABBITMQ_URL | amqp://guest:guest@localhost:5672/ | RabbitMQ connection URL | | RABBITMQ_MGMT_URL | http://localhost:15672 | RabbitMQ management API | | AGENT_NAME | unknown | Name of the calling agent | | ASK_TIMEOUT | 900 | Reply timeout in seconds | | EXCHANGE_NAME | agents | RabbitMQ exchange name | | MCP_PORT | 3100 | HTTP server port (server.mjs only) | | KEYCLOAK_URL | https://identity.openbiocure.ai | Keycloak base URL (server.mjs only) | | KEYCLOAK_REALM | openbiocure | Keycloak realm (server.mjs only) | | KEYCLOAK_CLIENT_ID | agent-mesh | OAuth client ID (server.mjs only) | | KEYCLOAK_CLIENT_SECRET | — | OAuth client secret (server.mjs only) |

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Other servers.