AgentHubAgentHub

claude-mcp-bridge

MCP ServerMCP Registry官方收录

io.github.hampsterx/claude-mcp-bridge · v0.6.1

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

概览

claude-mcp-bridge 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

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

环境变量

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_EFFORT可选

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

CLAUDE_SEARCH_EFFORT可选

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

相关资源

统一 Manifest

{
  "id": "io.github.hampsterx/claude-mcp-bridge",
  "type": "mcp-server",
  "version": "0.6.1",
  "displayName": "claude-mcp-bridge",
  "description": "Wraps Claude Code CLI as MCP tools: query, search, structured, ping, listSessions.",
  "repository": {
    "url": "https://github.com/hampsterx/claude-mcp-bridge",
    "source": "github"
  },
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "claude-mcp-bridge",
        "version": "0.6.1",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "CLAUDE_CLI_PATH",
            "description": "Path to the claude CLI binary. Defaults to 'claude' on PATH."
          },
          {
            "name": "CLAUDE_DEFAULT_MODEL",
            "description": "Shared default model for all tools. Overridden by per-tool CLAUDE_<TOOL>_MODEL vars (QUERY, SEARCH, STRUCTURED)."
          },
          {
            "name": "CLAUDE_QUERY_MODEL",
            "description": "Override model for the query tool."
          },
          {
            "name": "CLAUDE_STRUCTURED_MODEL",
            "description": "Override model for the structured tool."
          },
          {
            "name": "CLAUDE_SEARCH_MODEL",
            "description": "Override model for the search tool."
          },
          {
            "name": "CLAUDE_FALLBACK_MODEL",
            "description": "Model to use when the primary model hits a quota error. Set to 'none' to disable fallback."
          },
          {
            "name": "CLAUDE_MAX_CONCURRENT",
            "description": "Maximum concurrent Claude CLI subprocesses (default 3)."
          },
          {
            "name": "CLAUDE_BRIDGE_USE_API_KEY",
            "description": "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."
          },
          {
            "name": "CLAUDE_MAX_BUDGET_USD",
            "description": "Maximum USD spend per call (pass-through to --max-budget-usd). Only applies when using API key auth."
          },
          {
            "name": "CLAUDE_QUERY_EFFORT",
            "description": "Reasoning effort for the query tool (low|medium|high|max)."
          },
          {
            "name": "CLAUDE_SEARCH_EFFORT",
            "description": "Reasoning effort for the search tool (low|medium|high|max)."
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.hampsterx/claude-mcp-bridge",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.hampsterx%2Fclaude-mcp-bridge/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
claude-mcp-bridge — MCP Server 安装与配置 · AgentHub