claude-peers-mcp▌
aradotso/trending-skills · updated Jun 2, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
Skill by ara.so — Daily 2026 Skills collection.
claude-peers-mcp
Skill by 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
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
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
claude --dangerously-skip-permissions --dangerously-load-development-channels server:claude-peers
Add a shell alias to avoid typing it every time:
# ~/.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 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.tsMCP process over stdio - MCP servers register with the broker and poll every second
- Inbound messages are pushed via the
claude/channelprotocol 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:
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 via gpt-4o-mini on startup |
export CLAUDE_PEERS_PORT=7899
export CLAUDE_PEERS_DB=~/.claude-peers.db
export OPENAI_API_KEY=$OPENAI_API_KEY # optional — enables auto-summary
Auto-Summary Feature
With OPENAI_API_KEY set, each instance generates a brief summary on startup describing what you're likely working on (based on working directory, git branch, recent files). Other peers see this in list_peers output. Without the key, Claude sets its own summary via set_summary.
Common Patterns
Cross-project coordination
Start two sessions in different project directories:
# Terminal 1 — in ~/projects/backend
claudepeers
# Terminal 2 — in ~/projects/frontend
claudepeers
Ask Claude in Terminal 1:
List peers scoped to machine, then ask the peer in the frontend project what API endpoints it needs
Scope-filtered peer discovery
List peers scoped to repo
Shows only instances running in the same git repository — useful when you have worktrees or split terminals on the same codebase.
Scripted message injection via CLI
# Inject a task into a running Claude session from a shell script
PEER_ID=$(bun ~/claude-peers-mcp/cli.ts peers | grep 'backend' | awk '{print $1}')
bun ~/claude-peers-mcp/cli.ts send "$PEER_ID" "run the test suite and report failures"
Polling fallback (no channel mode)
If you launch without --dangerously-load-development-channels, Claude can still receive messages by calling check_messages explicitly:
Check for any new peer messages
Troubleshooting
Broker not starting
# Check if something is already on port 7899
lsof -i :7899
# Kill a stuck broker and restart
bun ~/claude-peers-mcp/cli.ts kill-broker
# Then relaunch Claude Code
Peers not appearing in list_peers
- Ensure both sessions were started with
--dangerously-load-development-channels server:claude-peers - Confirm both use the same
CLAUDE_PEERS_PORT(default7899) - Run
bun cli.ts statusto verify the broker sees both registrations
Messages not arriving instantly
- Channel push requires claude.ai login; API key auth won't work
- Fall back to
check_messagestool if channels are unavailable
Auto-summary not generating
- Verify
OPENAI_API_KEYis exported in the shell where Claude Code was launched:echo $OPENAI_API_KEY - The feature uses
gpt-4o-mini; confirm your key has access
Database issues
# Reset the database entirely (all peers/messages lost)
rm ~/.claude-peers.db
bun ~/claude-peers-mcp/cli.ts kill-broker
MCP server not found after registration
# Verify registration
claude mcp list
# Re-register if missing
claude mcp add --scope user --transport stdio claude-peers -- bun ~/claude-peers-mcp/server.ts
How to use claude-peers-mcp on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add claude-peers-mcp
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches claude-peers-mcp from GitHub repository aradotso/trending-skills and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate claude-peers-mcp. Access the skill through slash commands (e.g., /claude-peers-mcp) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Installation Steps
- 1.Install skill using provided installation command
- 2.Test with simple use case relevant to your work
- 3.Evaluate output quality and relevance
- 4.Iterate on prompts to improve results
- 5.Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices▌
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This▌
✓ Use When
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid When
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path▌
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.7★★★★★54 reviews- ★★★★★Kabir Flores· Dec 20, 2024
I recommend claude-peers-mcp for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Tariq Liu· Dec 20, 2024
claude-peers-mcp has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Sakura Menon· Dec 16, 2024
claude-peers-mcp reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Sakura Mehta· Dec 12, 2024
Useful defaults in claude-peers-mcp — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Ama Diallo· Dec 4, 2024
claude-peers-mcp fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Hiroshi Mehta· Nov 23, 2024
Registry listing for claude-peers-mcp matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Zara Li· Nov 11, 2024
Keeps context tight: claude-peers-mcp is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Hiroshi Malhotra· Nov 7, 2024
We added claude-peers-mcp from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Hiroshi Johnson· Oct 26, 2024
claude-peers-mcp fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Hiroshi Smith· Oct 14, 2024
claude-peers-mcp reduced setup friction for our internal harness; good balance of opinion and flexibility.
showing 1-10 of 54