MCP Inspector
The official debugging UI for MCP servers. Not a server you add to a client.
- Not yet tested by us
- ★ 11.2K GitHub stars
- 295.1K downloads a week
- Last commit 25 Oct 2026
What is MCP Inspector?
MCP Inspector is the official testing tool from the Model Context Protocol project, used to connect to an MCP server and call its tools, resources and prompts by hand.
- Tools
- Test client
- Runs on
- Your computer
- Licence
- MIT / Apache-2.0
- GitHub stars
- 11.2K
Good for
- Checking a server starts and lists the tools you expect
- Debugging environment variables and arguments
- Building your own server
You'll need
- Node.js 22.19 or newer
Not yet tested by usWritten from the project's own documentation. We have not run this config ourselves yet.
MCP Shelf take
We have not run MCP Inspector on our test machine yet, so this take only covers what we checked by hand. It sits 6th of 21 in its category on our shelf by GitHub stars (11.2K, with 295.1K downloads a week).
What can MCP Inspector read and change?
It can read
- Whatever the server you are testing exposes: its tools, resources and prompts
It can change
- Only what the tools you call by hand change
- Saves OAuth tokens and env values in your system keychain where one exists
Safer setup: Test servers against throwaway data, since calling a tool here does exactly what it would do for an agent.
MCP Inspector in more detail
Inspector is maintained by the Model Context Protocol project. It starts a small web app that connects to one server, lists its tools, prompts and resources, and lets you call each tool with your own arguments while showing the JSON going back and forth.
Use it before blaming your client: if a server misbehaves in Inspector, the problem is the server or its config.
- Made by
- The Model Context Protocol project (modelcontextprotocol)
- Latest version
- 2.12.0 (21 Oct 2026)
- npm package
- @modelcontextprotocol/inspector
- Downloads
- 295.1K a week
- Last commit
- 25 Oct 2026
- Setup checked
- 27 Oct 2026
- Page updated
- 27 Oct 2026
What's in the pod
What tools does MCP Inspector have?
MCP Inspector groups its tools like this, and which ones load depends on how you set it up.
Web- A browser app for connecting to a server, listing its tools, resources and prompts, and calling them by hand.
--cli- A scriptable command line client: connect, list, call and check results, ideal for CI and quick agent feedback.
--tui- An interactive view in the terminal, for when you are on SSH or prefer the keyboard.
mcpdo- Experimental: connect once, then run many commands against that named connection.
Grouped and described by us. The README on GitHub lists the inputs each tool takes.
How do I install MCP Inspector?
Install steps from the MCP Inspector README
The project's own instructions, copied from its README on GitHub on 27 Oct 2026 under its MIT / Apache-2.0 licence. They are the source of truth; the ready-made configs further down are built from them. The rest of the README is in the README tab.
MCP Inspector
A developer tool for inspecting Model Context Protocol (MCP) servers. It ships as a single package, @modelcontextprotocol/inspector, that provides four ways to inspect a server:
- Web — a Vite + React + Mantine single-page app with a Node backend.
- CLI — a scriptable command-line client for automation, CI, and fast agent feedback loops.
- TUI — an interactive terminal UI built with Ink.
- mcpdo (experimental) — a connection CLI: connect once, then run many commands against the named connection through an implicit local daemon. See
clients/mcpdo.
The first three run through one global mcp-inspector binary; mcpdo is a second binary in the same package:
npx @modelcontextprotocol/inspector # web UI (default)
npx @modelcontextprotocol/inspector --cli # CLI
npx @modelcontextprotocol/inspector --tui # TUI
npx -p @modelcontextprotocol/inspector mcpdo --help # mcpdo
Warning: The Inspector manages secrets — OAuth tokens, OAuth client secrets, and stdio
env:values — and stores them in the OS keychain, if available, by default. On a machine with no keychain — Linux without libsecret or a Secret Service, headless and SSH sessions, Termux, and containers with a mounted volume — they are saved to~/.mcp-inspector/secrets.jsoninstead, unencrypted unless you supply a key. See Where secrets are stored for how to get a keychain back, encrypt the file, or keep secrets in memory only.
Upgrading from v1? Read the v1 → v2 migration guide — CLI flags, the new
--configvs.--catalogsplit, the Node engine bump, and what no longer ships.
Repo status. This is the v2 line of the Inspector. Active development happens on
v2/main(the develop branch — all v2 PRs target it), which is merged intomainat milestone releases;mainis the default branch and holds the latest released v2, published to the npmlatesttag. The legacy v1 line lives onv1/main— security fixes only, published straight from that branch to the npmv1-latesttag (npx @modelcontextprotocol/inspector@v1-latest). SeeAGENTS.mdfor branch/board conventions.
What you need first
- Node.js 22.19 or newer
Steps
- Run it with the server command after it: npx @modelcontextprotocol/inspector npx -y @playwright/mcp@latest
- Open the local address it prints in your browser.
- Click Connect, then List Tools, and try a tool with your own input.
Checked against the project's own install docs on 27 Oct 2026: modelcontextprotocol/inspector README, github.com/modelcontextprotocol/inspector/blob/main/docs/v1-to-v2-migration.md.
Did this work for you?
Projects change their install steps often. If MCP Inspector did not install, or something here no longer matches the project, tell us and we will check it against the README and fix the page.
New to this? See the setup guides for Claude Code, Cursor, Claude Desktop, VS Code, Codex and ChatGPT. If it will not start, test it in MCP Inspector and look up the error in Fixing MCP server errors.
MCP Inspector not working? Common fixes
- It will not install or start
- Version 2 needs Node 22.19 or newer. Check node --version.
- Secrets are not saved between runs on Linux or in a container
- There is no keychain there. Install libsecret or follow the project's guidance for machines without one.
- Old v1 flags stop working
- Version 2 changed several CLI flags and split --config from --catalog. Read the v1 to v2 migration guide.
How do I configure MCP Inspector?
Names are exactly as the project spells them. Required ones are marked.
| Setting | What it does |
|---|---|
npx @modelcontextprotocol/inspectorConfig · required | Starts the web interface. Add your server's command after it to connect straight away.npx @modelcontextprotocol/inspector node build/index.js |
--cliCommand line flag | Uses the command line client instead of the browser. |
--tuiCommand line flag | Uses the terminal interface. |
--configCommand line flag | Loads server definitions from a config file, in the same shape most MCP clients use. |
--format jsonCommand line flag | Prints CLI results as JSON so you can test a server with jq in a script. |
MCP Inspector FAQ
What is MCP Inspector?
It is the official tool from the Model Context Protocol project for testing MCP servers by hand. You point it at a server, then list and call its tools, resources and prompts to see exactly what an agent would get back. It is a client, not a server you add to Claude or Cursor.
How do I run MCP Inspector?
Run npx @modelcontextprotocol/inspector for the web interface, and add your server's own start command after it to connect straight away, for example npx @modelcontextprotocol/inspector node build/index.js. --cli gives a scriptable command line client and --tui a terminal interface.
How do I test a remote MCP server with MCP Inspector?
Start the web interface, choose the HTTP transport and paste the server URL. If the server uses OAuth, the Inspector walks through the sign-in and keeps the tokens in your system keychain, so you can check a hosted server's login as well as its tools.
Can MCP Inspector run in CI?
Yes. The --cli mode connects, lists and calls tools without a browser, and --format json lets you check results with jq, so a pipeline can smoke-test a server on every change and fail on a bad exit code.
Is MCP Inspector free?
Yes. It is open source and runs locally with npx; there is no account. The MCP project is moving its licence from MIT to Apache 2.0, with new contributions under Apache 2.0.
Why will MCP Inspector not start?
Version 2 needs Node.js 22.19 or newer, so check node --version first. If it starts but forgets secrets between runs on Linux, in a container or over SSH, there is no keychain to store them in: install libsecret or follow the project's guidance for machines without one.
What changed in MCP Inspector v2?
Version 2 added the terminal interface and the experimental mcpdo connection tool, raised the Node.js requirement, renamed several CLI flags and split --config, which loads server definitions, from --catalog. The project's v1 to v2 migration guide lists each change.
Is it safe to call tools from MCP Inspector?
The Inspector does nothing on its own, but a tool you call runs for real, exactly as it would for an agent: a delete tool deletes. Test servers against throwaway data or a sandbox account, especially database and cloud servers.
MCP Inspector README
This is the project's own README from modelcontextprotocol/inspector, written by The Model Context Protocol project (modelcontextprotocol), and shared under its MIT / Apache-2.0 licence. We copied it on 27 Oct 2026, so the version on GitHub may be newer.
MCP Inspector
A developer tool for inspecting Model Context Protocol (MCP) servers. It ships as a single package, @modelcontextprotocol/inspector, that provides four ways to inspect a server:
- Web — a Vite + React + Mantine single-page app with a Node backend.
- CLI — a scriptable command-line client for automation, CI, and fast agent feedback loops.
- TUI — an interactive terminal UI built with Ink.
- mcpdo (experimental) — a connection CLI: connect once, then run many commands against the named connection through an implicit local daemon. See
clients/mcpdo.
The first three run through one global mcp-inspector binary; mcpdo is a second binary in the same package:
npx @modelcontextprotocol/inspector # web UI (default)
npx @modelcontextprotocol/inspector --cli # CLI
npx @modelcontextprotocol/inspector --tui # TUI
npx -p @modelcontextprotocol/inspector mcpdo --help # mcpdo
Warning: The Inspector manages secrets — OAuth tokens, OAuth client secrets, and stdio
env:values — and stores them in the OS keychain, if available, by default. On a machine with no keychain — Linux without libsecret or a Secret Service, headless and SSH sessions, Termux, and containers with a mounted volume — they are saved to~/.mcp-inspector/secrets.jsoninstead, unencrypted unless you supply a key. See Where secrets are stored for how to get a keychain back, encrypt the file, or keep secrets in memory only.
Upgrading from v1? Read the v1 → v2 migration guide — CLI flags, the new
--configvs.--catalogsplit, the Node engine bump, and what no longer ships.
Repo status. This is the v2 line of the Inspector. Active development happens on
v2/main(the develop branch — all v2 PRs target it), which is merged intomainat milestone releases;mainis the default branch and holds the latest released v2, published to the npmlatesttag. The legacy v1 line lives onv1/main— security fixes only, published straight from that branch to the npmv1-latesttag (npx @modelcontextprotocol/inspector@v1-latest). SeeAGENTS.mdfor branch/board conventions.
Quick start (development)
Requires Node >=22.19.0.
npm install # at the repo root; postinstall cascades into every client
npm run build # web → cli → tui → launcher
For day-to-day web iteration, run Vite directly — fast HMR, no launcher build needed:
cd clients/web && npm run dev
The launcher-driven scripts run the built launcher, so build first:
npm run web # prod web launcher against clients/web/dist
npm run web:dev # web launcher in --dev mode (Vite)
v2 is not an npm workspace — each client under clients/* keeps its own package.json and node_modules, and shared code lives in core/, consumed via a @inspector/core build-time alias. Every runtime dependency core/ imports is declared once, in the repo-root package.json, and each client declares only what that client alone consumes — its UI stack, its bundler-inlined packages, its dev tooling — which leaves clients/cli and clients/launcher with no runtime dependencies of their own. What that means for adding a dependency (root vs. client, dependencies vs. devDependencies, and the bundler external lists) is in the local-dev skill.
Project layout
inspector/
├── clients/
│ ├── web/ Web client (Vite + React + Mantine). src/ = browser app; server/ = Node backend
│ ├── cli/ CLI client (tsup bundle, @inspector/core alias)
│ ├── mcpdo/ Experimental connection CLI (`mcpdo` bin) — bundled into the
│ │ published package; see clients/mcpdo/README.md
│ ├── tui/ TUI client (Ink + React, tsup bundle)
│ └── launcher/ Shared launcher — provides the `mcp-inspector` bin, dispatches to web/cli/tui
├── core/ Shared code consumed via the `@inspector/core` alias (no package.json)
├── test-servers/ Composable MCP test servers + fixtures used by integration and smoke tests
├── scripts/ Root build/verify tooling (install cascade, smokes, the verify:* guards),
│ repo automation run from CI (the dependency, Dependabot-alert and SDK sweeps),
│ maintainer-workflow helpers (the pr:*, board:*, advisory:*,
│ release:notes, release:tag and action:resolve-pin aliases)
│ and the Docker image's HEALTHCHECK probe
├── docs/ Task-oriented guides — see below
├── specification/ Design/build specifications
├── skills/ End-user agent skills (e.g. skills/mcpdo teaches an agent to
│ drive the `mcpdo` CLI) — distinct from .claude/skills/,
│ which holds this repo's own procedures
├── .claude/skills/ Agent skills: the repo's procedures, invokable by name
├── AGENTS.md Contribution rules for agents AND humans
└── README.md You are here
Each client has its own README with client-specific detail: web · cli · mcpdo · tui · launcher.
Documentation
| Guide | Covers |
|---|---|
| Architecture | The @inspector/core shared package, and the web client's "dumb components" + Storybook approach |
| Testing and the quality gate | What each validate / coverage / smoke / verify:* script covers, the GitHub-CI-vs-local-gate split, and the supported browsers |
| Writing a skill | How to write a skill description that actually fires, and eval cases that measure it — the case shapes that work, and the tuning loop |
| Test servers | The composable test servers and the showcase config for every feature — what to run, what to click, and what the broken build did |
| Publishing | What ships in the tarball, the packaging invariants, and pack:verify |
| Serving the web UI over HTTPS | INSPECTOR_TLS_KEY_PATH / INSPECTOR_TLS_CERT_PATH, a trusted local mkcert setup, custom hostnames and ALLOWED_ORIGINS, and NODE_EXTRA_CA_CERTS for outbound private-CA servers |
| Docker | Running the container image — ports, volumes, and making secrets durable in a container |
| Where secrets are stored | How the secret store is chosen on every runtime — OS keychain, secrets.json or memory — plus file encryption, locking, and moving back to a keychain |
| Migrating from v1 to v2 | CLI flag mapping, --config vs. --catalog, the Node engine bump, env-var renames |
| Environment variables | Every variable that changes runtime behavior — auth, ports, storage, the secret store, logging, proxies — plus the Node TLS variables for a self-signed server |
| MCP server configuration | Which server(s) the Inspector connects to, and the config file format |
| Reviewing an MCP App | The CLI-first → one-shot-web recipe for automated App-tool review |
| Smoke-testing an MCP server | The connect → list → call → assert workflow for a shell or CI job: --format json + jq, the exit-code map, and keeping OAuth non-interactive |
| Retroactive DCO signoffs | The ten commits that merged without a Signed-off-by: while no DCO check ran, and each author's signed-off certification of them |
| Launcher and config consolidation | Why the launcher runs a client in-process rather than spawning it |
| Roadmap, Aug 2026 → Feb 2027 | The six-month plan: spec-following work aligned to the published MCP roadmap, official extension support, and the experience work we choose |
| MCP Inspector: Our AI Software Factory | How contributions actually happen since v2.0.0 — issue-driven work end to end, the rules/skills split, the sweeps that replaced Dependabot, the quality gate, and where it's headed |
Testing and the quality gate
Each client self-validates from its own folder; the root scripts chain them. There is no aggregate root test script.
npm run validate # fast inner loop: format:check + lint + typecheck + build + unit tests
npm run coverage # the per-file ≥90% gate (lines/statements/functions/branches)
npm run local:gate # MANDATORY before pushing — every GitHub CI check, plus one local-only one
npm run local:gate chains every check below, plus the smokes and the Storybook tests. Testing and the quality gate owns the stage list and says what each one covers and why one is local-only; AGENTS.md holds the testing rules themselves.
Contributing — AGENTS.md, CLAUDE.md, and the skills
AGENTS.md is the contract for changing this codebase, and it applies to humans and AI agents alike. It is not agent-only boilerplate — it holds the project's real rules: the version/label conventions, the TypeScript and Mantine/React standards, the testing and coverage requirements, and the mandatory pre-push gate. Read it before making changes, and keep it up to date when you change structure, tooling, or rules.
The repo's procedures — multi-step recipes with commands and live IDs — live in .claude/skills/ instead, one directory per procedure, so they are loaded only when the task calls for them. They are ordinary committed Markdown: an agent that doesn't understand skills can read them, and AGENTS.md carries an index of what exists. Claude Code users invoke one by name (/release, /issue-triage, …).
CLAUDE.md is the entry point Claude Code loads automatically; it includes AGENTS.md, so agents and humans work from the same source of truth. If you use a different agent that reads AGENTS.md, you get the same rules.
A key rule worth surfacing here: all work is issue-driven. Before starting, find or create a tracking issue on the v2 project board; open PRs against v2/main with Closes #<issue>. External contributions are accepted as issues, not pull requests — see CONTRIBUTING.md.
License
See LICENSE. The MCP project is transitioning from the MIT License to Apache-2.0: new code contributions are licensed under Apache-2.0, documentation (excluding specifications) under CC-BY-4.0, and contributions whose authors originally licensed them under MIT and have not granted relicensing consent remain under MIT. The file carries the full Apache-2.0 and MIT texts and links the CC-BY-4.0 legal code.
Two peas, one chat
Chat with AI about MCP Inspector
Opens a chat primed with MCP Inspector’s README and setup docs from this page.
Peas in a pod
What are the alternatives to MCP Inspector?
How MCP Inspector lines up against its neighbours on the shelf. See every developer tools server.
MCP InspectorThis pea
The official debugging UI for MCP servers. Not a server you add to a client.
- Tools
- Test client
- Runs on
- Your computer
- Licence
- MIT / Apache-2.0
- Stars
- 11.2K

Build, run and test iOS and macOS apps, and drive simulators, from an agent.
- Tools
- 24
- Runs on
- Your computer
- Licence
- MIT
- Stars
- 6.5K

Screenshots of any Mac app or screen, with optional questions about what is on it.
- Tools
- 4 groups
- Runs on
- Your computer
- Licence
- MIT
- Stars
- 5.4K

Pods, logs, events and resources from your current kubeconfig context.
- Tools
- 14
- Runs on
- Your computer
- Licence
- Apache-2.0
- Stars
- 2.2K

Lets an assistant read and annotate the binary you have open in IDA Pro.
- Tools
- 48
- Runs on
- Your computer
- Licence
- MIT
- Stars
- 13.2K

A hosted server that reads any public GitHub repo's docs and code on request.
- Tools
- 5
- Runs on
- Hosted
- Licence
- Apache-2.0
- Stars
- 8.5K
Something wrong on this page? Tell us.
For bots & AI agents
Machine-readable versions of MCP Inspector and MCP Shelf. Fetch these instead of parsing this page.
This listing (.md)llms.txtllms-full.txtai.txtFull catalog (.md)API specMCP serverMCP manifestDeveloper docs