/ ディレクトリ / プレイグラウンド / MCP Inspector
● 公式 modelcontextprotocol ⚡ 即起動

MCP Inspector

作者 modelcontextprotocol · modelcontextprotocol/inspector

The official debugger for MCP servers — connect to any server, call its tools live, see the raw protocol traffic.

MCP Inspector is the canonical dev tool for MCP. Point it at a server (local or remote), enumerate tools and resources, fire calls with structured inputs, and watch frames go by. First thing to reach for when your server misbehaves.

なぜ使うのか

主な機能

ライブデモ

実際の動作

準備完了

インストール

クライアントを選択

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "mcp-inspector": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/inspector"
      ]
    }
  }
}

Claude Desktop → Settings → Developer → Edit Config を開く。保存後、アプリを再起動。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "mcp-inspector": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/inspector"
      ]
    }
  }
}

Cursor は Claude Desktop と同じ mcpServers スキーマを使用。プロジェクト設定はグローバルより優先。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "mcp-inspector": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/inspector"
      ]
    }
  }
}

Cline サイドバーの MCP Servers アイコンをクリックし、"Edit Configuration" を選択。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "mcp-inspector": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/inspector"
      ]
    }
  }
}

Claude Desktop と同じ形式。Windsurf を再起動して反映。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "mcp-inspector",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/inspector"
      ]
    }
  ]
}

Continue はマップではなくサーバーオブジェクトの配列を使用。

~/.config/zed/settings.json
{
  "context_servers": {
    "mcp-inspector": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "@modelcontextprotocol/inspector"
        ]
      }
    }
  }
}

context_servers に追加。保存時に Zed がホットリロード。

claude mcp add mcp-inspector -- npx -y @modelcontextprotocol/inspector

ワンライナー。claude mcp list で確認、claude mcp remove で削除。

ユースケース

実用的な使い方: MCP Inspector

Debug your MCP server without involving an LLM

👤 Developers ⏱ ~15 min intermediate

使うタイミング: Claude says 'tool failed' and you need to see what really happened.

フロー
  1. Launch
    npx @modelcontextprotocol/inspector ./my-server.✓ コピーしました
    → UI opens
  2. Invoke
    Pick the tool; fill inputs; send.✓ コピーしました
    → Result + frames shown
  3. Diagnose
    Toggle raw frames to see protocol-level errors.✓ コピーしました
    → Root cause clear

結果: Server bug isolated without LLM noise.

組み合わせ

他のMCPと組み合わせて10倍の力を

mcp-inspector + fastmcp-prefect

Build a FastMCP server; debug it with the Inspector before shipping

Combine mcp-inspector with fastmcp-prefect: Build a FastMCP server; debug it with the Inspector before shipping✓ コピーしました

ツール

このMCPが提供する機能

ツール入力呼び出すタイミングコスト
tools.call (see docs) Invoke any tool the server advertises 1 call
resources.list (see docs) Browse resources 1 call

コストと制限

運用コスト

APIクォータ
N/A
呼び出しあたりのトークン
N/A
金額
Free OSS
ヒント
Save common invocations as bookmarks

セキュリティ

権限、シークレット、影響範囲

認証情報の保管: Local only
データ送信先: Whatever the server reaches
絶対に付与しない: Run untrusted MCP servers against your auth tokens

トラブルシューティング

よくあるエラーと対処法

Server won't connect

Check transport (stdio vs SSE); confirm the binary path

代替案

MCP Inspector 他との比較

代替案代わりに使う場面トレードオフ
mcp2cliYou prefer command-lineNo GUI for protocol inspection

その他

リソース

📖 GitHub の公式 README を読む

🐙 オープンな issue を見る

🔍 400以上のMCPサーバーとSkillsを見る