The MCP Inspector is an official interactive debugging tool that connects to any MCP server and lets you explore its capabilities, call tools, read resources, and test prompts — all through a web UI.
# For a local stdio server: npx @modelcontextprotocol/inspector node dist/index.js # With environment variables: npx @modelcontextprotocol/inspector \ -e NOTES_DIR=./notes \ -e API_KEY=sk-... \ node dist/index.js # For a remote SSE server: npx @modelcontextprotocol/inspector \ --transport sse \ --url https://mcp.example.com/sse
| Tab | What It Displays | What You Can Do |
|---|---|---|
| Tools | All registered tools with schemas | Call any tool with custom arguments, see responses |
| Resources | All resources and templates | Read resources, browse templates |
| Prompts | All registered prompts | Execute prompts with arguments, see generated messages |
| Notifications | Server-pushed events | Monitor real-time notifications |
| Logs | Raw JSON-RPC traffic | Inspect every protocol message |
inspect script to your package.json: "inspect": "npx @modelcontextprotocol/inspector tsx src/index.ts". This makes debugging a one-command operation during development.