
Claude Peers Mcp
Wire several Claude Code sessions on one machine so they discover peers and exchange real-time messages through a local MCP broker.
Overview
claude-peers-mcp is an agent skill for the Build phase that installs a local MCP broker so multiple Claude Code instances on one machine can discover peers and exchange real-time messages.
Install
npx skills add https://github.com/aradotso/trending-skills --skill claude-peers-mcpWhat is this skill?
- Local broker on localhost:7899 with SQLite backing for peer registration and message routing
- User-scoped MCP registration via `claude mcp add` and bun-driven server.ts
- Inbound messages pushed straight into the Claude channel for instant cross-session visibility
- Requires `claude --dangerously-skip-permissions` and `--dangerously-load-development-channels server:claude-peers` to ac
- Supports listing running Claude instances and coordinating multiple Claude Code sessions on one host
- Broker HTTP endpoint documented on localhost:7899
- SQLite-backed local broker daemon for peer registration and routing
Adoption & trust: 954 installs on skills.sh; 31 GitHub stars; 0/3 security scanners passed (skills.sh audits).
What problem does it solve?
You run several Claude Code sessions in parallel but have no built-in way to see who is online on your box or pass messages between those agents without manual copy-paste.
Who is it for?
Solo builders or tiny teams experimenting with multi-agent Claude Code on a single developer machine who already use MCP and accept local-only messaging.
Skip if: Builders who need cross-machine or production-grade agent orchestration, or anyone unwilling to use development-channel and skip-permissions launch flags for local peer wiring.
When should I use this skill?
User asks to set up claude peers, install claude-peers MCP, send messages between Claude sessions, list running Claude instances, or coordinate multiple Claude Code sessions.
What do I get? / Deliverables
After install, each session registers with the broker, lists peers, and receives routed messages in-channel so multi-session coordination works locally end to end.
- User-scoped stdio MCP server registration for claude-peers
- Running local broker with peer discovery and in-channel message delivery
Recommended Skills
Journey fit
Peer discovery and session messaging extend how you assemble multi-agent workflows during product build, before you ship a coordinated automation setup. The skill installs an MCP server plus stdio transport and development-channel flags—classic agent-tooling plumbing rather than app feature code.
How it compares
Local peer mesh for Claude Code sessions—not a remote team chat MCP or a cloud agent supervisor.
Common Questions / FAQ
Who is claude-peers-mcp for?
Indie and solo developers who run more than one Claude Code instance on the same computer and want those sessions to find each other and message without leaving the agent workflow.
When should I use claude-peers-mcp?
Use it during Build when you are setting up agent-tooling: parallel coding sessions, coordinated multi-agent tasks, or debugging one session from another. Triggers include “set up claude peers,” “coordinate multiple claude code sessions,” and “send messages between claude session
Is claude-peers-mcp safe to install?
The skill documents localhost-only broker traffic and development-channel launch flags; review the Security Audits panel on this Prism page and treat skip-permissions usage as a conscious local-dev choice.
SKILL.md
READMESKILL.md - Claude Peers Mcp
# claude-peers-mcp > Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection. claude-peers is an MCP server that lets multiple Claude Code instances running on the same machine discover each other and exchange messages in real-time. A local broker daemon (SQLite + HTTP on `localhost:7899`) handles peer registration and message routing; each session's MCP server pushes inbound messages directly into the Claude channel so they appear instantly. ## Installation ### 1. Clone and install dependencies ```bash git clone https://github.com/louislva/claude-peers-mcp.git ~/claude-peers-mcp cd ~/claude-peers-mcp bun install ``` ### 2. Register as a global MCP server ```bash claude mcp add --scope user --transport stdio claude-peers -- bun ~/claude-peers-mcp/server.ts ``` Adjust the path if you cloned elsewhere. ### 3. Launch Claude Code with the channel enabled ```bash claude --dangerously-skip-permissions --dangerously-load-development-channels server:claude-peers ``` Add a shell alias to avoid typing it every time: ```bash # ~/.bashrc or ~/.zshrc alias claudepeers='claude --dangerously-load-development-channels server:claude-peers' ``` The broker daemon starts automatically on first use. No manual daemon management needed. ## Requirements - [Bun](https://bun.sh) runtime - Claude Code v2.1.80+ - claude.ai login (channels require it — API key auth does **not** work) ## Architecture ``` ┌───────────────────────────┐ │ broker daemon │ │ localhost:7899 + SQLite │ └──────┬───────────────┬────┘ │ │ MCP server A MCP server B (stdio) (stdio) │ │ Claude A Claude B ``` - Each Claude Code session spawns its own `server.ts` MCP process over stdio - MCP servers register with the broker and poll every second - Inbound messages are pushed via the `claude/channel` protocol for instant delivery - The broker auto-cleans dead peers and is localhost-only ## MCP Tools Reference | Tool | Description | |---|---| | `list_peers` | Discover other Claude Code instances; scope: `machine`, `directory`, or `repo` | | `send_message` | Send a message to a peer by ID — delivered instantly via channel push | | `set_summary` | Set a description of what this instance is working on | | `check_messages` | Manually poll for messages (fallback without channel mode) | ### Example prompts to Claude ``` List all peers on this machine ``` ``` Send a message to peer abc123: "what files are you editing right now?" ``` ``` Set your summary to: "refactoring the authentication module" ``` ``` Check for any new messages from peers ``` ## CLI Usage Inspect and interact with the broker directly from the terminal: ```bash cd ~/claude-peers-mcp # Show broker status and all registered peers bun cli.ts status # List peers in a table bun cli.ts peers # Send a message into a specific Claude session bun cli.ts send <peer-id> "your message here" # Stop the broker daemon bun cli.ts kill-broker ``` ## Configuration Set these environment variables before starting Claude Code: | Variable | Default | Description | |---|---|---| | `CLAUDE_PEERS_PORT` | `7899` | Port the broker listens on | | `CLAUDE_PEERS_DB` | `~/.claude-peers.db` | Path to the SQLite database | | `OPENAI_API_KEY` | — | Enables auto-summary