claude-code-relay
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@claude-code-relayrelay 'please review the PR' to bob"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
claude-code-relay
Relay messages between Claude Code sessions over MCP — without stealing window focus.
Run several Claude Code sessions in parallel and let them message each other. A message
is injected into the target session's conversation in the background, as a <channel>
block — no keystroke paste, no window jumping to the foreground. You keep typing where you
are; the message just appears in the other session.
The problem
If you drive multiple Claude Code sessions at once, you eventually want them to talk — one hands work to another, or asks a question. The obvious way (paste into the target terminal) steals focus: the target window jumps to the front and your next keystrokes land in the wrong place. That makes genuine parallel work painful.
Related MCP server: mcp-relay
The approach
claude-code-relay uses Claude Code's experimental channel capability. Each session
runs a tiny MCP server that:
listens on a local HTTP port, and
pushes any received message into its own conversation via the
notifications/claude/channelnotification.
Delivery is a plain HTTP POST from the sender to the receiver's port. Background injection means the receive is focus-free.
session "alice" session "bob"
send.js ──HTTP POST 127.0.0.1:8802──▶ channel.mjs (MCP server)
│
▼ notifications/claude/channel
<channel source="claude-code-relay" from="alice">
hey, can you take the migration?
</channel> ← appears in bob's conversationQuick start
npm install
cp ports.example.json ports.json # map session names -> portsRegister the receiver per project in .mcp.json, giving each session its own port via
RELAY_CHANNEL_PORT:
{
"mcpServers": {
"claude-code-relay": {
"command": "node",
"args": ["./channel.mjs"],
"env": { "RELAY_CHANNEL_PORT": "8801" }
}
}
}Launch each Claude Code session with development channels enabled (experimental flag), on its own port:
RELAY_CHANNEL_PORT=8801 claude --dangerously-load-development-channels # session "alice"
RELAY_CHANNEL_PORT=8802 claude --dangerously-load-development-channels # session "bob"Send a message from one session to another:
node send.js alice bob "hey, can you take the migration?"It shows up in bob's conversation as a <channel> block. Bob replies the same way:
node send.js bob alice "on it"Notes & caveats
Experimental flag. This relies on Claude Code's
--dangerously-load-development-channelsand theclaude/channelcapability. Both are experimental and may change between releases.Receive-only channel. The channel only delivers into a session; there is no reply tool. Sessions reply by running
send.js. Typing in the window sends nothing.Localhost only. Servers bind
127.0.0.1— this coordinates sessions on one machine.ASCII session names are recommended (the sender name travels in an HTTP header).
One port per session. A duplicate spawn on a taken port exits cleanly (no churn).
License
MIT © TEAM ROCK
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/katekyorock-ux/claude-code-relay'
If you have feedback or need assistance with the MCP directory API, please join our Discord server