
Claude Bridge Mcp
io.github.rahuljava2807由 GitHub 帳號 rahuljava2807 發布v2.2.0更新於 Nov 3, 2026
Pipes Claude Code session output into Claude Chat — no more copy-paste between tools
發布方自己的服務:Claude Platform Docs
概覽
本機 MCP 伺服器,讀取 Claude Code 工作階段日誌並提供給任何 MCP 用戶端,讓助理輸出不必複製貼上就能帶進 Claude Chat。
- 可以做什麼
- 列出並檢視本機 Claude Code 工作階段,含專案路徑、訊息數與時間戳
- 讀取某工作階段最新的助理訊息或最近 N 則訊息作為上下文
- 輪詢工作階段檔案,只回傳上次呼叫以來的新訊息
- 把最近訊息快照成本機 markdown 檔案並依計時器持續更新
- 可選擇透過 Drive API 將快照寫入一份 Google 文件
- 透過檔案系統收件匣向指定 Claude Code 工作階段投遞提示詞
- 適用情境
- 適合在終端機用 Claude Code 做事、又想讓 Claude Chat、Claude Desktop、Cursor 或 Claude Project 知道該工作階段剛做了什麼,或把後續提示詞交回該工作階段,而不必在工具間複製文字的情況。
- 執行需求
- 以本機 Node.js 程序透過 stdio 執行,可從 npm 安裝或由原始碼建置。需要家目錄下 .claude/projects 中的 Claude Code 工作階段日誌。Google Drive 上傳為選用,需設定 GOOGLE_DRIVE_ENABLED=true、提供 Google Cloud OAuth 桌面用戶端 JSON,並完成一次瀏覽器授權。僅限桌面端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Claude Bridge Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
claude-code-bridge-mcp
[npm version] [License: MIT] [Node.js]
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/<project-hash>/ 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 namedclaude-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/<session_id>.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/<session_id>.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:
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:
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: -
Call the
setup_drive_synctool 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
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
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
Claude Code log format
Sessions are stored as JSONL at:
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
License
MIT — see LICENSE.
來源:README.md,提交 28ff778
工具
0版本歷史
1- v2.2.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Claude 整合
Claude Platform Docs
com.claude.platform官方發布者
遠端 MCP 伺服器,讓助理搜尋並閱讀 Claude 平台文件與 API 參考。

Insta Edits for Claude
由 GitHub 帳號 faisalkhanzemi 發布
把 Claude Code 連上 Mac 版 Instagram Edits,同步完整的 274 個工具編輯器,讓助理剪輯 Reels。

Claude Checkpoint Mcp
由 GitHub 帳號 daniel-munoz 發布
本機 MCP 伺服器,把 Claude Code 工作階段的狀態存成專案內的 JSON 檔,並能還原成精簡的續接摘要。

Qwen DAP MCP — C/C++ Debugger for Claude Code, Codex & Qwen
由 GitHub 帳號 spk-c 發布
通過 GDB、LLDB 和 MCP 為 Claude Code、Codex 和 Qwen 提供 C/C++ 崩潰、掛起和轉儲除錯AI 翻譯

AVE for Claude Code — Local Video Editing
由 GitHub 帳號 lemberalla 發布
僅適用於 Claude Code 的本機 AVE 時間軸編輯與匯出。需要現有 AVE 連接。AI 翻譯