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_PATHEnv var· optionalPath to the claude CLI binary. Defaults to 'claude' on PATH.Default:claudeCLAUDE_DEFAULT_MODELEnv var· optionalShared default model for all tools. Overridden by per-tool CLAUDE_<TOOL>_MODEL vars (QUERY, SEARCH, STRUCTURED).CLAUDE_QUERY_MODELEnv var· optionalOverride model for the query tool.Default:sonnetCLAUDE_STRUCTURED_MODELEnv var· optionalOverride model for the structured tool.Default:sonnetCLAUDE_SEARCH_MODELEnv var· optionalOverride model for the search tool.Default:sonnetCLAUDE_FALLBACK_MODELEnv var· optionalModel to use when the primary model hits a quota error. Set to 'none' to disable fallback.Default:haiku
Show 8 moreShow fewer
CLAUDE_MAX_CONCURRENTEnv var· optionalMaximum concurrent Claude CLI subprocesses (default 3).Default:3CLAUDE_BRIDGE_USE_API_KEYEnv var· optionalSet 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:0CLAUDE_MAX_BUDGET_USDEnv var· optionalMaximum USD spend per call (pass-through to --max-budget-usd). Only applies when using API key auth.CLAUDE_QUERY_TOOLSEnv var· optionalBuilt-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 GrepCLAUDE_STRUCTURED_TOOLSEnv var· optionalBuilt-in tools the structured subprocess may use. Same format and caveats as CLAUDE_QUERY_TOOLS.Default:Read Glob GrepCLAUDE_SEARCH_TOOLSEnv var· optionalBuilt-in tools the search subprocess may use. Same format and caveats as CLAUDE_QUERY_TOOLS.Default:WebSearch WebFetchCLAUDE_QUERY_EFFORTEnv var· optionalReasoning effort for the query tool (low|medium|high|max).CLAUDE_SEARCH_EFFORTEnv var· optionalReasoning effort for the search tool (low|medium|high|max).
Links
Listed in the official MCP Registry since Oct 18, 2026. Mirrored daily; last checked Nov 26, 2026.