The MCP Inspector is the reference developer tool for testing and debugging MCP servers, shipped as a single package, @modelcontextprotocol/inspector, with a web client, a command-line client and a terminal UI. It needs Node.js 22.23.4 or later and runs directly through npx with no installation. Test a server in the Inspector before you connect it to a real client, so a broken server or a dangerous tool shows up in a safe place first.
What you need
- Node.js 22.23.4 or later installed
- The command that launches the server, or its remote URL
- A note of which tools the server should offer
Step 1: Start the Inspector against the server
Run npx @modelcontextprotocol/inspector for the web client, passing the server launch command as arguments, or point it at a remote server with –server-url. The command prints a URL carrying a per-launch API token.
Step 2: List what the server offers
In the Inspector, open the tools, resources and prompts lists and compare them with what the server documentation promises. A server that offers nothing it should, or offers tools you did not expect, needs a closer look.
Step 3: Call one read-only tool
Call a read-only tool with safe arguments and read the JSON-RPC exchange in the monitoring sidebar. Confirm the reply matches what the server should return before the server is connected to a real client.
Worked example: synthetic Inspector test of a local server
The table below is a synthetic example. It shows the expected result of testing a server in the Inspector; no server was tested.
| Check | Observed | Result |
|---|---|---|
| Inspector starts | Web client opens with token URL | Pass |
| tools/list | 3 tools listed | Matches docs |
| Read-only call | Returns expected data | Pass |
| Unexpected tool | None found | Pass |
Expected result (UNTESTED). the Inspector lists 3 tools matching the docs, a read-only call returns the expected data, and no unexpected tool appears. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Always read a server own README first, since every server needs different commands and arguments.
- The Inspector also ships a CLI client for scripts and CI, and a TUI client for terminals without a browser.
- All three Inspector clients share the same core, so a connection behaves identically across them.
- Testing in the Inspector does not replace the permission review: set approval rules before a real client uses the server.
