claude-bridge
Shared MCP server enabling two Claude Code instances to collaborate over the internet by sharing messages, memory, tasks, and files through a common URL and room key.
README
claude-bridge
2台の Claude Code をインターネット越しに連携させる共有MCPサーバー。 同じURL + 同じ「ルームキー」で接続した者同士が、メッセージ・共有メモリ・タスク・ファイルを共有できる。
ステータス: 実験で打ち止め(アーカイブ) ローカルでの動作検証までは完了しているが、本番デプロイはしていない。 検討の結果、「共有のGitHubリポジトリ + 公式GitHub MCP」を両者で繋ぐ方が デプロイ不要・履歴/UIつき・タスクはIssueにそのまま乗るため現実的、という結論に至った。 本リポジトリは作ったものの記録として残している。 (メッセージ→Issueコメント / 共有メモリ→ファイル・Wiki / タスク委譲→Issue / 成果物→commit・Release)
[あなたのClaude Code] --MCP(HTTP)--> [claude-bridge] <--MCP(HTTP)-- [仲間のClaude Code]
ツール
| 分類 | ツール |
|---|---|
| メッセージ | send_message, get_messages |
| 共有メモリ | post_memory, search_memory |
| タスク委譲 | create_task, list_tasks, claim_task, complete_task |
| ファイル | upload_file, download_file, list_files |
ローカルで動かす
npm install
npm run dev # tsx で起動(ホットリロード)
# または
npm run build && npm start
http://localhost:3000/mcp で待ち受ける。GET /health で疎通確認。
デプロイ(Railway 例)
- このフォルダをGitリポジトリにして push
- Railway で New Project → Deploy from repo
- Dockerfile が自動検出される。永続化のため Volume を
/dataにマウント - 払い出された公開URL(例
https://xxx.up.railway.app)の/mcpが接続先
Fly.io でも同じ Dockerfile でそのまま動く(fly launch)。
Claude Code から接続する
あなたと仲間で同じURL・同じルームキーを使う(キーが部屋を分離する)。
claude mcp add --transport http bridge https://xxx.up.railway.app/mcp \
--header "X-Room-Key: 二人だけの合言葉"
接続後、send_message でメッセージを送る、create_task でタスクを委譲する、など。
相手は get_messages / list_tasks で受け取る。
認証について
ルームキーは「合言葉を知っている人が同じ部屋に入れる」という最小限の仕組み。 推測されにくい十分に長いランダム文字列を使うこと。サーバーURLが公開される性質上、 キーが漏れると第三者が同じ部屋に入れる点に注意。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.