Skip to main content
Version: 1.1.0

MCP Inspector

The MCP Inspector is a browser-based tool for exploring and testing MCP servers - list tools, call them, browse resources, see prompts, and inspect raw JSON-RPC traffic.

Installโ€‹

npx @modelcontextprotocol/inspector@latest

This opens a browser tab at http://localhost:6274.

Connect to a stdio serverโ€‹

In the Inspector UI:

  1. Choose STDIO transport type
  2. Set Command to the path of your built binary (e.g. ./target/debug/hello-mcp)
  3. Click Connect
./target/debug/hello-world-mcp-server-stdio

Hello World server in MCP Inspector

Connect to a Streamable HTTP serverโ€‹

Open this URL with your server's address:

http://localhost:6274/?transport=streamable-http&serverUrl=http://localhost:8080/mcp

Streamable HTTP server in MCP Inspector

Connect to an OAuth-protected serverโ€‹

When connecting to an auth-protected server, the Inspector handles the OAuth flow automatically. You'll be redirected to the provider's login page, then back to the Inspector with a valid token.

OAuth flow in MCP Inspector

What you can doโ€‹

  • Tools - list and invoke tools with JSON arguments
  • Resources - list and read resources by URI
  • Prompts - list and render prompts with arguments
  • Raw traffic - inspect the full JSON-RPC request/response stream
  • Notifications - see server-sent notifications in real time

Inspector vs programmatic clientโ€‹

MCP InspectorRust client
Use caseDevelopment, debugging, demosIntegration tests, automation, production clients
UIBrowser-basedYour code
Auth handlingAutomaticYou implement
Best forBuilding toolsUsing tools