Skip to main content

Claude MCP Bridge

io.github.hampsterx/claude-mcp-bridge

v0.7.2Updated Oct 18, 2026stdio · npm

Wraps Claude Code CLI as MCP tools: query, search, structured, ping, listSessions.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add claude-mcp-bridge -e CLAUDE_CLI_PATH=claude -e CLAUDE_QUERY_MODEL=sonnet -e CLAUDE_STRUCTURED_MODEL=sonnet -e CLAUDE_SEARCH_MODEL=sonnet -e CLAUDE_FALLBACK_MODEL=haiku -e CLAUDE_MAX_CONCURRENT=3 -e CLAUDE_BRIDGE_USE_API_KEY=0 -e 'CLAUDE_QUERY_TOOLS=Read Glob Grep' -e 'CLAUDE_STRUCTURED_TOOLS=Read Glob Grep' -e 'CLAUDE_SEARCH_TOOLS=WebSearch WebFetch' -- npx -y [email protected]

Configuration

14 settings.

  • CLAUDE_CLI_PATH
    Env var· optional
    Path to the claude CLI binary. Defaults to 'claude' on PATH.Default: claude
  • CLAUDE_DEFAULT_MODEL
    Env var· optional
    Shared default model for all tools. Overridden by per-tool CLAUDE_<TOOL>_MODEL vars (QUERY, SEARCH, STRUCTURED).
  • CLAUDE_QUERY_MODEL
    Env var· optional
    Override model for the query tool.Default: sonnet
  • CLAUDE_STRUCTURED_MODEL
    Env var· optional
    Override model for the structured tool.Default: sonnet
  • CLAUDE_SEARCH_MODEL
    Env var· optional
    Override model for the search tool.Default: sonnet
  • CLAUDE_FALLBACK_MODEL
    Env var· optional
    Model to use when the primary model hits a quota error. Set to 'none' to disable fallback.Default: haiku
Show 8 more
  • CLAUDE_MAX_CONCURRENT
    Env var· optional
    Maximum concurrent Claude CLI subprocesses (default 3).Default: 3
  • CLAUDE_BRIDGE_USE_API_KEY
    Env var· optional
    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.Default: 0
  • CLAUDE_MAX_BUDGET_USD
    Env var· optional
    Maximum USD spend per call (pass-through to --max-budget-usd). Only applies when using API key auth.
  • CLAUDE_QUERY_TOOLS
    Env var· optional
    Built-in tools the query subprocess may use. Comma or space separated list, 'default' for the CLI's full built-in set, or empty for no tools. The default withholds Bash, Write and Edit; widening it grants real capability in the caller-supplied working directory.Default: Read Glob Grep
  • CLAUDE_STRUCTURED_TOOLS
    Env var· optional
    Built-in tools the structured subprocess may use. Same format and caveats as CLAUDE_QUERY_TOOLS.Default: Read Glob Grep
  • CLAUDE_SEARCH_TOOLS
    Env var· optional
    Built-in tools the search subprocess may use. Same format and caveats as CLAUDE_QUERY_TOOLS.Default: WebSearch WebFetch
  • CLAUDE_QUERY_EFFORT
    Env var· optional
    Reasoning effort for the query tool (low|medium|high|max).
  • CLAUDE_SEARCH_EFFORT
    Env var· optional
    Reasoning effort for the search tool (low|medium|high|max).

Listed in the official MCP Registry since Oct 18, 2026. Mirrored daily; last checked Nov 26, 2026.