MCP Servers · Official

MCP Inspector

MCP Inspector is the official Model Context Protocol debugging tool. Its Web, CLI, and TUI clients connect to MCP servers and inspect tools, resources, prompts, transports, authentication, and MCP Apps.

10.8k StarsMITTypeScriptUpdated today
01

Project overview

MCP Inspector is the official tool for checking whether an MCP server works correctly. Its web, CLI, and TUI clients show tools, resources, prompts, connection state, protocol data, OAuth flows, and MCP Apps. For users setting up an MCP server, it answers practical questions such as whether the server connected, which tools were listed, and what a call returned.

02

Core capabilities

01

Visually inspect MCP servers

The web UI connects to servers and displays tools, resources, prompts, and protocol state.

02

List and invoke tools

CLI supports automation and CI, while TUI provides terminal interaction.

03

Inspect resources and prompts

Tests local STDIO plus Streamable HTTP and SSE connections.

04

Debug transports, OAuth, and MCP Apps

Includes test paths for MCP Apps, OAuth, pagination, structured output, tasks, and logs.

MCP Inspector architecture diagram connecting Web, CLI, TUI, Inspector Core, and MCP Server
The official diagram shows three clients sharing connection, state, and protocol logic before reaching MCP servers through the SDK.View repository image
03

Setup and connection

After checking Node.js, start the default web UI on loopback, connect one trusted MCP server, and complete a minimal tools-list check. Do not disable authentication or expose the listener for convenience.

AI AGENT INSTALL

Let an AI Agent install it

Send this prompt to Codex, Claude Code, or another AI agent that can work with your local environment.

Help me start MCP Inspector from https://github.com/modelcontextprotocol/inspector. Read README.md, docs/mcp-server-configuration.md, LICENSE, and the latest release notes, then confirm Node.js >=22.19.0. Run `npx @modelcontextprotocol/inspector` for the default web UI, keep it on loopback, and connect only the trusted MCP server I specify. Do not disable the API token, set `DANGEROUSLY_OMIT_AUTH`, or bind all interfaces. Ask before downloading extra software, executing unknown server commands, reading credentials or OAuth tokens, requesting extra permissions, exposing the network listener, or replacing files. List tools first, then invoke one side-effect-free read-only tool.
01Before you start
  • Node.js 22.19.0 or newer
  • One trusted MCP server configuration to verify
  • Browser access to the local loopback address
02Copy the install command or configuration
npx @modelcontextprotocol/inspector
03Complete the setup steps
  1. 1
    Check the environment and start

    Confirm the Node.js version and run `npx @modelcontextprotocol/inspector`.

  2. 2
    Connect a trusted server

    Choose the correct transport and enter one reviewed MCP server command or URL.

  3. 3
    List and test tools

    List tools first, then invoke one side-effect-free read-only tool and inspect the response.

How to verify the setup

Run `npx @modelcontextprotocol/inspector`, connect one trusted MCP server, and confirm that tools can be listed. Invoke one side-effect-free read-only tool and verify the expected response.

Before using it
  • Keep loopback binding and default authentication
  • Connect only trusted server configurations
MCP Inspector README showing web, CLI, and TUI startup commands
One npm package provides the default web UI, a scriptable CLI, and an interactive terminal TUI.View repository image
04

Use cases

SCENARIO 01

Installation acceptance

Confirm a new MCP server connects and lists tools.

SCENARIO 02

Protocol debugging

Inspect tools, resources, prompts, logs, and structured output.

SCENARIO 03

MCP Apps and OAuth review

Verify UI resources, authorization flows, and transports.

05

Assessment

Official ownership, three clients, and broad protocol coverage make MCP Inspector a useful acceptance and debugging tool. Its main risks come from a web backend that can spawn processes, store state, and handle credentials, so loopback binding, authentication, and trusted configurations are essential. This assessment is based on the README, architecture diagram, configuration docs, release, and license without launching it.

Why it may be useful

  • Official Model Context Protocol tool
  • Web, CLI, and TUI cover different workflows
  • README gives concrete network and authentication warnings

What to know first

  • Requires a recent Node.js version
  • Not suitable for unprotected network exposure
  • No live server was launched or connected
06

README

MCP Inspector


Overview

MCP Inspector is the official Model Context Protocol debugging tool. Its Web, CLI, and TUI clients connect to MCP servers and inspect tools, resources, prompts, transports, authentication, and MCP Apps. Visual testing tool for MCP servers

Getting started

  • After checking Node.js, start the default web UI on loopback, connect one trusted MCP server, and complete a minimal tools-list check. Do not disable authentication or expose the listener for convenience.
  • Inspector 2.x ships Web, CLI, and TUI through one `@modelcontextprotocol/inspector` package.
  • Common commands are `npx @modelcontextprotocol/inspector`, `--cli`, and `--tui`.
  • Run `npx @modelcontextprotocol/inspector`, connect one trusted MCP server, and confirm that tools can be listed. Invoke one side-effect-free read-only tool and verify the expected response.

Configuration

npx @modelcontextprotocol/inspector
Read the complete README on GitHub