CCM
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Claude Code Marketplaces

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Skill index
  • MCP index
  • Marketplace index
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by mertbuilds.com

Independent project, not affiliated with Anthropic
hampsterx avatar

Claude Mcp Bridge

hampsterx/claude-mcp-bridge
2STDIOregistry active
Summary

Wraps Claude Code CLI as an MCP subprocess so you can call it from Cursor, Windsurf, or any MCP client without shell access. Exposes five tools: query for prompts with file context and session resume, search for web lookups, structured for JSON Schema validated output, ping for health checks, and listSessions for cost tracking. Handles effort levels, budget caps, and returns detailed token metadata on every call. Choose this over calling the CLI directly when you need structured output validation, session management across calls, or you're in an environment that can't spawn shells. Supports both subscription and API key auth, with model fallback on quota exhaustion. Most useful when you want Claude Code's agentic capabilities wrapped in a controlled, cost-aware interface.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →

claude-mcp-bridge

npm version npm downloads CI License: MIT Node.js TypeScript MCP Available on CodeGuilds

MCP server that wraps Claude Code CLI as a subprocess, exposing its capabilities as Model Context Protocol tools.

Works with any MCP client: Codex CLI, Gemini CLI, Cursor, Windsurf, VS Code, or any tool that speaks MCP.

Do you need this?

If you're in a terminal agent (Codex CLI, Gemini CLI) with shell access, call Claude Code CLI directly:

# Analyze specific files
claude -p --bare --tools Read -- "Analyze src/utils/parse.ts for edge cases"

# With budget cap
claude -p --bare --max-budget-usd 0.50 "Is this retry logic sound?"

--bare skips hooks, memory, and plugins for clean subprocess use. --tools restricts which tools Claude can use at all; --allowed-tools only pre-approves permission and leaves everything else, including Bash, still reachable. --max-budget-usd prevents runaway costs.

--tools is variadic, so end the list with -- (or another flag) before the prompt. Without it the prompt is read as one more tool name and the CLI exits with "Input must be provided".

For code review, see Code review with this CLI.

Use this MCP bridge instead when:

  • Your client has no shell access (Cursor, Windsurf, Claude Desktop, VS Code)
  • You need structured output with native --json-schema validation
  • You need session resume across calls (--resume SESSION_ID)
  • You need concurrency management and security hardening
  • You want cost metadata surfaced in MCP responses

Quick Start

npx claude-mcp-bridge

Prerequisites

  • Claude Code CLI installed and on PATH
  • Authentication (one of):
    • Subscription (default): claude login (uses your Pro/Max plan, no API credits needed)
    • API key: set ANTHROPIC_API_KEY + CLAUDE_BRIDGE_USE_API_KEY=1 (billed per use via console.anthropic.com)

Codex CLI

Add to ~/.codex/config.json:

{
  "mcpServers": {
    "claude-bridge": {
      "command": "npx",
      "args": ["-y", "claude-mcp-bridge"]
    }
  }
}

Gemini CLI

Add to ~/.gemini/settings.json:

{
  "mcpServers": {
    "claude-bridge": {
      "command": "npx",
      "args": ["-y", "claude-mcp-bridge"]
    }
  }
}

Cursor / Windsurf / VS Code

Add to your MCP settings:

{
  "claude-bridge": {
    "command": "npx",
    "args": ["-y", "claude-mcp-bridge"],
    "env": {
      "ANTHROPIC_API_KEY": "sk-ant-...",
      "CLAUDE_BRIDGE_USE_API_KEY": "1"
    }
  }
}

Tools

ToolDescription
queryExecute prompts with file context, session resume, effort control, and budget caps. Supports text and images. For code review, see Code review with this CLI.
searchWeb search via Claude CLI's WebSearch and WebFetch tools. Returns synthesized answers with sources.
structuredJSON Schema validated output via Claude CLI's native --json-schema.
pingHealth check with CLI version, auth method, capabilities, and model config.
listSessionsList active sessions with cumulative cost, turn count, and timestamps.

query

Execute a prompt with optional file context. Supports session resume via sessionId, effort control (low/medium/high/max), and budget caps (maxBudgetUsd). Images (.png, .jpg, .gif, .webp, .bmp) up to 5MB each are passed to Claude's Read tool.

Key parameters: prompt (required), files, model (default sonnet), sessionId, effort, maxBudgetUsd, workingDirectory, timeout (default 60s).

search

Web search powered by Anthropic's WebSearch tool via Claude CLI. Returns synthesized answers with source URLs.

Key parameters: query (required), model (default sonnet), maxResponseLength, maxBudgetUsd, timeout (default 120s).

structured

Generate JSON conforming to a provided schema using Claude CLI's native --json-schema flag. Returns clean JSON in the first content block, metadata in a separate block so JSON parsing isn't broken.

Key parameters: prompt (required), schema (required, JSON string, max 20KB), files, model (default sonnet), sessionId, maxBudgetUsd, timeout (default 60s).

ping

No parameters. Returns CLI version, auth method (subscription/api-key/none), configured models, capabilities, and server version.

listSessions

No parameters. Returns active sessions with metadata: sessionId, model, createdAt, lastUsedAt, turnCount, totalCostUsd.

All tools attach execution metadata (_meta) with durationMs, model, sessionId, totalCostUsd, and token breakdowns. See DESIGN.md for details.

Configuration

Models

VariableDefaultDescription
CLAUDE_DEFAULT_MODELShared default for all tools
CLAUDE_QUERY_MODELsonnetDefault for query
CLAUDE_STRUCTURED_MODELsonnetDefault for structured
CLAUDE_SEARCH_MODELsonnetDefault for search
CLAUDE_FALLBACK_MODELhaikuFallback on quota exhaustion (none to disable)

Model resolution: explicit parameter > tool-specific env var > CLAUDE_DEFAULT_MODEL > built-in default.

Runtime

VariableDefaultDescription
CLAUDE_MAX_CONCURRENT3Max concurrent subprocess spawns
CLAUDE_CLI_PATHclaudePath to CLI binary
CLAUDE_MAX_BUDGET_USDGlobal cost cap in USD (per call)
ANTHROPIC_API_KEYAPI key (only forwarded when CLAUDE_BRIDGE_USE_API_KEY=1)
CLAUDE_BRIDGE_USE_API_KEYSet to 1 to forward ANTHROPIC_API_KEY to the subprocess (default: subscription auth)

Effort

VariableDefaultDescription
CLAUDE_SEARCH_EFFORTmediumDefault effort for search
CLAUDE_QUERY_EFFORTDefault effort for query

Tools

Each spawned subprocess gets an explicit built-in toolset. The defaults are read-only, so Bash, Write and Edit are not granted unless you widen them below.

VariableDefaultDescription
CLAUDE_QUERY_TOOLSRead Glob GrepBuilt-in tools for query
CLAUDE_STRUCTURED_TOOLSRead Glob GrepBuilt-in tools for structured
CLAUDE_SEARCH_TOOLSWebSearch WebFetchBuilt-in tools for search

Accepts a comma or space separated list, default for the CLI's full built-in set, or an empty value for no tools. Widening these gives the subprocess real capability in the working directory you pass it. See SECURITY.md § Tool Sandboxing.

Choosing a Claude Code MCP server

You need...Consider
Structured output, effort/budget control, session resume, cost metadataThis bridge
Multi-tool orchestration (read, grep, edit, bash as separate MCP tools)mcp-claude-code
Session continuity with async executionclaude-mcp
Maintained lightweight wrapper@kunihiros/claude-code-mcp
Native Claude Code MCP (built-in, no wrapper)claude mcp serve (docs)

Performance

Claude Code CLI has minimal startup overhead. Wall time is dominated by model inference and any agentic exploration.

ScenarioTypical time
Trivial prompt (sonnet)5-10s
Web search + synthesis15-30s

Cost metadata (totalCostUsd, token breakdowns) is returned in _meta on every response.

Bridge family

Two MCP servers, same architecture, different underlying CLIs. Each wraps a terminal agent as a subprocess and exposes it as MCP tools. Pick the one that matches your model provider, or run both for cross-model workflows.

claude-mcp-bridgecodex-mcp-bridge
CLIClaude CodeCodex CLI
ProviderAnthropicOpenAI
Toolsquery, search, structured, ping, listSessionscodex, search, query, structured, ping, listSessions
Code reviewUse Claude Code built-ins directly (not via this bridge), or claude -p for non-Claude-Code hostscodex review --base <ref> (native) or codex tool with caller-supplied prompt
Structured outputNative --json-schema (no Ajv)Ajv validation
Session resumeNative --resumeSession IDs with multi-turn
Budget capsNative --max-budget-usdNot supported
Effort control--effort low/medium/high/maxNot supported
Cold start~1-2s<100ms (inference dominates)
Authclaude login (default) or ANTHROPIC_API_KEY + opt-inOPENAI_API_KEY
CostSubscription (default) or API credits (opt-in)Pay-per-token
Concurrency3 (configurable)3 (configurable)
Model fallbackAuto-retry with fallback modelAuto-retry with fallback model

Both share: subprocess env isolation, path sandboxing, output redaction, FIFO concurrency queue, MCP tool annotations, _meta response metadata, progress heartbeats.

Code review with this CLI

The reviewer prompt is supplied by the caller. The bridge does not bundle review prompts (see ADR-001).

  • In Claude Code (interactive REPL): use the built-in /review, /security-review, /ultrareview. REPL-only; not reachable via claude -p or this bridge.
  • Through this bridge (query / structured): pass the review prompt as plain text. Slash commands (built-in or user-installed ~/.claude/commands/) do not resolve through the bridge, the isolation flags (--bare on the API-key path, --setting-sources "" on the subscription path) block all skill resolution by design. Tracked upstream: anthropics/claude-code#37207.
  • Direct claude -p (no bridge): user skills resolve as /skill-name when no isolation flags suppress them. For subprocess-isolated review use the hardened invocation below.

Route based on where you are:

  • Already in Claude Code? Type /review, /security-review, or /ultrareview. Skip the rest of this section.
  • Calling from another MCP host (Cursor, Codex CLI, Gemini CLI, Claude Desktop)? Slash commands and skills are not reachable through the bridge. Pass your review prompt as plain text to query / structured, or invoke claude -p directly per below.

Direct claude -p invocation (subprocess-isolated)

For shell-equipped consumers (terminal agents, CI, BYOS skills), invoke the CLI directly with hardened isolation flags:

claude -p \
  --permission-mode plan \
  --bare \
  --add-dir <repo-root> \
  --strict-mcp-config \
  --mcp-config '{"mcpServers":{}}' \
  --no-session-persistence \
  --max-budget-usd 0.50 \
  "<your review prompt + diff or file references>"
  • --permission-mode plan: read-only.
  • --bare: strips parent's hooks, plugins, auto-memory, and CLAUDE.md autoload.
  • --add-dir <repo-root>: makes the repo's CLAUDE.md / AGENTS.md available where the diff warrants it.
  • --strict-mcp-config --mcp-config '{"mcpServers":{}}': blocks parent's MCP servers from leaking in. The inner mcpServers key is required; the schema rejects bare '{}'.
  • --no-session-persistence: no session files for one-off reviews.
  • --max-budget-usd: per-call cost cap.

Claude Code skill template

For Claude Code users who want a reusable command, drop this into ~/.claude/commands/review-claude.md:

---
description: Code review via subprocess-isolated claude -p
---

Run code review on the diff between origin/main and HEAD.

```bash
claude -p \
  --permission-mode plan \
  --bare \
  --add-dir "$(git rev-parse --show-toplevel)" \
  --strict-mcp-config \
  --mcp-config '{"mcpServers":{}}' \
  --no-session-persistence \
  --max-budget-usd 0.50 \
  "Review the diff below for bugs, missing error handling on user input, tests modified to silence failures, and security issues (injection, missing auth checks, secret leaks). For each finding cite file:line, severity, and a suggested fix. Skip style/formatting.

$(git diff origin/main...HEAD)"
```

Representative review prompt

A starting point; adapt freely:

Review the following diff:

<diff content>

Look for:
- Bugs that would surface in production
- Missing error handling on user-supplied input
- Tests modified to silence failures rather than verify behaviour
- Security issues (injection, missing auth checks, secret leaks)

For each finding cite file:line, severity (high/medium/low), and a suggested fix.
Skip style/formatting; assume an autoformatter handles those.

Development

npm install
npm run build        # Compile TypeScript
npm run dev          # Watch mode
npm test             # Run tests (vitest)
npm run lint         # ESLint
npm run typecheck    # tsc --noEmit
npm run smoke        # Smoke test against live CLI

Further reading

  • DESIGN.md - Architecture, sessions, cost tracking, response metadata, progress notifications
  • SECURITY.md - Environment isolation, path sandboxing, output redaction, tool sandboxing
  • CHANGELOG.md - Release history

License

MIT

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →

Configuration

CLAUDE_CLI_PATHdefault: claude

Path to the claude CLI binary. Defaults to 'claude' on PATH.

CLAUDE_DEFAULT_MODEL

Shared default model for all tools. Overridden by per-tool CLAUDE_<TOOL>_MODEL vars (QUERY, SEARCH, STRUCTURED).

CLAUDE_QUERY_MODELdefault: sonnet

Override model for the query tool.

CLAUDE_STRUCTURED_MODELdefault: sonnet

Override model for the structured tool.

CLAUDE_SEARCH_MODELdefault: sonnet

Override model for the search tool.

CLAUDE_FALLBACK_MODELdefault: haiku

Model to use when the primary model hits a quota error. Set to 'none' to disable fallback.

CLAUDE_MAX_CONCURRENTdefault: 3

Maximum concurrent Claude CLI subprocesses (default 3).

CLAUDE_BRIDGE_USE_API_KEYdefault: 0

Set to '1' to forward ANTHROPIC_API_KEY to the CLI. Default is subscription-first: the CLI uses existing Max/Pro session and API key is NOT forwarded. Opt in only if you want API billing.

CLAUDE_MAX_BUDGET_USD

Maximum USD spend per call (pass-through to --max-budget-usd). Only applies when using API key auth.

CLAUDE_QUERY_EFFORT

Reasoning effort for the query tool (low|medium|high|max).

CLAUDE_SEARCH_EFFORT

Reasoning effort for the search tool (low|medium|high|max).

Categories
Search & Web Crawling
Registryactive
Packageclaude-mcp-bridge
TransportSTDIO
UpdatedMay 4, 2026
View on GitHub

More from hampsterx

  • Gemini Mcp Bridge6
  • Codex Mcp Bridge3

Related Search & Web Crawling MCP Servers

View all →
cg3-llc avatar
Prior

io.cg3/prior

Shared knowledge base for AI agents. Search and contribute solutions to technical problems.
2
alexanderclapp avatar
Clirank

io.github.alexanderclapp/clirank

Search, compare, and get docs for 210+ APIs ranked by CLI and agent relevance.
2
creativestefan avatar
Mailbridge

io.github.creativestefan/mailbridge

Connect your AI assistant to email — read, search, send, and organise via IMAP/SMTP.
2
ddmanyes avatar
second-brain MCP

io.github.ddmanyes/mcp-second-brain

Self-maintaining knowledge vault: figure-level search, auto-wikilinks, and memory compression.
2
esrisaudiarabia avatar
Arcgis Mcp Server

io.github.esrisaudiarabia/arcgis-mcp-server

Intelligent ArcGIS content search. Works with Online/Enterprise. Requires user credentials.
2
gogogadgetbytes avatar
Smart Connections

io.github.gogogadgetbytes/smart-connections

MCP server for Obsidian Smart Connections. Semantic search using your vault's embeddings.
2