# agentcourier

> agentcourier is an open-source MCP server for developer tools. Encrypted messages and file transfer between coding agents on different machines. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, VS Code, Linux, macOS, Windows, Self-hosted
- **Repository:** https://github.com/alhermann/agentcourier
- **MCP Registry name:** io.github.alhermann/agentcourier
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

agentcourier lets Claude Code, Codex and GitHub Copilot sessions message each other and exchange files, with no account and no cloud service. A Copilot window in a frontend project can ask a Claude Code session in the backend project which fields an API returns, and the answer comes back in the same chat. Each session gets a name from its tool and folder, such as copilot-frontend or claude-backend.

Sessions on one computer reach each other immediately. Other machines, including a server, cluster or a colleague's computer, are paired once with a one-time code and connect directly, through an SSH tunnel or through a relay you run yourself. Connections are end-to-end encrypted, with protection against future quantum computers. Large data files such as HDF5, NetCDF and NumPy arrays are streamed and resume if the connection drops.

Incoming messages are marked untrusted, common personal data and secrets are masked, programs sent as files are refused and documents need a clean malware scan. It runs without admin rights and has no usage reporting, which the README says suits research institutes and locked-down networks. In Claude Code, messages appear in the session only with the development channels flag.

## Features

- **Cross-agent messaging:** Sessions in different tools message each other by name.
- **File transfer:** Send files, including large streamed data files that resume after interruption.
- **Pair once with a code:** Add other machines or colleagues with a one-time invite code.
- **No account or cloud:** Machines connect directly, over SSH or via a relay you run.
- **Message safety:** Messages are marked untrusted, secrets are masked and executable files are refused.
- **Works without admin rights:** Installs under your own user account.

## Good for

- Have a frontend agent ask a backend agent about an API
- Send a results file to an agent on a compute cluster
- Message a colleague's agent after pairing machines
- Connect agents on two office PCs that share only an SSH server

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add agentcourier -- uvx agentcourier
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "agentcourier": {
      "command": "uvx",
      "args": [
        "agentcourier"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "agentcourier": {
      "command": "uvx",
      "args": [
        "agentcourier"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "agentcourier": {
      "command": "uvx",
      "args": [
        "agentcourier"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "agentcourier": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "agentcourier"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add agentcourier -- uvx agentcourier
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.agentcourier]
command = "uvx"
args = ["agentcourier"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "agentcourier": {
      "command": "uvx",
      "args": [
        "agentcourier"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user agentcourier uvx -- agentcourier

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "agentcourier": {
      "command": "uvx",
      "args": [
        "agentcourier"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "agentcourier": {
      "command": "uvx",
      "args": [
        "agentcourier"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "agentcourier": {
      "command": "uvx",
      "args": [
        "agentcourier"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "agentcourier": {
      "command": "uvx",
      "args": [
        "agentcourier"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "agentcourier": {
      "command": "uvx",
      "args": [
        "agentcourier"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "agentcourier": {
      "command": "uvx",
      "args": [
        "agentcourier"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "agentcourier": {
      "command": "uvx",
      "args": [
        "agentcourier"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "agentcourier": {
      "command": "uvx",
      "args": [
        "agentcourier"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 5 tools change data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `courier_send` (name suggests: changes): Send a message to another agent session.
- `courier_send_file` (name suggests: changes): Send a file to another agent session.
- `courier_inbox`: Read incoming messages.
- `courier_peers`: List reachable and previously seen agents.
- `courier_set_name` (name suggests: changes): Set the name of the current session.

## FAQ

### Does agentcourier need an account?

No account and no company service.

### How do I install agentcourier?

pip install agentcourier on each machine, or cargo install from the repository.

### Which tools work?

Claude Code, Codex and GitHub Copilot in VS Code.

### What if machines cannot reach each other?

Run agentcourier relay on a third machine both can reach; it forwards encrypted traffic it cannot read.

### How many messages wait for a closed session?

Up to 1000 per session.

### Is agentcourier free?

Yes. agentcourier is open source, so you can use and self-host it for free.

### How do I add agentcourier to Claude Code?

Run this command in your terminal: claude mcp add agentcourier -- uvx agentcourier

### What are the best alternatives to agentcourier?

The closest alternatives to agentcourier are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/agentcourier
