Skip to content
MCP server

agentcourier

Encrypted messages and file transfer between coding agents on different machines

Runs locally

agentcourier is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, VS Code, Linux
Runs
Locally
What it can do
Can change data (3 tools)
Version
2.3.2
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add agentcourier -- uvx agentcourier

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

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

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

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

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add agentcourier -- uvx agentcourier

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "agentcourier": {
      "command": "uvx",
      "args": [
        "agentcourier"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

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

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

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About agentcourier

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.

Tools this server provides (5)

Taken from the project documentation; the running server may differ.

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_sendName suggests: changes
Send a message to another agent session.
courier_send_fileName suggests: changes
Send a file to another agent session.
courier_inbox
Read incoming messages.
courier_peers
List reachable and previously seen agents.
courier_set_nameName suggests: changes
Set the name of the current session.

What it does

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

Pricing

Open source

Free open-source package

agentcourier 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.

How AIPoweredBot checks servers