claude-mcp-bridge
This server bridges any MCP host to Claude Opus running headlessly, enabling powerful autonomous AI delegation. It offers the following tools:
ask— Pose read-only questions to Opus for architecture, planning, or explanations.delegate— Hand off a complete autonomous task (file edits, shell commands, tests) to Opus, which runs its own agentic loop until completion.fire— Start a background autonomous task and return immediately with asession_idfor later progress checks.check— Poll the status and progress of a backgroundfiretask bysession_id.follow_up— Continue a prior session bysession_idwithout resending context, since it lives on Claude's side.adversarial_review— Get a critical, read-only review of code, plans, or diffs — hunting for bugs, edge cases, security issues, and race conditions. Useful as a pre-merge gate.web_lookup— Delegate a web/documentation lookup to Opus (with live web access) to find library docs, API references, error explanations, or current package versions.
All tools support cwd (project root) and effort (low/medium/high) parameters, and most support model selection (defaulting to Opus). Delegated tasks also support permission controls (e.g., acceptEdits, bypassPermissions).
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-mcp-bridge analyze the src directory for bugs"
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-mcp-bridge
MCP server that lets any agent or MCP host (Cursor, Codex, Antigravity, another Claude Code,
your own app) escalate to Opus via Claude Code running headless (claude -p / claude --bg).
Opus is expensive but very capable — this bridge is deliberately narrow: complex reasoning, architecture questions, adversarial review, and autonomous work. Cheap mechanical work (mapping a repo, scanning files) should stay on the host agent's lighter model.
Nested MCP delegation is blocked: Opus sessions spawned by this bridge cannot call claude-mcp-bridge (or any MCP) again.
Tools
Tool | Purpose | Model |
| Read-only Q&A — architecture, explanation, planning ( | Opus (forced) |
| Full autonomous task — edit, shell, tests (max turns, synchronous) | Opus (forced) |
| Fire-and-forget background task — returns | Opus (forced) |
| Compact progress report for a | read-only (no model) |
| Continue a prior session by | Opus (forced) |
Parallel background tasks
fire({ prompt: "Refactor the auth module to use JWT" })
→ returns session_id immediately
check({ session_id: "..." })
→ check progress anytimeExamples
// Ask Opus to explain architecture (read-only)
{ "prompt": "Explain the architecture of this project" }
// Delegate autonomous work (waits for completion)
{ "prompt": "Refactor auth to JWT and fix all tests" }
// Background refactor — poll while you keep working
{ "prompt": "Refactor the auth module to use JWT", "name": "JWT refactor" }
// → session_id: ...
{ "session_id": "..." }Every tool accepts: cwd (project root), effort (low | medium | high, default high).
Related MCP server: agent-network
Requirements
Node ≥ 18
claudeCLI v2.1.139+ installed and authenticated (claudeonce to log in). Background tasks (fire/check) requireclaude --bgandclaude agents --json.
Install
git clone https://github.com/JaimeJunr/claude-mcp-bridge.git
cd claude-mcp-bridge
npm install
npm run buildRegister in an MCP host
Claude Code:
claude mcp add claude-bridge -s user -- node /abs/path/to/claude-mcp-bridge/dist/index.jsCursor / Codex / any host — add to its mcp.json:
{
"mcpServers": {
"claude-bridge": {
"command": "node",
"args": ["/abs/path/to/claude-mcp-bridge/dist/index.js"]
}
}
}Configuration (env)
Var | Default | Meaning |
|
| Path to the |
|
| Model alias — always Opus in this bridge. |
|
| Default reasoning effort. |
|
| Max agentic turns for |
|
| Permission mode for delegate/fire: |
|
| Per-call timeout for sync tools ( |
|
| Timeout for |
Security:
acceptEditslets delegated Opus edit files autonomously;bypassPermissionsadditionally allows unrestricted shell. Only raise this for trusted workspaces.askalways usesplan(read-only).
Develop
npm test # vitest — unit tests for arg building / json parsing
npm run dev # run from source via tsxLicense
MIT
Available Tools
4 toolsadversarial_reviewA
Get an adversarial code/plan review from Claude. Claude hunts for bugs, edge cases, security issues, race conditions and unstated assumptions. USE THIS before merging or committing. Read-only: Claude is instructed not to modify files.
Inputs: content, files, focus, cwd, +2 more.
delegateA
Delegate a complete task to Claude Code running headless (claude -p). Claude has full tool access (read, edit, shell, web) in the given cwd and runs its own agentic loop. Use for heavy autonomous work: refactors, multi-file implementation, running and fixing tests.
Inputs: prompt (required), cwd, model, effort.
follow_upA
Continue a previous Claude session by session_id (returned by every other tool). The prior context lives on Claude's side, so you don't resend it.
Inputs: session_id (required), question (required), cwd, model, +1 more.
web_lookupA
Delegate a web/documentation lookup to Claude (with web access): library docs, API references, error messages, current versions. Use when you need information that may be newer than your training data.
Inputs: query (required), cwd, model, effort.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: adversarial_review for code review, delegate for autonomous tasks, follow_up for session continuation, and web_lookup for web searches. No overlap is apparent.
All tools use snake_case, with a mix of verb_noun (delegate, follow_up), adjective_noun (adversarial_review), and noun_verb (web_lookup). The pattern is mostly consistent but not perfectly uniform.
With 4 tools, the set is well-scoped for a delegation bridge server. Each tool earns its place, covering review, autonomous execution, session management, and web lookup.
The tool surface covers key delegation scenarios: code review, autonomous work, session continuation, and web research. A minor gap is a simple chat or query tool, but the core use cases are addressed.
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Shared memory and mail for your AI agents. Verified with Claude Code; other MCP clients in testing.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server that spawns autonomous Claude Code agents in GitHub repos, enabling task delegation with persistent state, multi-step workflows, and job monitoring.4776 npm2Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server that enables Claude Code to communicate with other Claude Code agents over HTTP, allowing users to ask questions about remote codebases or delegate coding tasks.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that lets ChatGPT or any MCP client securely delegate coding tasks to a local Claude Code instance, with git checkpointing, approval gates, and structured results. Supports code review, test running, and rollback via simple tool calls.14 npmMIT
- AlicenseNot gradedqualityDmaintenanceA local MCP server that lets Hermes supervise Claude Code, delegating focused coding, research, or review tasks to the Claude Code CLI and managing worker sessions, background jobs, cancellations, and read-only reviews.3MIT