# MCP Inspector

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

**Field:** Artificial Intelligence  
**Category:** MCP  
**Also known as:** @modelcontextprotocol/inspector, MCP Inspector Tool, Inspector (MCP)

## 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.

## 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

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

## 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.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [MCP Server](https://learn.benibix.com/term/ai/mcp-server)
- [MCP Client](https://learn.benibix.com/term/ai/mcp-client)
- [MCP Tool](https://learn.benibix.com/term/ai/mcp-tool)
- [MCP SDK](https://learn.benibix.com/term/ai/mcp-sdk)
- [Debugger](https://learn.benibix.com/term/development/debugger)

![A row of five steps for an MCP server. Write it with an SDK. Test it in the MCP Inspector. Pack it into one .mcpb bundle file. List it in the MCP Registry. A host app finds it and runs it as a local server on the user's computer.](https://learn.benibix.com/diagrams/ai8-mcp-dev-tools.svg)

---

Source: https://learn.benibix.com/term/ai/mcp-inspector
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
