Claude Bridge MCP
概要
作者による説明(英語の原文)
Pipes Claude Code session output into Claude Chat — no more copy-paste between tools
できること
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
- 接続方法: パソコンで動く
- トランスポート: stdio
- カテゴリ: チャット・メール
インストール
使っているAIアプリを選んで、設定をコピーしてください。
チェック 1/2 合格 · あなたのパソコンで動きます
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
パソコン版 Claude アプリの設定ファイルを開く
SettingsDeveloperEdit Config
この設定を貼り付けて保存
{ "mcpServers": { "claude-bridge": { "command": "npx", "args": [ "-y", "@rahulonramp2807/claude-bridge-mcp" ] } } }Claude を終了してもう一度開く
試してみる
Claude Bridge MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が Claude Bridge MCP を使っていると言うか、回答に Claude Bridge MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ Claude Bridge MCP につなげません
Claude Bridge MCP はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
代わりにできること
A · Claude Bridge MCP につなげるアプリを使う
- 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ)
B · チャット・メール の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
- Inbox Zero✓ ChatGPT
- Agent-Native Chat✓ ChatGPT
- draw.io✓ ChatGPT
Claude Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
このコマンドを貼り付けて Enter
claude mcp add claude-bridge -- npx -y @rahulonramp2807/claude-bridge-mcpClaude Code で /mcp と入力
Claude Bridge MCP が一覧にあり、接続済みと表示されれば OK です
試してみる
Claude Bridge MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が Claude Bridge MCP を使っていると言うか、回答に Claude Bridge MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
Cursor の AI チャットを Agent モードで開く
試してみる
Claude Bridge MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が Claude Bridge MCP を使っていると言うか、回答に Claude Bridge MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
VS Code の AI チャットを Agent モードで開く
試してみる
Claude Bridge MCP を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が Claude Bridge MCP を使っていると言うか、回答に Claude Bridge MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください
JSON 設定は下の「開発者向け」にあります
開発者向け:ターミナルのコマンドと JSON 設定
パソコンにインストール
Claude Code
claude mcp add claude-bridge -- npx -y @rahulonramp2807/claude-bridge-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"claude-bridge": {
"command": "npx",
"args": [
"-y",
"@rahulonramp2807/claude-bridge-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"claude-bridge": {
"command": "npx",
"args": [
"-y",
"@rahulonramp2807/claude-bridge-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"claude-bridge": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@rahulonramp2807/claude-bridge-mcp"
]
}
}
}この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
ひと目でわかる
使えるアプリ
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月11日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント rahuljava2807 で確認済みです
- ! 注意
今もメンテナンスされている
コードの最終更新:7 か月前(6か月以上前)
- … 未チェック
ライセンスがある
このリポジトリはまだGitHubから読み取っていません
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
ユーザーレビュー
まだレビューはありません
チャット・メールのほかのサーバーとの比較i
- このカテゴリのほかの1938件のうち89%よりスターが多い
- このカテゴリのほかの1938件のうち6%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの1938件のうち11%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
Claude Bridge MCPは安全ですか?
当てはまる基本チェック2項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は7 か月前、最新バージョン(2.2.0)がレジストリに届いたのは7 か月前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
代わりに使えるものは?
同じカテゴリには:Inbox Zero, Agent-Native Chat, draw.io
代わりの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Agent-Native Chat
Minimal chat-first app with durable threads, actions, and the app-agent loop
draw.io
Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
claude-code-bridge-mcp
MCP server that pipes Claude Code session output directly into Claude Chat — no more copy-paste between tools.
claude-code-bridge-mcp is a Model Context Protocol (MCP) server that reads Claude Code's local session logs from ~/.claude/projects/ / and exposes them as tools to any MCP-compatible client (Claude Desktop, Claude Chat, Cursor, etc.). Run Claude Code in your terminal and pull its latest output into Claude Chat with a single tool call.
Features
- `get_latest_output` — grab the most recent assistant message from any (or the most-recent) Claude Code session.
- `list_sessions` — enumerate all local sessions with project path, message count, and timestamps.
- `get_session_context` — fetch the last N messages from a session for context injection.
- `watch_session` — poll a session file every 2 seconds and drain new messages on demand.
- `write_context` _(v2)_ — snapshot the last N messages into
~/.claude/bridge-context.mdand~/Documents/claude-bridge-context.mdas clean markdown. - `start_auto_sync` _(v2)_ — keep that markdown snapshot live: rewrites both files every 30 seconds (configurable) so a synced folder stays current without manual calls.
- `setup_drive_sync` _(v2.1)_ — authorize direct Google Drive upload. Each sync tick then upserts a Google Doc named
claude-bridge-contextvia the Drive API — no Drive desktop client required. - `send_to_session` _(v2.2)_ — queue a prompt for a specific Claude Code session via a cooperative inbox at
~/.claude/bridge-inbox/ .txt. Closes the read-only gap: Projects Claude → inbox → Claude Code acts on it.
What's new in v2.2 — send_to_session (cooperative dispatch)
v1 read sessions. v2 wrote context out to Drive. v2.2 lets the other side push prompts back in.
send_to_session overwrites ~/.claude/bridge-inbox/ .txt with the latest prompt and writes a human-readable receipt to ~/.claude/bridge-inbox/latest.md. The target Claude Code session picks it up via a one-time setup instruction that send_to_session returns in its response — paste that once into your Claude Code terminal (or add it to your project's CLAUDE.md) and every subsequent prompt arrives automatically.
Why cooperative instead of direct injection: Claude Code's JSONL is append-only from the CLI's perspective — it doesn't re-read the file mid-session. A real dispatch channel exists (POST /v1/sessions/{id} via Anthropic's relay, the same channel /remote-control uses) but is undocumented and requires reading the CLI's OAuth token from the macOS Keychain. Shipping against an undocumented internal API would break on every Claude Code release and leak credentials from every install — so v2.2 uses the filesystem inbox instead. See GitHub issue for the v3 path.
Example:
// send_to_session → response
{ "session_id": "15ef12ba-851e-4591-bbd4-c23170e15919", "project_path": "/Users/you/Documents/my-app", "written": true, "inbox_path": "/Users/you/.claude/bridge-inbox/15ef12ba-....txt", "receipt_path": "/Users/you/.claude/bridge-inbox/latest.md", "prompt_preview": "refactor the auth middleware to use Fluid Compute", "setup_instruction": "Before each response, check ~/.claude/bridge-inbox/15ef12ba-....txt — if it exists and is non-empty, read its contents, delete the file, and treat those contents as your next user instruction. You only need to be told this once per session.", "remote_control_url": "https://claude.ai/code/session_..." }
dry_run: true returns the same shape without touching the filesystem.
What's new in v2 — Google Drive bridge
Claude Projects can't talk to an MCP server directly, but it *can* read files from a connected Google Drive. v2 closes that loop:
Claude Code → claude-bridge-mcp.write_context → ~/Documents/claude-bridge-context.md
→ Google Drive sync → Projects Claude reads via Drive connector
No more copy-paste, and it works inside Projects too.
Workflow:
- Make
~/Documents(or any subfolder holdingclaude-bridge-context.md) part of your Google Drive sync. - Add this MCP server to Claude Desktop, Claude Code, or any MCP client.
- In that client, call
start_auto_synconce — it returns immediately and keeps the markdown fresh in the background. - In a Claude Project, add Google Drive as a source and point it at
claude-bridge-context.md. Ask Projects Claude what Claude Code is up to — it reads the live file.
What's new in v2.1 — Direct Drive API upload
v2 relied on the Google Drive desktop client to sync ~/Documents/claude-bridge-context.md up to Drive. v2.1 removes that dependency: the MCP server now talks to the Drive API itself and upserts a Google Doc named claude-bridge-context every sync tick.
Setup (one time):
- Create OAuth credentials in Google Cloud Console:
- Go to console.cloud.google.com, create a project (or use an existing one).
- Enable the Google Drive API for the project.
- Under APIs & Services → Credentials, create an OAuth client ID of type Desktop app.
- Download the client JSON and save it to
~/.claude/bridge-google-credentials.json.
- Enable the Drive sync and (re)start the MCP server with
GOOGLE_DRIVE_ENABLED=truein its environment. In Claude Desktop'sclaude_desktop_config.json:
{
"mcpServers": { "claude-bridge": { "command": "node", "args": ["/absolute/path/to/claude-code-bridge-mcp/dist/index.js"], "env": { "GOOGLE_DRIVE_ENABLED": "true" } } } }
3. Call the `setup_drive_sync` tool from any connected client. It opens a browser tab for Google consent, saves the refresh token to `~/.claude/bridge-google-token.json`, and performs an initial upload. The response includes the Doc URL.
- Call
start_auto_sync. From now on, every tick writes the local markdown and pushes the same content to the Google Doc. The refresh token is reused silently on future server restarts.
What the user sees:
- A single Google Doc in Drive root named
claude-bridge-context, live-updated every 30s with the most recent Claude Code session output. - Add it as a source to any Claude Project, or open it directly — no Drive desktop client, no copy-paste.
Opting out: Omit GOOGLE_DRIVE_ENABLED (or set it to anything other than true) and the server behaves exactly like v2 — local markdown only, no Drive calls.
Installation
git clone https://github.com/rahuljava2807/claude-code-bridge-mcp.git
cd claude-code-bridge-mcp npm install npm run build
Add it to Claude Desktop
Edit claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": { "claude-bridge": { "command": "node", "args": ["/absolute/path/to/claude-code-bridge-mcp/dist/index.js"] } } }
Restart Claude Desktop. The claude-bridge tools will appear in the tool picker.
Usage
Typical workflow:
- Run
claudein a terminal to start a Claude Code session and do some work. - In Claude Chat, ask:
"Use
list_sessionsto find my most recent Claude Code session, then callget_latest_outputon it and summarize what Claude Code just did."
- For continuous streaming during a long-running Claude Code task, call
watch_sessionrepeatedly — each call returns only new messages since the last call.
Example tool call
// get_latest_output with no arguments → uses the most recently updated session
{ "content": "I've refactored the auth middleware to use Fluid Compute...", "timestamp": "2026-04-16T15:32:11.441Z", "session_id": "01HZ...", "project_path": "/Users/you/code/my-app" }
Claude Code log format
Sessions are stored as JSONL at:
~/.claude/projects/<project-hash>/<session-id>.jsonl
~/.claude/projects/ /sessions/ .jsonl
Each line is one JSON event with fields like type, role, content, and timestamp. The parser tolerates variations in shape and extracts assistant text from both string and content-block payloads.
Development
npm run dev # tsc --watch
npm run build # compile to dist/ npm start # run the compiled server over stdio
License
MIT — see LICENSE.