In-depth guide to using the MCP Inspector for testing and debugging Model Context Protocol serversThe MCP Inspector is an interactive developer tool for testing and debugging MCP servers. While the Debugging Guide covers the Inspector as part of the overall debugging toolkit, this document provides a detailed exploration of the Inspector’s features and capabilities.The Inspector runs directly through npx
without requiring installation:A common way to start server packages from NPM or PyPi.To inspect servers locally developed or downloaded as a repository, the most common way is:Please carefully read any attached README for the most accurate instructions.The MCP Inspector interfaceThe Inspector provides several features for interacting with your MCP server:Allows selecting the transport for connecting to the server For local servers, supports customizing the command-line arguments and environment
Lists all available resources
Shows resource metadata (MIME types, descriptions)
Allows resource content inspection
Supports subscription testing
Displays available prompt templates
Shows prompt arguments and descriptions
Enables prompt testing with custom arguments
Previews generated messages
Shows tool schemas and descriptions
Enables tool testing with custom inputs
Displays tool execution results
Presents all logs recorded from the server
Shows notifications received from the server
1.
Launch Inspector with your server
Verify basic connectivity
Check capability negotiation
3.
Verify error handling and error responses
Modified at 2025-03-12 06:54:01