Multi-agent context sharing, memory, and status coordination via MCP tools.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Install β’ Quickstart β’ Features β’ CLI reference β’ Compare β’ FAQ
Shared context and memory for swarms of parallel AI agents, over a small protocol both Python and Node speak the same way.

Spin up ten coding agents on the same task and they cannot see what each other found. One agent rediscovers a bug another already fixed. Two agents overwrite the same file because neither knew the other touched it. SwarmMesh is a small server that sits alongside your existing agent framework and gives every agent process, in any language that can speak HTTP, a shared place to publish context and search memory.
It is not an orchestration framework. It does not schedule tasks, define agent roles, or route work between agents. Your existing framework (or your own code) keeps doing that. SwarmMesh only answers one question: how do independent agent processes read and write the same shared state.
Either gives you a swarmmesh command on your PATH.
This is a real terminal session, not a mockup: a Python-run mesh, a Node agent writing to it, and a Python agent reading back what the Node agent wrote. Two different languages, one shared mesh.
Every command above was re-run for real against both CLIs while writing this README: the Node CLI registered an agent and wrote context and memory against a Python-hosted mesh, and the Python CLI read it straight back, in the same run, over the real HTTP API, with the score above (0.575) reproduced exactly. No shared filesystem, no shared process, no translation layer. Just the protocol.
This exact sequence was run end to end while writing this README and
completed in a few seconds, start to finish, against the real
swarmmesh-cli package installed from PyPI.
To build from source instead of installing from a registry:
docs/protocol.md
specifies every HTTP endpoint and WebSocket event, so any process that can
speak HTTP and JSON can join a mesh. The two official CLIs are convenient
clients, not the only valid ones.swarmmesh-cli on PyPI, FastAPI + Typer, 74 tests, 91% statement
coverage) and Node (swarmmesh-cli on npm, Express + commander, 65 tests,
91.64% statement coverage) implement the protocol identically. Each
package's own test suite runs independently in CI; cross-language interop
(a Node client against a Python-hosted server and back) is demonstrated in
the "See it work" section above and was re-run by hand against both real
packages, not covered by an automated cross-language test in CI today./v1/events pushes
context.updated, context.deleted, memory.written,
agent.registered, and agent.deregistered frames so an agent can react
the moment another agent changes shared state, instead of polling.RankingBackend interface is a documented extension point if you want to
plug in your own embedding-based scorer; SwarmMesh doesn't ship one.--persist <path> for SQLite-backed storage that survives restarts.--json for structured, script-parseable output, and both ship a
swarmmesh mcp subcommand that starts an MCP server over stdio so an
MCP-capable agent (Claude or otherwise) can call SwarmMesh as a set of
tools without shelling out.127.0.0.1 by default, not 0.0.0.0. There's no authentication in v1.
See Security.The number below is measured, not estimated. 50 sequential PUT /v1/context/{namespace}/{key}
requests against a local Python-run server averaged 0.8ms round trip each
(40ms total for 50 requests) on the machine this README was written on.
This isn't a rigorous benchmark, includes curl's own process-spawn
overhead per request, and will vary by machine, but it's a real number from
a real run, not a guess. Reproduce it yourself with:
Both CLIs expose the same command tree. Flag names differ slightly between
the two (Python uses Typer's --flag <value> style, Node uses commander's),
but the commands and their behavior are identical. Output below is
transcribed from running --help on each built CLI.


context set parses <value> as JSON, falling back to a plain string if it
isn't valid JSON. context set ns key '"planning"' stores the string
planning. So does context set ns key planning (no quotes), through the
same string fallback.
SwarmMesh ships a Model Context Protocol (MCP) server, on both the Python
and Node packages, so an MCP-capable agent (Claude Desktop, Claude Code, or
any other MCP client) can call SwarmMesh as a set of tools instead of
shelling out to the CLI. The MCP server doesn't reimplement the protocol; it
proxies each tool call over HTTP to a swarmmesh serve process you already
have running.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/swarmmesh)<a href="https://allmcps.com/mcp/swarmmesh"><img src="https://allmcps.com/api/badge/swarmmesh?style=directory" alt="Swarmmesh on AllMCPs" /></a>