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
Project-agnostic inter-agent messaging multiplexer via Redis Streams, with an MCP server for Claude Code integration. Any number of agents can send, receive, and ping each other over a shared Redis instance — no direct agent-to-agent connections required.
One-shot setup on a new machine
Open Claude Code and paste the prompt from SETUP_PROMPT.md.
Claude will install agent-mesh, start Redis, configure the MCP server, and patch your ~/.claude/CLAUDE.md — no manual steps.
Related MCP server: gptqueue
Quick start
# Start Redis
docker-compose up -d
# Install (editable)
pip install -e .
# Verify
agent-mesh whoCLI usage
# Send a message (appears on group stream + private stream of target)
agent-mesh send cortex "hello from watchdog" --from watchdog
# Send privately (only private stream of target, no group echo)
agent-mesh send cortex "private note" --from watchdog --private
# Send and track reply expectation in pending ledger
agent-mesh send cortex "please respond" --from watchdog --expect-reply --within 120
# Listen (blocks up to 60s, returns on first DIRECT message)
agent-mesh listen watchdog
# Persistent monitor daemon (singleton via flock)
agent-mesh monitor watchdog
# Ping
agent-mesh ping cortex --from watchdog
# Request/reply roundtrip
agent-mesh request cortex "what time is it?" --from watchdog
# (on cortex side) agent-mesh reply mesh:reply:<nonce> "it is noon" --from cortex
# Registry
agent-mesh register cortex --role "main implementer"
agent-mesh who
# Pending ledger
agent-mesh pending watchdogMCP server setup
stdio mode (default — recommended for Claude Code)
Add to your Claude Code MCP config (e.g. .claude/settings.json):
{
"mcpServers": {
"agent-mesh": {
"command": "agent-mesh",
"args": ["serve"],
"env": {
"AGENT_MESH_REDIS_URL": "redis://localhost:6379/0"
}
}
}
}HTTP/SSE mode
agent-mesh serve --http --port 8765Add to MCP config:
{
"mcpServers": {
"agent-mesh": {
"url": "http://localhost:8765/sse"
}
}
}Available MCP tools
Tool | Description |
| Send a message to an agent |
| Ping an agent and measure latency |
| List all registered agents |
| Register an agent in the registry |
| Wait for one message on a private stream |
| Send a request and wait for a reply |
| List pending reply-expected entries |
Architecture
Streams layout
mesh:group — broadcast; all agents see all messages
mesh:to_<name> — private stream per agent
mesh:pong:<nonce> — ephemeral ping/pong rendezvous
mesh:reply:<nonce> — ephemeral request/reply rendezvous
mesh:gate:audit — rate gate audit logAll streams are capped at 2000 entries (approximate MAXLEN).
Registry
Agents self-register via agent-mesh register <name> or mesh_register MCP tool. Each entry is a Redis key mesh:registry:<name> with a 180s TTL — the monitor daemon renews the lease on each listen iteration. agent-mesh who scans all registry keys and prints live agents.
Rate gate
A fixed-window counter (mesh:gate:rate:<sender>-><target>) limits sends to AGENT_MESH_GATE_LIMIT per 10s window. In observe mode (default) over-limit sends are logged to the audit stream but still delivered. Set AGENT_MESH_GATE_ENFORCE=1 to hard-deny.
Notify log + harness monitor integration
Every DIRECT message received by do_listen is appended to ~/.cache/agent-mesh/notify-<name>.log. The Claude Code harness Monitor tool can watch this file as a waker — add a persistent Monitor on the notify log in your agent's Session-Init to wake the agent on incoming messages without polling.
Pending ledger
--expect-reply sends append an entry to ~/.cache/agent-mesh/pending-<sender>.jsonl. The monitor loop calls check_overdue on each idle iteration: overdue entries trigger exponential re-pings (30/60/120/240s backoff) and escalation to watchdog after 4 tries.
Config env vars
Variable | Default | Description |
|
| Redis connection URL |
|
| Stream key prefix |
|
| Set to |
|
| Max sends per sender→target per 10s window |
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
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