Agentchan logo

Agentchan

Routes messages between coding agents through MCP channels, using installed and authenticated Claude Code, Codex, or Grok sessions.

Install Agentchan

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "agentchan": {
      "command": "npx",
      "args": [
        "-y",
        "agentchan"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 2 tools correctly ().

Overview

The agentchan MCP server lets one coding agent send messages to installed and signed-in Claude Code, Codex, or Grok agents. Each call starts or continues an agent session and returns a channel ID, while a receive tool waits for a reply across channels and close terminates a session. It runs the selected CLI in the server's working directory with that agent's existing settings and permission checks disabled. Use it when an MCP-connected coding agent needs to delegate work or exchange messages with another coding agent.

Use cases

  • Delegate a coding task to Claude Code, Codex, or Grok
  • Continue a multi-turn conversation with a coding agent
  • Collect the first reply from several agent sessions
  • Stop an agent session and its process group

Key features

  • Agent-specific MCP messaging tools
  • Channel-based follow-up sessions
  • Multi-channel reply waiting
  • Explicit channel termination
  • Support for Claude Code, Codex, and Grok CLIs

Tools2

What Agentchan lets your agent do. Expand a tool for its parameters.

Verified live~163 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 63d

What it can do

From the 2 tools this server returned when we ran it.

Read-only tools · 2
Network at startup3 connections
Files written at startupNone
Install scriptspostinstall
npm provenanceNot published
Package age21 days
Maintainers1

Observed 2026-10-23 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · agentchan (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads33Package downloads in the last 30 days.
Last commit2mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed2Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Agentchan works

What agentchan does

The agentchan MCP server exposes installed and authenticated coding agents as MCP tools. It can make Claude Code, Codex, or Grok perform a prompt, then lets the calling agent collect the response through a channel. Only agents that are installed and signed in when the server starts are exposed.

Each channel represents one session with one called agent. A message without a channel starts a new session and immediately returns a channel identifier. Supplying that identifier sends a follow-up message to the same session. This supports short exchanges as well as multi-turn delegation.

How it works

The server starts the relevant command in its working directory: claude -p for Claude Code, codex exec for Codex, or grok --prompt-file for Grok. The called process uses the settings already configured for that agent. The server provides one message-sending tool for each available agent, plus receive(channels) and close(channel).

receive waits for the first response from any supplied channel and can wait for up to 50 seconds. close stops the selected agent and ends its channel. At the end of a turn, on channel closure, or when the server exits, agentchan kills the called agent's process group. A process moved into another process group is not stopped by that cleanup.

Setup and configuration

Prebuilt installation is available on Linux and macOS through the project's installer script. npm installs the same prebuilt binary, and Rust users can install from source with Cargo. The server can then be registered with Claude Code using claude mcp add; Codex can use an mcp_servers.agentchan entry in ~/.codex/config.toml. The Claude Code configuration may invoke either the installed agentchan binary or npx -y agentchan.

Agent availability is determined at startup, so install and sign in to the desired coding CLIs before launching the MCP server. No server-specific environment variables are documented.

Tools and capabilities

The agentchan MCP server provides these operations:

  • Agent-specific message tools for Claude Code, Codex, and Grok when each CLI is available and authenticated.
  • New-session and follow-up messaging through an optional channel argument.
  • Reply collection from one or more channels with a 50-second wait limit.
  • Channel termination that stops the associated agent process.

Each message uses the called agent's own login and plan limits. A new process is started for every message, and that process reloads the agent's full configuration.

Limitations and notes

Called agents run with permission checks disabled. They can read, modify, and execute content in the server's working directory without asking for approval. Any agent allowed to invoke agentchan receives that access, so the server should run in a directory with an appropriate trust boundary.

Moving a child process into a different process group allows it to outlive agentchan's normal cleanup.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agentchan

agentchan is an MCP server that connects one coding agent to installed and signed-in Claude Code, Codex, or Grok CLIs. Its main tools send prompts, receive replies from channels, and close sessions. Each message runs the selected CLI in the server's working directory using that agent's existing settings.

Install it with the Linux or macOS installer, with `npm install -g agentchan`, or from source using `cargo install agentchan`. The npm package downloads the prebuilt binary. After installation, register the command with the MCP client you use.

Register it with `claude mcp add --scope user agentchan -- agentchan`. You can also use `claude mcp add --scope user agentchan -- npx -y agentchan` without installing the binary first. Claude Code and the desired downstream CLIs must be installed and signed in before startup.

Add an `mcp_servers.agentchan` section to `~/.codex/config.toml` with `command = "agentchan"`. Codex then starts the server through that command. The downstream agent CLIs exposed by agentchan must already be installed and authenticated when the server starts.

No. Run it only where the called agents may safely have unrestricted access. Permission checks are disabled, so an invoked agent can read, write, and execute anything in the server's working directory, and processes moved to another process group may continue running after cleanup.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgentchan AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agentchan?style=directory)](https://allmcps.com/mcp/agentchan)
HTML Embed
<a href="https://allmcps.com/mcp/agentchan"><img src="https://allmcps.com/api/badge/agentchan?style=directory" alt="Agentchan on AllMCPs" /></a>