Testing with MCP inspector

Before connecting a full client, let's test our server with the MCP Inspector, an official debugging tool that connects to any MCP server and lets you explore its capabilities interactively.

Terminal
bash
# Launch MCP Inspector pointing at your server
npx @modelcontextprotocol/inspector uv run python 06-build-mcp-server.py

The Inspector launches your server as a subprocess and provides a web UI to explore tools.

The Inspector shows you everything: which tools the server exposes, their auto-generated schemas, and lets you call them with test arguments. You can see exactly what MCP clients will see when they connect.

It's a development and debugging tool. In production, real MCP clients (Claude Desktop, your custom app) connect to your server. But the Inspector is invaluable for verifying your server works correctly before wiring up a full client.

Validation checklist: MCP inspector checklist

Loading practice…

Quiz: Quiz

Loading practice…