# Agent Mesh MCP server

> Discover and call MCP tools published by other nodes on a private, identity-verified network of AI agents.

- Listing: https://mcp.tc/i/agent-mesh
- Connect: this is a local (stdio) server; install it on your machine (see Install). The listing link is a page, not an MCP endpoint.
- Type: local (stdio)
- Auth: API key
- Category: [AI & Machine Learning](https://mcp.tc/c/ai-ml)
- Vendor: Google
- Homepage: <https://google.github.io/agentmesh/>
- Repository: <https://github.com/google/agentmesh/tree/HEAD/sdk/js>
- Package: npm `@agentmesh-p2p/sdk`

## About

Agent Mesh is a private network for AI agents. This package runs a local MCP client that enrolls as a member of a mesh, then lets an agent discover and call tools that other nodes publish. Nothing is reachable by default, and calls are checked against the mesh policy by service name.

It runs locally over stdio through npx (@agentmesh-p2p/sdk). It needs a control plane URL from your mesh operator, plus either a bootstrap token file for first enrollment or an OIDC/workload token file. The project states it is not an officially supported Google product.

## What it can do

- Enroll as an authenticated member of an Agent Mesh
- Discover tools and services published by other mesh nodes
- Call remote MCP tools across the mesh
- Use OIDC or bootstrap tokens for identity
- Resume saved credentials from a state directory

## Example prompts

- "Find which tools are published on my mesh."
- "Call the remote search tool on the mesh and show me the result."
- "List the services my node is allowed to call."
- "Enroll this client into my mesh using the bootstrap token."

## Install

### Claude Code

1. Run this in a terminal, in your project folder:

```bash
claude mcp add --transport stdio agent-mesh --env "AGENTMESH_CONTROL_PLANE_URL=<YOUR_AGENTMESH_CONTROL_PLANE_URL>" --env "AGENTMESH_BOOTSTRAP_TOKEN_PATH=<YOUR_AGENTMESH_BOOTSTRAP_TOKEN_PATH>" --env "AGENTMESH_JWT_PATH=<YOUR_AGENTMESH_JWT_PATH>" -- npx -y @agentmesh-p2p/sdk
```

2. Start Claude Code and type `/mcp`. **agent-mesh** should show as connected.

Add `--scope user` to make it available in every project. Replace the placeholders with your own values.

### Claude Desktop

1. Open **Settings → Developer → Edit Config**. It opens `claude_desktop_config.json`. Add:

`claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "agent-mesh": {
      "command": "npx",
      "args": [
        "-y",
        "@agentmesh-p2p/sdk"
      ],
      "env": {
        "AGENTMESH_CONTROL_PLANE_URL": "<YOUR_AGENTMESH_CONTROL_PLANE_URL>",
        "AGENTMESH_BOOTSTRAP_TOKEN_PATH": "<YOUR_AGENTMESH_BOOTSTRAP_TOKEN_PATH>",
        "AGENTMESH_JWT_PATH": "<YOUR_AGENTMESH_JWT_PATH>"
      }
    }
  }
}
```

2. Save the file and restart Claude Desktop. Replace the placeholders with your own values.

Needs Node.js on your computer. The file lives in `~/Library/Application Support/Claude/` on macOS and `%APPDATA%\Claude\` on Windows.

### Cursor

[Add to Cursor](<https://cursor.com/install-mcp?name=agent-mesh&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBhZ2VudG1lc2gtcDJwL3NkayJdLCJlbnYiOnsiQUdFTlRNRVNIX0NPTlRST0xfUExBTkVfVVJMIjoiPFlPVVJfQUdFTlRNRVNIX0NPTlRST0xfUExBTkVfVVJMPiIsIkFHRU5UTUVTSF9CT09UU1RSQVBfVE9LRU5fUEFUSCI6IjxZT1VSX0FHRU5UTUVTSF9CT09UU1RSQVBfVE9LRU5fUEFUSD4iLCJBR0VOVE1FU0hfSldUX1BBVEgiOiI8WU9VUl9BR0VOVE1FU0hfSldUX1BBVEg%2BIn19>) (opens Cursor)

Or add it by hand to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project):

`mcp.json`:

```json
{
  "mcpServers": {
    "agent-mesh": {
      "command": "npx",
      "args": [
        "-y",
        "@agentmesh-p2p/sdk"
      ],
      "env": {
        "AGENTMESH_CONTROL_PLANE_URL": "<YOUR_AGENTMESH_CONTROL_PLANE_URL>",
        "AGENTMESH_BOOTSTRAP_TOKEN_PATH": "<YOUR_AGENTMESH_BOOTSTRAP_TOKEN_PATH>",
        "AGENTMESH_JWT_PATH": "<YOUR_AGENTMESH_JWT_PATH>"
      }
    }
  }
}
```

Needs Node.js on your computer. Replace the placeholders with your own values.

### VS Code

Add it to `.vscode/mcp.json`. VS Code asks for the secret the first time and stores it securely:

`.vscode/mcp.json`:

```json
{
  "servers": {
    "agent-mesh": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@agentmesh-p2p/sdk"
      ],
      "env": {
        "AGENTMESH_CONTROL_PLANE_URL": "<YOUR_AGENTMESH_CONTROL_PLANE_URL>",
        "AGENTMESH_BOOTSTRAP_TOKEN_PATH": "${input:agentmesh-bootstrap-token-path}",
        "AGENTMESH_JWT_PATH": "${input:agentmesh-jwt-path}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "agentmesh-bootstrap-token-path",
      "description": "AGENTMESH_BOOTSTRAP_TOKEN_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "agentmesh-jwt-path",
      "description": "AGENTMESH_JWT_PATH",
      "password": true
    }
  ]
}
```

Needs Node.js on your computer.

### Devin Desktop

1. Add it to `~/.config/devin/mcp_config.json` (macOS and Linux) or `%APPDATA%\devin\mcp_config.json` (Windows):

`mcp_config.json`:

```json
{
  "mcpServers": {
    "agent-mesh": {
      "command": "npx",
      "args": [
        "-y",
        "@agentmesh-p2p/sdk"
      ],
      "env": {
        "AGENTMESH_CONTROL_PLANE_URL": "<YOUR_AGENTMESH_CONTROL_PLANE_URL>",
        "AGENTMESH_BOOTSTRAP_TOKEN_PATH": "<YOUR_AGENTMESH_BOOTSTRAP_TOKEN_PATH>",
        "AGENTMESH_JWT_PATH": "<YOUR_AGENTMESH_JWT_PATH>"
      }
    }
  }
}
```

2. Refresh the MCP server list in Cascade. Replace the placeholders with your own values.

Devin Desktop is the new name for Windsurf.

### Codex

```bash
codex mcp add agent-mesh --env "AGENTMESH_CONTROL_PLANE_URL=<YOUR_AGENTMESH_CONTROL_PLANE_URL>" --env "AGENTMESH_BOOTSTRAP_TOKEN_PATH=<YOUR_AGENTMESH_BOOTSTRAP_TOKEN_PATH>" --env "AGENTMESH_JWT_PATH=<YOUR_AGENTMESH_JWT_PATH>" -- npx -y @agentmesh-p2p/sdk
```

Or edit `~/.codex/config.toml` directly:

`config.toml`:

```toml
[mcp_servers.agent-mesh]
command = "npx"
args = ["-y", "@agentmesh-p2p/sdk"]
env = { AGENTMESH_CONTROL_PLANE_URL = "<YOUR_AGENTMESH_CONTROL_PLANE_URL>", AGENTMESH_BOOTSTRAP_TOKEN_PATH = "<YOUR_AGENTMESH_BOOTSTRAP_TOKEN_PATH>", AGENTMESH_JWT_PATH = "<YOUR_AGENTMESH_JWT_PATH>" }
```

Needs Node.js on your computer. Replace the placeholders with your own values.

### Gemini CLI

```bash
gemini mcp add -e "AGENTMESH_CONTROL_PLANE_URL=<YOUR_AGENTMESH_CONTROL_PLANE_URL>" -e "AGENTMESH_BOOTSTRAP_TOKEN_PATH=<YOUR_AGENTMESH_BOOTSTRAP_TOKEN_PATH>" -e "AGENTMESH_JWT_PATH=<YOUR_AGENTMESH_JWT_PATH>" agent-mesh npx -- -y @agentmesh-p2p/sdk
```

This adds it to the current project. Add `-s user` to use it everywhere.

### Any client

Most clients that start local servers accept this shape:

```json
{
  "mcpServers": {
    "agent-mesh": {
      "command": "npx",
      "args": [
        "-y",
        "@agentmesh-p2p/sdk"
      ],
      "env": {
        "AGENTMESH_CONTROL_PLANE_URL": "<YOUR_AGENTMESH_CONTROL_PLANE_URL>",
        "AGENTMESH_BOOTSTRAP_TOKEN_PATH": "<YOUR_AGENTMESH_BOOTSTRAP_TOKEN_PATH>",
        "AGENTMESH_JWT_PATH": "<YOUR_AGENTMESH_JWT_PATH>"
      }
    }
  }
}
```

Zed puts servers under `context_servers` in its settings, with the same `command`, `args` and `env` fields.

Needs Node.js on your computer. Replace the placeholders with your own values.

## Recent changes

- 2026-11-02 17:21 UTC: Tracking started: version 0.2.0. Source: automatic check.

More on the History tab, with descriptions before and after for the newest entries: https://mcp.tc/i/agent-mesh#history (Atom feed: https://mcp.tc/i/agent-mesh/history.xml). It records what mcp.tc's anonymous checks saw, every 3 hours where the tool list can be read without sign-in; it is not a security review.

## Details

- Server version: 0.2.0
- Last checked: 2026-11-02
- Listed: 2026-11-02
- Updated: 2026-11-02

---
Source: https://mcp.tc/i/agent-mesh (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
