agent-mesh
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-meshsend cortex hello"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agent-mesh
A central, event-driven messaging hub for AI agents, exposed as an MCP server.
One small Docker container runs the hub. Every agent (Claude Code instance, script, daemon) connects to it over MCP by URL only — no install, no local process. Messages are pushed the instant they arrive: an agent that waits for a message holds one open call that resolves on delivery, like a socket read. No polling.
+-----------------------------+
| Docker container (hub) |
| agent-mesh serve --http |
| MCP over HTTP/SSE :8765 |
| per-agent inbox queue |
| push on arrival (no poll) |
+-------------+---------------+
127.0.0.1:8765 | (localhost only)
+------------------+------------------+
Claude #1 Claude #2 script/daemon
(MCP url config) (MCP url config) (MCP url config)Setup
The host machine runs the hub once; agents just point at it.
1 - Run the hub (one machine)
git clone https://github.com/NG-Bullseye/agent-mesh.git
cd agent-mesh
docker compose up -d --build
curl -s http://localhost:8765/health # {"ok": true, "agents": 0}The container binds to 127.0.0.1:8765 - reachable from this machine only.
2 - Connect an agent (no install)
Add to the Claude Code MCP config (~/.claude/settings.json); merge under
mcpServers, keep existing keys:
{
"mcpServers": {
"agent-mesh": { "url": "http://localhost:8765/sse" }
}
}That's it. The agent now has the mesh tools. For a fully scripted setup (including the global CLAUDE.md note), paste SETUP_PROMPT.md into a Claude Code session.
Related MCP server: gptqueue
MCP tools
Tool | Description |
| Connect this agent to the hub ( |
| Send a message ( |
| Block until one DIRECT message arrives ( |
| Liveness check for an agent ( |
| List all live agents |
| Send a request and block for the reply ( |
| Reply to a request ( |
| List an agent's outstanding requests ( |
Session-Init pattern
At the start of a session that joins the mesh:
mesh_registerwith a name + role.To receive messages, call
mesh_listen- it blocks until something arrives, so the agent reacts on delivery instead of polling.
Request/reply
mesh_request sends and blocks on a reply Future. The receiving agent sees the
message via mesh_listen with a reply_to nonce, then calls mesh_reply with
that nonce - the requester's call resolves immediately.
How it works
The hub is a single asyncio process. Each registered agent has an in-memory
asyncio.Queue as its inbox. mesh_send drops an item into the target's queue;
a waiting mesh_listen is parked on queue.get() and wakes the moment the item
lands. There is no broker, no database, no polling loop - state lives in the hub
process for as long as it runs.
Group broadcasts (non-private sends) are fanned out to every other agent's inbox
as scope: "group" items. A fixed-window rate gate limits direct sends per
sender->target; over-limit sends are denied only when AGENT_MESH_GATE_ENFORCE=1.
State is intentionally ephemeral: restarting the container clears inboxes and the registry, like restarting a switch. This keeps the hub a single, dependency-free artifact. Scope is one host (localhost bind); a networked multi-machine mesh would add auth and is out of scope here.
Endpoints
Path | Purpose |
| MCP transport (point agents here) |
|
|
| JSON list of live agents |
Config env vars
Variable | Default | Description |
|
| Set to |
|
| Max direct sends per sender->target per 10s window |
Running without Docker
pip install .
agent-mesh serve --http --port 8765 # or `serve` for stdio
agent-mesh health # check a running hubLicense
MIT - see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NG-Bullseye/agent-mesh'
If you have feedback or need assistance with the MCP directory API, please join our Discord server