/ Annuaire / Playground / MCP Inspector
● Officiel modelcontextprotocol ⚡ Instantané

MCP Inspector

par 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.

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

prêt

Installer

Choisissez votre client

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

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

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

Cursor utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

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

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "Edit Configuration".

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

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

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

Continue utilise un tableau d'objets serveur plutôt qu'une map.

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

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

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

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : MCP Inspector

Debug your MCP server without involving an LLM

👤 Developers ⏱ ~15 min intermediate

Quand l'utiliser : Claude says 'tool failed' and you need to see what really happened.

Déroulement
  1. Launch
    npx @modelcontextprotocol/inspector ./my-server.✓ Copié
    → UI opens
  2. Invoke
    Pick the tool; fill inputs; send.✓ Copié
    → Result + frames shown
  3. Diagnose
    Toggle raw frames to see protocol-level errors.✓ Copié
    → Root cause clear

Résultat : Server bug isolated without LLM noise.

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

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✓ Copié

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
tools.call (see docs) Invoke any tool the server advertises 1 call
resources.list (see docs) Browse resources 1 call

Coût et limites

Coût d'exécution

Quota d'API
N/A
Tokens par appel
N/A
Monétaire
Free OSS
Astuce
Save common invocations as bookmarks

Sécurité

Permissions, secrets, portée

Stockage des identifiants : Local only
Sortie de données : Whatever the server reaches
Ne jamais accorder : Run untrusted MCP servers against your auth tokens

Dépannage

Erreurs courantes et correctifs

Server won't connect

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

Alternatives

MCP Inspector vs autres

AlternativeQuand l'utiliserCompromis
mcp2cliYou prefer command-lineNo GUI for protocol inspection

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills