Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

MCP server that lets any agent or MCP host delegate tasks to Claude Code running headless, with tools for review, validation, analysis, and autonomous work.

README.md

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 | |------|---------|-------| | ask | Read-only Q&A — architecture, explanation, planning (claudecode({ prompt: "..." })) | Opus (forced) | | delegate | Full autonomous task — edit, shell, tests (max turns, synchronous) | Opus (forced) | | fire | Fire-and-forget background task — returns session_id immediately | Opus (forced) | | check | Compact progress report for a fire session | read-only (no model) | | follow_up | Continue a prior session by session_id | Opus (forced) |

Parallel background tasks

fire({ prompt: "Refactor the auth module to use JWT" })
→ returns session_id immediately

check({ session_id: "..." })
→ check progress anytime

Examples

// 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).

Requirements

  • Node ≥ 18
  • claude CLI v2.1.139+ installed and authenticated (claude once to log in).

Background tasks (fire / check) require claude --bg and claude agents --json.

Install

git clone https://github.com/JaimeJunr/claude-mcp-bridge.git
cd claude-mcp-bridge
npm install
npm run build

Register in an MCP host

Claude Code: ``bash claude mcp add claude-bridge -s user -- node /abs/path/to/claude-mcp-bridge/dist/index.js ``

Cursor / Codex / any host — add to its mcp.json: ``json { "mcpServers": { "claude-bridge": { "command": "node", "args": ["/abs/path/to/claude-mcp-bridge/dist/index.js"] } } } ``

Configuration (env)

| Var | Default | Meaning | |-----|---------|---------| | CLAUDE_BIN | claude | Path to the claude binary. | | CLAUDE_BRIDGE_MODEL | opus | Model alias — always Opus in this bridge. | | CLAUDE_BRIDGE_EFFORT | high | Default reasoning effort. | | CLAUDE_BRIDGE_MAX_TURNS | 20 | Max agentic turns for delegate / fire. | | CLAUDE_BRIDGE_PERMISSION | acceptEdits | Permission mode for delegate/fire: plan \| default \| acceptEdits \| bypassPermissions. | | CLAUDE_BRIDGE_TIMEOUT_MS | 600000 | Per-call timeout for sync tools (ask, delegate). | | CLAUDE_BRIDGE_SHORT_TIMEOUT_MS | 30000 | Timeout for fire / check. |

Security: acceptEdits lets delegated Opus edit files autonomously; bypassPermissions additionally allows unrestricted shell. Only raise this for trusted workspaces. ask always uses plan (read-only).

Develop

npm test       # vitest — unit tests for arg building / json parsing
npm run dev    # run from source via tsx

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Developer Tools servers.