claude-bridge-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@claude-bridge-mcpReview the uncommitted changes in the current project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
claude-bridge-mcp
A production-quality Model Context Protocol (MCP) server that lets ChatGPT — or any MCP client — securely delegate coding tasks to a local Claude Code instance.
ChatGPT plans and orchestrates; Claude Code executes inside git-checkpointed, security-guarded project folders; the bridge returns structured results (summary, diff, changed files, test output, usage) so the conversation can continue with full context.
The bridge orchestrates Claude Code — it does not bypass Claude limits, permissions, or billing. When Claude is unavailable, analysis work (reviews) can fail over to other configured providers.
┌────────────────────────────────────────────┐
│ ChatGPT / any MCP client │
│ plans tasks • reads results • iterates │
└─────────────────────┬──────────────────────┘
│ MCP (stdio or Streamable HTTP)
┌─────────────────────▼──────────────────────┐
│ claude-bridge-mcp │
│ ┌──────────┐ ┌─────────┐ ┌─────────────┐ │
│ │ Security │ │ Git │ │ Approvals │ │
│ │ guard │ │workspace│ │ queue │ │
│ └────┬─────┘ └────┬────┘ └──────┬──────┘ │
│ └─────┬──────┴─────────────┘ │
│ ┌──────▼───────┐ ┌───────────────┐ │
│ │ Executor │ │ Dashboard │ │
│ │ router │ │ (localhost) │ │
│ └──────┬───────┘ └───────────────┘ │
└─────────────┼──────────────────────────────┘
┌──────┼──────────┬──────────┐
┌──────▼───┐ ┌▼────────┐ ┌▼───────┐ ┌▼───────┐
│ Claude │ │ OpenAI │ │ Gemini │ │ Ollama │
│ Code CLI │ │ (API) │ │ (API) │ │ (local)│
│ code+rev │ │ fallback│ │fallback│ │fallback│
└──────────┘ └─────────┘ └────────┘ └────────┘Features
delegate_to_claude— run an engineering task with the local Claude Code CLI: validates the project against an allowlist, creates a git checkpoint, executes headless, returns summary + sanitized diff + changed files + exit code + token/cost usage.review_changes— structured code review (quality, bugs, security, performance, architecture) of any diff or of a project's pending changes.run_tests— detects npm/pnpm/yarn/bun/pytest/cargo/go, installs dependencies if needed, runs tests, returns a structured result.status— current project, branch, modified files, latest task, pending approvals, executor health, estimated usage.approve_action/rollback_checkpoint— human approval gate for dangerous operations, and one-call rollback to any pre-task checkpoint.Multi-provider routing — Claude first; OpenAI / Gemini / Ollama as analysis fallbacks when Claude is unavailable or rate-limited.
Security by default — approved-project allowlist, blocked-command policy with single-use approval tokens, secret redaction on every output, no shell-interpolated commands, full audit logging.
Web dashboard — running tasks, logs, token estimates, recent executions, executor health, approval queue with approve/deny buttons.
Related MCP server: claude-mcp-bridge
Quick start
git clone <this repo> && cd claude-bridge-mcp
npm install && npm run build
cp config.example.yaml config.yaml # then edit approved_projects
npm start # stdio transport by defaultRequirements: Node ≥ 20, git, and the Claude Code CLI installed and authenticated (claude --version must work).
See docs/installation.md for connecting from ChatGPT (Streamable HTTP) and Claude Desktop (stdio).
The tools
Tool | What it does | Dangerous-op gate |
| Execute a coding task via Claude Code | Yes — approval required for rm/sudo/push/deploy/env |
| Structured review of a diff | Read-only |
| Install deps + run project tests | Approved projects only |
| Project/git/task/executor/usage overview | Read-only |
| Human approve/deny for a flagged task | Human-in-the-loop |
| Hard-reset to a pre-task checkpoint | Checkpoint commits only |
Every tool returns a structured JSON envelope: success, reason (on failure), payload fields, and next_steps. Tools never crash the server — errors become structured failures.
Typical flow
ChatGPT calls
delegate_to_claudewith a project path and a task.The bridge validates the path, checks the task against the blocked-operation policy, creates a git checkpoint, and runs Claude Code headless.
The result comes back with a summary, a sanitized diff, and the changed file list.
ChatGPT calls
review_changesandrun_tests, reads the findings, and either iterates (anotherdelegate_to_claude) or asks forrollback_checkpoint.
Documentation
Development
npm test # vitest: unit + integration + security tests
npm run typecheck
npm run buildLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- AlicenseAqualityCmaintenanceA local MCP server that lets Claude delegate scoped work to Codex with structured results and guardrails, supporting planning, code review, build, reverse engineering, and long-running background tasks.11MIT
- AlicenseAqualityCmaintenanceMCP server that lets any agent or MCP host delegate tasks to Claude Code running headless, with tools for review, validation, analysis, and autonomous work.481 npm2MIT
- FlicenseNot gradedqualityCmaintenanceA local MCP server that connects Claude Code to your work environment through auditable tools for file operations, API calls, and command execution, with safety gates and configuration.-
- AlicenseNot gradedqualityAmaintenanceAn MCP server that bridges CLI coding agents like Claude Code, Codex, opencode, and Antigravity into any MCP client, enabling synchronous and asynchronous task execution, follow-up input, and a structured code review tool.157 npm1MIT