プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Claude MCP Bridge

作者:hampsterxバージョン 0.7.2i★ –iパソコンで動く
レジストリ名io.github.hampsterx/claude-mcp-bridge

インストール

概要

作者による説明(英語の原文)

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

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 開発者ツール

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: CLAUDE_CLI_PATH, CLAUDE_DEFAULT_MODEL, CLAUDE_QUERY_MODEL, CLAUDE_STRUCTURED_MODEL, CLAUDE_SEARCH_MODEL, CLAUDE_FALLBACK_MODEL, CLAUDE_MAX_CONCURRENT, CLAUDE_BRIDGE_USE_API_KEY, CLAUDE_MAX_BUDGET_USD, CLAUDE_QUERY_TOOLS, CLAUDE_STRUCTURED_TOOLS, CLAUDE_SEARCH_TOOLS, CLAUDE_QUERY_EFFORT, CLAUDE_SEARCH_EFFORT

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "claude-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "claude-mcp-bridge"
      ],
      "env": {
        "CLAUDE_CLI_PATH": "your-value",
        "CLAUDE_DEFAULT_MODEL": "your-value",
        "CLAUDE_QUERY_MODEL": "your-value",
        "CLAUDE_STRUCTURED_MODEL": "your-value",
        "CLAUDE_SEARCH_MODEL": "your-value",
        "CLAUDE_FALLBACK_MODEL": "your-value",
        "CLAUDE_MAX_CONCURRENT": "your-value",
        "CLAUDE_BRIDGE_USE_API_KEY": "your-value",
        "CLAUDE_MAX_BUDGET_USD": "your-value",
        "CLAUDE_QUERY_TOOLS": "your-value",
        "CLAUDE_STRUCTURED_TOOLS": "your-value",
        "CLAUDE_SEARCH_TOOLS": "your-value",
        "CLAUDE_QUERY_EFFORT": "your-value",
        "CLAUDE_SEARCH_EFFORT": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add claude-bridge --env CLAUDE_CLI_PATH=your-value --env CLAUDE_DEFAULT_MODEL=your-value --env CLAUDE_QUERY_MODEL=your-value --env CLAUDE_STRUCTURED_MODEL=your-value --env CLAUDE_SEARCH_MODEL=your-value --env CLAUDE_FALLBACK_MODEL=your-value --env CLAUDE_MAX_CONCURRENT=your-value --env CLAUDE_BRIDGE_USE_API_KEY=your-value --env CLAUDE_MAX_BUDGET_USD=your-value --env CLAUDE_QUERY_TOOLS=your-value --env CLAUDE_STRUCTURED_TOOLS=your-value --env CLAUDE_SEARCH_TOOLS=your-value --env CLAUDE_QUERY_EFFORT=your-value --env CLAUDE_SEARCH_EFFORT=your-value -- npx -y claude-mcp-bridge

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "claude-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "claude-mcp-bridge"
      ],
      "env": {
        "CLAUDE_CLI_PATH": "your-value",
        "CLAUDE_DEFAULT_MODEL": "your-value",
        "CLAUDE_QUERY_MODEL": "your-value",
        "CLAUDE_STRUCTURED_MODEL": "your-value",
        "CLAUDE_SEARCH_MODEL": "your-value",
        "CLAUDE_FALLBACK_MODEL": "your-value",
        "CLAUDE_MAX_CONCURRENT": "your-value",
        "CLAUDE_BRIDGE_USE_API_KEY": "your-value",
        "CLAUDE_MAX_BUDGET_USD": "your-value",
        "CLAUDE_QUERY_TOOLS": "your-value",
        "CLAUDE_STRUCTURED_TOOLS": "your-value",
        "CLAUDE_SEARCH_TOOLS": "your-value",
        "CLAUDE_QUERY_EFFORT": "your-value",
        "CLAUDE_SEARCH_EFFORT": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "claude-bridge": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "claude-mcp-bridge"
      ],
      "env": {
        "CLAUDE_CLI_PATH": "your-value",
        "CLAUDE_DEFAULT_MODEL": "your-value",
        "CLAUDE_QUERY_MODEL": "your-value",
        "CLAUDE_STRUCTURED_MODEL": "your-value",
        "CLAUDE_SEARCH_MODEL": "your-value",
        "CLAUDE_FALLBACK_MODEL": "your-value",
        "CLAUDE_MAX_CONCURRENT": "your-value",
        "CLAUDE_BRIDGE_USE_API_KEY": "your-value",
        "CLAUDE_MAX_BUDGET_USD": "your-value",
        "CLAUDE_QUERY_TOOLS": "your-value",
        "CLAUDE_STRUCTURED_TOOLS": "your-value",
        "CLAUDE_SEARCH_TOOLS": "your-value",
        "CLAUDE_QUERY_EFFORT": "your-value",
        "CLAUDE_SEARCH_EFFORT": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • CLAUDE_CLI_PATH env
    Path to the claude CLI binary. Defaults to 'claude' on PATH.
  • CLAUDE_DEFAULT_MODEL env
    Shared default model for all tools. Overridden by per-tool CLAUDE_ _MODEL vars (QUERY, SEARCH, STRUCTURED).
  • CLAUDE_QUERY_MODEL env
    Override model for the query tool.
  • CLAUDE_STRUCTURED_MODEL env
    Override model for the structured tool.
  • CLAUDE_SEARCH_MODEL env
    Override model for the search tool.
  • CLAUDE_FALLBACK_MODEL env
    Model to use when the primary model hits a quota error. Set to 'none' to disable fallback.
  • CLAUDE_MAX_CONCURRENT env
    Maximum concurrent Claude CLI subprocesses (default 3).
  • CLAUDE_BRIDGE_USE_API_KEY env
    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 env
    Maximum USD spend per call (pass-through to --max-budget-usd). Only applies when using API key auth.
  • CLAUDE_QUERY_TOOLS env
    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 g…
  • CLAUDE_STRUCTURED_TOOLS env
    Built-in tools the structured subprocess may use. Same format and caveats as CLAUDE_QUERY_TOOLS.
  • CLAUDE_SEARCH_TOOLS env
    Built-in tools the search subprocess may use. Same format and caveats as CLAUDE_QUERY_TOOLS.
  • CLAUDE_QUERY_EFFORT env
    Reasoning effort for the query tool (low|medium|high|max).
  • CLAUDE_SEARCH_EFFORT env
    Reasoning effort for the search tool (low|medium|high|max).

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月8日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント hampsterx で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

開発者ツールのほかのサーバーとの比較i

  • このカテゴリのほかの5549件のうち0%よりスターが多い
  • このカテゴリのほかの5549件のうち58%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの5549件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Claude MCP Bridgeは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.7.2)がレジストリに届いたのは21 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:GitHub, Desktop Commander, Cloudflare MCP

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

GitHub

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

作者:github広く使われている★ 3.4万5 日前更新

パソコンでもクラウドでも

Desktop Commander

MCP server for terminal commands, file operations, and process management

作者:wonderwhy-er広く使われている↓ 71万/週★ 1万17 日前更新

パソコンで動く

Cloudflare MCP

Cloudflare MCP servers

作者:cloudflare広く使われている★ 444614 か月前更新

クラウドで動く✓ mcp.cloudflare.com

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

claude-mcp-bridge

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 (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 \ --strict-mcp-config \ --mcp-config '{"mcpSe

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く