Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
Multi-agent context sharing, memory, and status coordination via MCP tools.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"swarmmesh": {
"command": "uvx",
"args": [
"swarmmesh-cli",
"swarmmesh",
"mcp"
]
}
}
}ターミナルでこれを実行します
claude mcp add swarmmesh -- uvx swarmmesh-cli swarmmesh mcpプロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"swarmmesh": {
"command": "uvx",
"args": [
"swarmmesh-cli",
"swarmmesh",
"mcp"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"swarmmesh": {
"type": "stdio",
"command": "uvx",
"args": [
"swarmmesh-cli",
"swarmmesh",
"mcp"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント RudrenduPaul で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.1.3)がレジストリに届いたのは3 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。
同じカテゴリには:Context7, Codebase Memory, Exa
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
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.
pip install swarmmesh-cli
npm install -g swarmmesh-cli
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.
# Terminal 1: start a mesh (Python implementation, but either works)
$ swarmmesh serve --port 8420 INFO: Uvicorn running on http://127.0.0.1:8420
$ swarmmesh agent register node-agent-1 researcher --port 8420 --json { "agent_id": "node-agent-1", "role": "researcher", ... }
$ swarmmesh context set interop-demo status '"investigating flaky test"' \ --agent-id node-agent-1 --port 8420 --json { "namespace": "interop-demo", "key": "status", "value": "investigating flaky test", ... }
$ swarmmesh memory write interop-demo \ "found a race condition in the retry loop" --agent-id node-agent-1 --port 8420 --json { "namespace": "interop-demo", "text": "found a race condition in the retry loop", ... }
$ swarmmesh context get interop-demo status --port 8420 --json { "value": "investigating flaky test", "updated_by": "node-agent-1", ... }
$ swarmmesh memory query interop-demo "race condition" --port 8420 --json { "results": [{ "entry": { "text": "found a race condition in the retry loop" }, "score": 0.575 }] }
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.
# Start a mesh (in-memory by default; add --persist ./mesh.db for SQLite storage)
swarmmesh serve --host 127.0.0.1 --port 8420
swarmmesh agent register agent-1 researcher
swarmmesh context set my-run phase '"planning"' --agent-id agent-1 swarmmesh context get my-run phase
swarmmesh memory write my-run "found a race condition in the retry loop" --agent-id agent-1 swarmmesh memory query my-run "race condition"
swarmmesh status --json
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:
# Python
git clone https://github.com/RudrenduPaul/swarmmesh.git cd swarmmesh pip install -e python/
cd swarmmesh/node npm install npm run build npm link
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 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:
for i in $(seq 1 50); do curl -s -o /dev/null -w "%{time_total}\n" \
-X PUT "http://127.0.0.1:8420/v1/context/bench/key$i" \ -H "Content-Type: application/json" -d "{\"value\":\"v$i\",\"agent_id\":\"bench\"}"; done
Both CLIs expose the same command tree. Flag names differ slightly between the two (Python uses Typer's --flag style, Node uses commander's), but the commands and their behavior are identical. Output below is transcribed from running --help on each built CLI.
swarmmesh serve [--host HOST] [--port PORT] [--persist PATH]
Start a SwarmMesh coordination server.
swarmmesh status [--host HOST] [--port PORT] [--json] Show a mesh status snapshot (agent count, namespaces, entry counts, uptime).
swarmmesh mcp [--host HOST] [--port PORT] Start an MCP server over stdio, proxying tool calls to a running mesh.
swarmmesh agent register [--metadata JSON] [--host HOST] [--port PORT] [--json] swarmmesh agent list [--host HOST] [--port PORT] [--json] swarmmesh agent deregister [--host HOST] [--port PORT] [--json]
swarmmesh context set [--agent-id ID] [--ttl SECONDS] [--host HOST] [--port PORT] [--json] swarmmesh context get [--host HOST] [--port PORT] [--json] swarmmesh context list [--host HOST] [--port PORT] [--json] swarmmesh context delete [--host HOST] [--port PORT] [--json]
swarmmesh memory write [--agent-id ID] [--metadata JSON] [--id ID] [--host HOST] [--port PORT] [--json] swarmmesh memory query [--top-k N] [--host HOST] [--port PORT] [--json]
context set parses 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.
# 1. Start a mesh
swarmmesh serve --host 127.0.0.1 --port 8420
swarmmesh mcp --host 127.0.0.1 --port 8420
mcp support is included by default in both packages (it's a core dependency, not an optional extra), so a plain pip install swarmmesh-cli or npm install -g swarmmesh-cli is all you need.
Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": { "swarmmesh": { "command": "swarmmesh", "args": ["mcp", "--host", "127.0.0.1", "--port", "8420"] } } }
Both the Python and Node MCP servers expose the same ten tools, mirroring the SwarmMeshClient methods above:
| Tool | What it does | Example call |
|---|---|---|
register_agent | Register an agent with the mesh. | register_agent(agent_id="agent-1", role="researcher") |
deregister_agent | Deregister an agent from the mesh. Idempotent. | deregister_agent(agent_id="agent-1") |
list_agents | List agents currently registered with the mesh. | list_agents() |
publish_context | Publish (create or overwrite) a context value in a namespace. | publish_context(namespace="my-run", key="phase", value="planning", agent_id="agent-1") |
get_context | Read a single context value. | get_context(namespace="my-run", key="phase") |
list_context | List all live (non-expired) context entries in a namespace. | list_context(namespace="my-run") |
delete_context | Delete a context value. | delete_context(namespace="my-run", key="phase") |
write_memory | Write a memory entry other agents in the swarm can find later. | write_memory(namespace="my-run", text="found a race condition in the retry loop", agent_id="agent-1") |
query_memory | Query memory entries in a namespace by BM25 keyword ranking (not semantic search). | query_memory(namespace="my-run", query="race condition") |
get_status | Get a mesh status snapshot (agent count, namespaces, entry counts, uptime). | get_status() |
Both packages export a typed client so you can call a mesh directly from your own agent code
冒頭だけを表示しています。続きはリポジトリで読めます