Skip to content
BENIBIX Learn

MCP Inspector

AI🔌 MCPMCP Developer Tools

Also known as @modelcontextprotocol/inspector, MCP Inspector Tool, Inspector (MCP)

The official tool for testing an MCP server. You call each tool by hand.

Think of it like

It is like a test bench for a toy car. You run it on the bench before you put it on the road.

Example

A tool keeps failing in the chat app. You open the Inspector, call the tool by hand and see the error.

Why it matters

A chat app hides what went wrong. The Inspector shows the raw messages, so you can find the bug fast.

Definition

The MCP Inspector is the official tool for testing and fixing MCP servers. You start it with npx, and it connects to your server like a client would. It lists the server's tools, resources and prompts, and lets you call each one by hand. It also shows every message that goes back and forth. It comes as a web page, a command line tool and a terminal screen.

Example code

bash
npx @modelcontextprotocol/inspector node build/index.js
Open the Inspector in a web page. It links to a server on your computer.
Test with the Inspector after you build and before you share.

Common mistake

Testing a new server only inside a chat app. The model may skip a tool, so you never see it fail.

Key takeaways

  1. 1
    Acts as a client. Connects to your server.
  2. 2
    Call by hand. Try each tool yourself.
  3. 3
    Shows the messages. Every request and reply.