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(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "claude-bridge": { "command": "npx", "args": [ "-y", "@rahulonramp2807/claude-bridge-mcp" ] } } }退出 Claude 再重新打开
试一试
用 Claude Bridge MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Claude Bridge MCP,或回答中出现 Claude Bridge MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Claude Bridge MCP
Claude Bridge MCP 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Claude Bridge MCP 的应用
- 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要先在电脑上安装 Node.js(只需一次)
- 需要先在电脑上安装 Node.js(只需一次)
- 需要先在电脑上安装 Node.js(只需一次)
B · 聊天与邮件 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Inbox Zero✓ ChatGPT
- Agent-Native Chat✓ ChatGPT
- draw.io✓ ChatGPT
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add claude-bridge -- npx -y @rahulonramp2807/claude-bridge-mcp在 Claude Code 中输入 /mcp
应能看到 Claude Bridge MCP 在列表中并显示已连接
试一试
用 Claude Bridge MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Claude Bridge MCP,或回答中出现 Claude Bridge MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Claude Bridge MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Claude Bridge MCP,或回答中出现 Claude Bridge MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Claude Bridge MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Claude Bridge MCP,或回答中出现 Claude Bridge MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 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月12日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 rahuljava2807 验证,该账户拥有此仓库
- ! 注意
仍在维护
代码最后更新于7个月前,已超过 6 个月
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“聊天与邮件”中的其他服务器比较i
- 星标数多于此分类中其他 1963 个服务器的 89%
- 发布到注册中心的时间比此分类中其他 1963 个服务器的 6% 更新
- 基础检查结果等于或优于此分类中其他 1963 个服务器的 9%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Claude Bridge MCP 安全吗?
它在 2 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于7个月前,最新版本(2.2.0)于7个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Inbox Zero, Agent-Native Chat, draw.io
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况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.