Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

MCP Inspector

$ mcp-inspector Official Med Risk
Anthropic / Model Context Protocol · Agent Bridges & Meta · MIT / Apache-2.0 · macos / linux / windows

The official Model Context Protocol Inspector ships both a web debugger and a scriptable --cli mode. Agents and CI pipelines can invoke npx @modelcontextprotocol/inspector --cli with --method tools/list or tools/call over stdio, http, or sse and get JSON back.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g @modelcontextprotocol/inspector
CLI vs MCP Decision CLI Preferred vs MCP

mcp-inspector --cli lets coding agents smoke-test and debug any MCP server directly from the terminal without registering it in their own host config.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

--cli mode outputs clean JSON for tools/list, tools/call, and resources/read, though omitting --cli opens a web UI.

  • --cli mode with --method, --tool-name, --tool-arg, and --format json
Trust & Safety 20 / 25

Supports read-only discovery (tools/list), though tools/call executes whatever side effects the target MCP server exposes.

  • Separates tools/list inspection from tools/call execution
Setup & Portability 13 / 15

Cross-platform Node.js tool executable immediately via npx @modelcontextprotocol/inspector.

  • Published on npm as @modelcontextprotocol/inspector
Utility & Efficiency 13 / 15

Canonical reference harness for testing MCP stdio/SSE/Streamable HTTP servers during development.

  • Official MCP protocol compliance and debugging harness
Maintenance & Lineage 9 / 10

Official modelcontextprotocol/inspector repository maintained by the MCP organization.

  • Official modelcontextprotocol/inspector repo
Docs & Verifiability 7 / 10

Documented at modelcontextprotocol.io/docs/tools/inspector including CLI mode examples.

  • Official docs at modelcontextprotocol.io/docs/tools/inspector

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

Reads MCP server JSON config via --config <path> or custom --header / env vars passed to target servers.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

100% free and MIT/Apache-2.0 open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# MCP Inspector Agent Rules
- ALWAYS pass `--cli` so `mcp-inspector` does not launch a blocking local web UI server.
- Test `tools/list` and `resources/list` before invoking `tools/call` on unfamiliar MCP servers.
- Pass secrets via `--config` or environment variables rather than inline shell flags.

Agent-Ready Command Recipes

Safe Read-Only Queries

List tools exposed by a stdio MCP server
npx @modelcontextprotocol/inspector --cli node dist/index.js --method tools/list

Connects to a local MCP server in headless CLI mode and outputs its JSON tool catalog.

Inspect a remote HTTP MCP server's resources
npx @modelcontextprotocol/inspector --cli --transport http --server-url https://example.com/mcp --method resources/list

Queries available resources on an HTTP MCP server without launching the browser UI.

Controlled Writes & Previews

Invoke a single MCP tool for verification
npx @modelcontextprotocol/inspector --cli node dist/index.js --method tools/call --tool-name get_status --tool-arg id=123

Executes one MCP tool call with explicit arguments and prints the JSON response.

Strengths for Agents

  • + --cli mode makes automated MCP server smoke testing in CI/agent loops effortless.
  • + Supports stdio, sse, and Streamable http transports natively.
  • + Canonical reference implementation for MCP protocol debugging.

Caveats & Pitfalls

  • ! Forgetting --cli starts a persistent Express/Vite web UI server that blocks the terminal.
  • ! npx cold download can be slower than a pre-installed global CLI.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI