Agent Mesh
Lets your AI agent find and call tools and models that other agents publish on a private, authenticated network.
1.2k stars on GitHubby Google (open-source project)License Apache-2.0Updated 20 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add agentmesh -e AGENTMESH_CONTROL_PLANE_URL="<your value>" -- npx -y @agentmesh-p2p/sdk
What to fill in
| Name | What it is | Required |
|---|---|---|
AGENTMESH_CONTROL_PLANE_URL | Control plane URL supplied by your mesh operator. HTTPS is required beyond loopback unless explicitly permitted below. | Yes |
AGENTMESH_BOOTSTRAP_TOKEN_PATH | Absolute path to a bootstrap token file for first enrollment. Set this OR AGENTMESH_JWT_PATH; leave both empty only when resuming saved credentials. | No |
AGENTMESH_JWT_PATH | Absolute path to an OIDC/workload token file. Alternative to the bootstrap token; reread during credential refresh. | No |
AGENTMESH_STATE_DIR | Absolute directory for this client identity. Use a distinct directory per client and mesh. If omitted, uses ~/.config/agentmesh/mcp. | No |
AGENTMESH_INSECURE_CONTROL_PLANE | Allow plaintext HTTP beyond loopback. Development only: exposes enrollment traffic to the network. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
List the tools other members of our mesh have published.
Call the summarizer service on the mesh with this report.
What it is
Agent Mesh is a private network for AI agents. A small program called a node runs next to your agent, joins the network, and gives the agent a local MCP server on your own computer. Through it your agent can discover and call services that other members publish, and publish its own.
What it can do
- Discover services that other nodes publish on the mesh
- Call tools and models that other nodes publish
- Publish your own local tools and models to the network
- Route model requests through an OpenAI-compatible endpoint
- Prove who the node is with a credential other nodes can verify
When to use
- βΊWhen you want several agents on different machines to share tools without opening them to the internet
- βΊWhen you want your agent to use a model that someone else on your team serves
- βΊWhen you need every call between agents to be tied to a verified identity and a policy
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
istio-traffic-managementProvides a guide on managing network traffic in service meshes using Istio. It helps configure and optimize communication between services.agent-mesh-coordinatorLets your agent run a network of peer agents that share work and reach decisions together, even if one of them fails.vpn-setupConfigures secure network connections for remote access. Ensures communication between devices is protected.Frequently asked questions
Is it free and open source?
The project is open source under the Apache-2.0 license. The readme says it is not an officially supported Google product.
Is anything reachable by default?
No. A node exposes no services until its configuration says so, and a node can only call services that the mesh policy has granted.
How does a node prove who it is?
A node enrolls with an OpenID Connect token or a bootstrap token. The control plane turns that into a short-lived credential bound to the node's own key.
Does it work behind NAT or on a phone?
Yes. Nodes connect directly when they can and through relays when they cannot, so it works across laptops, containers, clusters and phones behind NAT.
Can I run my own mesh?
Yes. The readme says a control plane can run on your laptop in one command, and there is a shared developer test mesh with no uptime promise.
Is it ready for production?
It is pre-1.0. The node, routers, control plane, identity and policy model are described as stable in shape, while sandboxed agents and the mobile app are in preview.
If it does not work
- βΊRun the one-time login again with agentmesh-node join and the mesh URL if the node cannot reach the network.
- βΊCheck that the node is running with agentmesh-node run, since the local MCP server listens on 127.0.0.1:8080.
- βΊIf a call is refused, ask the mesh admin whether policy grants your node access to that service name.
5 new skills a week. 1 minute to read.