Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 90
  • 1.8k stars
  • Apache-2.0
  • Updated

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/sdk

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Agent Mesh in Claude Code

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
SettingNeededWhat it is
AGENTMESH_CONTROL_PLANE_URLEnvironment variableRequiredControl plane URL supplied by your mesh operator. HTTPS is required beyond loopback unless explicitly permitted below.
AGENTMESH_BOOTSTRAP_TOKEN_PATHEnvironment variable, secretOptionalAbsolute path to a bootstrap token file for first enrollment. Set this OR AGENTMESH_JWT_PATH; leave both empty only when resuming saved credentials.
AGENTMESH_JWT_PATHEnvironment variable, secretOptionalAbsolute path to an OIDC/workload token file. Alternative to the bootstrap token; reread during credential refresh.
AGENTMESH_STATE_DIREnvironment variableOptionalAbsolute directory for this client identity. Use a distinct directory per client and mesh. If omitted, uses ~/.config/agentmesh/mcp.
AGENTMESH_INSECURE_CONTROL_PLANEEnvironment variableOptionalAllow 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 →

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.

Agent Mesh Install

Add to stack

Loading.