A terminal UI (TUI) inspector for Model Context Protocol (MCP) servers. Inspect server capabilities, resources, prompts, tools, message history, and MCP server logs, and test MCP tools, all in an interactive terminal interface. Similar to MCP Inspector but works from any terminal session, including inside of sandboxes or containers.
🎥 Watch the Demo: Check out the mcp-inspect Introduction and Demo video to see how to inspect MCP servers, test tools, browse resources, and monitor server activity—all from your terminal.
npm install -g mcp-inspectOr use via npx:
npx mcp-inspect <config-file.json>mcp-inspect <config-file.json>Where config-file.json is your MCP configuration file (typically mcp.json).
The configuration file should follow the MCP configuration format:
{
"mcpServers": {
"server-name": {
"type": "stdio",
"command": "node",
"args": ["server.js"]
},
"another-server": {
"type": "sse",
"url": "http://localhost:6969/sse"
}
}
}Supported transport types:
stdio- Standard input/output communicationsse- Server-Sent EventsstreamableHttp- Streamable HTTP
- Server Management: Connect to multiple MCP servers simultaneously
- Resource Inspection: Browse and view available resources
- Prompt Templates: View and inspect prompt templates
- Tool Testing: Test MCP tools with custom inputs and view results
- Message History: Track all requests, responses, and notifications
- Logging: View server stderr output and notifications
- Interactive UI: Navigate with keyboard shortcuts
ESC- Exit applicationCtrl+C- Exit applicationTab/Shift+Tab- Cycle focus between panes↑/↓- Navigate lists and scroll contentEnter- Select item / Test tool+- Zoom to full-screen modal view (in details panes)
- Quick switch to tabs:
I- InfoR- ResourcesP- PromptsT- ToolsM- MessagesL- Logging
C- Connect to selected server (when disconnected or in error state)D- Disconnect from selected server (when connected)
Enter- Test tool (from tool list or details view)
The docs/ folder is set up for GitHub Pages so you can publish a static site and a Client ID Metadata Document (CIMD) for MCP auth.
- Enable Pages: In the repo, go to Settings → Pages. Under "Build and deployment", set Source to "Deploy from a branch", Branch to
main(or your default), and Folder to/docs. - After deployment, the site is at
https://<owner>.github.io/mcp-inspect/and the CIMD athttps://<owner>.github.io/mcp-inspect/.well-known/auth/client-metadata.json.
If your GitHub user/org differs from teamsparkai, update client_id, client_uri, and logo_uri in docs/.well-known/auth/client-metadata.json to match your Pages URL.
Internal design/todo docs are in internal/.
# Install dependencies
npm install
# Build
npm run build
# Run in development mode
npm run dev <config-file.json>MIT
Contributions welcome! Please open an issue or submit a pull request.
