Agent Mesh
MCP server by google Community
Connects AI agents to a private mesh of nodes. It lets an agent discover and call tools and models that other authenticated members publish.
Install Agent Mesh
Built from the published package, never by AI.
claude mcp add agent-mesh -e AGENTMESH_CONTROL_PLANE_URL=YOUR_AGENTMESH_CONTROL_PLANE_URL -- npx -y @agentmesh-p2p/sdkRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"agent-mesh": {
"env": {
"AGENTMESH_CONTROL_PLANE_URL": "YOUR_AGENTMESH_CONTROL_PLANE_URL"
},
"args": [
"-y",
"@agentmesh-p2p/sdk"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"agent-mesh": {
"env": {
"AGENTMESH_CONTROL_PLANE_URL": "YOUR_AGENTMESH_CONTROL_PLANE_URL"
},
"args": [
"-y",
"@agentmesh-p2p/sdk"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"agent-mesh": {
"env": {
"AGENTMESH_CONTROL_PLANE_URL": "YOUR_AGENTMESH_CONTROL_PLANE_URL"
},
"args": [
"-y",
"@agentmesh-p2p/sdk"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add agent-mesh --env AGENTMESH_CONTROL_PLANE_URL=YOUR_AGENTMESH_CONTROL_PLANE_URL -- npx -y @agentmesh-p2p/sdk{
"mcpServers": {
"agent-mesh": {
"env": {
"AGENTMESH_CONTROL_PLANE_URL": "YOUR_AGENTMESH_CONTROL_PLANE_URL"
},
"args": [
"-y",
"@agentmesh-p2p/sdk"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add agent-mesh npx -y @agentmesh-p2p/sdkGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the agent-mesh block.
About
Agent Mesh is a private network for AI agents. A node runs next to an agent and lets it publish tools and models to the network, find and call what other nodes publish, and present an identity that other nodes can verify. Nodes connect directly when they can and through relays when they cannot, so the network works across laptops, containers, clusters and phones behind NAT. Nothing is reachable by default, and grants are evaluated on service names.
Identity comes from an identity provider. A node enrolls with an OpenID Connect token or a bootstrap token, and the control plane issues a short-lived, offline-verifiable credential bound to the node's own key. The agentmesh-node program exposes the mesh to an agent as a local MCP server and an OpenAI-compatible API. The source also describes a shared developer testnet and a way to run your own control plane.
Written from the project's README and checked against it.
What you need
- An OpenID Connect token or a bootstrap token to enroll a node
- Bash to run the install script
- Docker for the dev container and local kind environment
- A GitHub account for the optional Codespaces testnet
| Setting | Needed | What it is |
|---|---|---|
AGENTMESH_Environment variable | Required | Control plane URL supplied by your mesh operator. HTTPS is required beyond loopback unless explicitly permitted below. |
AGENTMESH_Environment variable, secret | Optional | Absolute path to a bootstrap token file for first enrollment. Set this OR AGENTMESH_JWT_PATH; leave both empty only when resuming saved credentials. |
AGENTMESH_Environment variable, secret | Optional | Absolute path to an OIDC/workload token file. Alternative to the bootstrap token; reread during credential refresh. |
AGENTMESH_Environment variable | Optional | Absolute directory for this client identity. Use a distinct directory per client and mesh. If omitted, uses ~/.config/agentmesh/mcp. |
AGENTMESH_Environment variable | Optional | Allow plaintext HTTP beyond loopback. Development only: exposes enrollment traffic to the network. Default: false |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Find services on my mesh that can help with this task.
- Call a tool that another node has published to the mesh.
- Send a model request through the mesh's OpenAI-compatible endpoint.
Good to know
- Pre-1.0 software; the release plan is in ROADMAP.md.
- The bananas.sam-mesh.dev testnet is a developer testnet with no uptime promise.
- Sandboxed agent blueprints and the mobile app are in preview.
- Not an officially supported Google product and not eligible for the Google Open Source Software Vulnerability Rewards Program.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl -sL https://google.github.io/agentmesh/install.sh | bash
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Share tools between agents on different machines
- Call services published by other mesh members
- Route model requests to nodes that serve them
- Run a private control plane for a small team
Alternatives to Agent Mesh
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Agent Mesh: common questions
Does Agent Mesh expose my services to other people by default?
No. The source says a node exposes no services until its configuration says so, and no node may call a service the mesh policy has not granted.
How does a node prove who it is on the mesh?
A node enrolls with an OpenID Connect token or a bootstrap token. The control plane then issues a short-lived, offline-verifiable credential bound to the node's own key.
Can I run my own Agent Mesh control plane?
Yes. The source says you can run a control plane on your laptop in one command, or start one in a GitHub Codespace with make testnet.
How do I install Agent Mesh?
In Claude Code run claude mcp add agent-mesh -e AGENTMESH_CONTROL_PLANE_URL=YOUR_AGENTMESH_CONTROL_PLANE_URL -- npx -y @agentmesh-p2p/sdk. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Agent Mesh the official server?
Agent Mesh is a community project by google, not verified by a company domain.
Is Agent Mesh free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Agent Mesh safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to Agent Mesh?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Agent Mesh work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
