MCP directory
CM

Claude Mcp Bridge

by github.com/hampsterx · v0.7.2 · updated Oct 18, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • CLAUDE_CLI_PATH

    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_MODEL

    Override model for the query tool.

  • CLAUDE_STRUCTURED_MODEL

    Override model for the structured tool.

  • CLAUDE_SEARCH_MODEL

    Override model for the search tool.

  • CLAUDE_FALLBACK_MODEL

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

  • CLAUDE_MAX_CONCURRENT

    Maximum concurrent Claude CLI subprocesses (default 3).

  • CLAUDE_BRIDGE_USE_API_KEY

    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_TOOLS

    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.

  • CLAUDE_STRUCTURED_TOOLS

    Built-in tools the structured subprocess may use. Same format and caveats as CLAUDE_QUERY_TOOLS.

  • CLAUDE_SEARCH_TOOLS

    Built-in tools the search subprocess may use. Same format and caveats as CLAUDE_QUERY_TOOLS.

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

More from github.com/hampsterx

More MCP servers