CreateWithAIHub

Library Model Context Protocol project

MCP Inspector

The MCP project's developer tool for testing and debugging MCP servers from a web UI, a scriptable CLI or a terminal UI.

MCP debugging toolFreeOpen source
Visit website ↗
Save

What it is

MCP Inspector is the reference tool from the Model Context Protocol project for connecting to an MCP server and exercising it by hand or from scripts. One npm package, @modelcontextprotocol/inspector, runs a browser UI (the default), a CLI for CI and coding agents, and a terminal UI, all sharing the same transports, config files and OAuth state. It is for developers building or reviewing MCP servers who want to see the tools, prompts, resources and raw JSON-RPC traffic before wiring a server into a client.

What it's useful for

Launching a local MCP server through the Inspector, calling each of its tools with test arguments, and checking the JSON-RPC transcript and server logs before publishing it.

Key features

  • Web UI with Tools, Prompts, Resources, Apps (MCP App UIs), Logs, Protocol (JSON-RPC transcript), Network and Console tabs
  • CLI mode (--cli) with --method calls and --format json output for CI smoke tests and coding agents
  • Terminal UI (--tui) and an experimental mcpdo connection CLI in the same package
  • Connects to stdio servers or remote servers over Streamable HTTP or legacy SSE, with an end-to-end OAuth flow
  • Handles both legacy and modern (2026-07-28) protocol versions
  • Load testing, Docker image and secrets kept in the OS keychain

How to use it

Before you start

  • Node.js 22.23.4+, 24.22.1+ or 26.12.1+
Web UI (default)
npx @modelcontextprotocol/inspector
Inspect a local stdio server
npx @modelcontextprotocol/inspector node path/to/server/index.js
CLI: list a server's tools
npx @modelcontextprotocol/inspector --cli node path/to/server/index.js --method tools/list
Inspect a remote server
npx @modelcontextprotocol/inspector --server-url https://api.example.com/mcp --transport http
Terminal UI
npx @modelcontextprotocol/inspector --tui node path/to/server/index.js

Commands are copied from the official documentation. Check the docs for the latest version before running them.

Limitations to know

  • Requires Node.js 22.23.4+, 24.22.1+ or 26.12.1+
  • Without an OS keychain (headless Linux, SSH, containers) secrets are saved to ~/.mcp-inspector/secrets.json unencrypted unless you supply a key
  • The web backend can spawn processes, so it binds to 127.0.0.1 and guards its API with a per-launch token; exposing it on a network needs explicit opt-in
  • v2 changed CLI flags and config files; the v1 line (npm tag v1-latest) only gets security fixes

MCP servers for this

AWS Labs' collection of open-source MCP servers for AWS docs, the AWS API, infrastructure as code, databases, costs and more.

FreeOpen source

MCP reference server that gives an AI client controlled read/write access to chosen local directories.

FreeOpen source

Open-source MCP server that gives coding agents simplified Figma layout and styling data to implement designs.

Free plan + paidOpen source

Skills for this

Vercel's collection of Agent Skills for React/Next.js performance, UI review, writing style and Vercel deploys.

FreeOpen source

Anthropic skill that has Claude test local web apps by writing Python Playwright scripts, with screenshots and browser logs.

FreeOpen source

Collection of 93 plugins with 199 subagents, 185 skills and 103 commands, written once and adapted to seven coding tools.

FreeOpen source

Related resources

Coding agent that runs each thread in a cloud sandbox, with a CLI, web, desktop and mobile apps.

Free plan + paid

Arize's source-available, self-hosted AI observability tool for OpenTelemetry tracing, evals, datasets and prompts.

Free

Anthropic's agentic coding tool that works in your terminal, IDE, desktop app and on the web.

Paid

OpenAI's open-source coding agent that runs locally in your terminal, with IDE, desktop and cloud variants.

Free plan + paidOpen source

Type to search. Use ↑ ↓ and Enter.