MCP Inspector: See What Your AI Agent Sees

When an agent calls the wrong tool or comes back empty, is the problem the server or the model? MCP Inspector takes the model out of the loop. A tour of the official MCP debugger, what changed in version 2, and how I use it on the four MCP servers behind VoxEstate, my AI call center.

In my article on the Model Context Protocol, I described MCP as the USB-C port for AI applications: one standard way for an agent to reach tools, data and workflows. This article is about the tool you reach for when that port does not behave: MCP Inspector.

If you build MCP servers, you will hit this moment. Your agent says "I couldn't find anything", or calls the wrong tool, or calls the right tool with the wrong arguments, and you do not know where the problem is. Is it the server? The tool description? The model? The network? Debugging that through a chat window is like debugging a REST API by asking a chatbot to call it for you.

Inspector takes the model out of the loop so you can see the server for what it is.

What MCP Inspector Is

MCP Inspector is the official, open-source developer tool for testing and debugging MCP servers. In MCP terms it is a client, the same kind of component that lives inside Claude Desktop, Claude Code or your own agent, but with no AI model attached. Where a model would decide which tool to call, you decide.

You connect it to a server and it shows you everything the server offers: its tools with their input schemas, its resources and resource templates, its prompts. You can call any tool with arguments you choose, read any resource, render any prompt, and watch every message that goes over the wire.

The mental model

Inspector is Postman plus the browser's developer tools, for MCP. Postman lets you call an API endpoint without building a front end. Inspector lets you call an MCP tool without building an agent. And its Protocol and Network tabs are the devtools: the raw JSON-RPC messages and HTTP exchanges.

Remember the flow from the MCP article: the user talks to the host, the host's model picks a tool, the host's MCP client calls the server, and the answer travels back the same way. Inspector replaces the host and the model with you:

Two clients, one server. In production the model decides which tool to call; in Inspector, you do. Whatever differs between the two paths is where your bug lives.

Why It Matters

When an agent misbehaves, there are really only two places the problem can be.

The server. The tool returns an error, a wrong result, a schema the model cannot fill, or refuses a request it should allow.

The model. It picked the wrong tool, misread a description, or invented arguments.

Inspector tests the server with the model removed. That one fact makes it the first stop for almost every MCP bug:

  • If the tool misbehaves in Inspector too, fix the server.
  • If the tool works in Inspector but not in your agent, the server is fine. Look at the prompt, the tool descriptions, or the agent code.
The split Inspector makes possible: test the server with the model removed, and the result tells you which half to fix.

Why this matters

Without this split, you end up rewriting prompts to work around a server bug, or rewriting a server to work around a model's bad choice. Both waste days.

What Changed in 2026

If you used Inspector in 2025, it looks different now. Version 2 became the default release on 28 July 2026, the same day MCP's 2026-07-28 protocol revision was published. It is a ground-up rewrite:

  • One package, three clients. @modelcontextprotocol/inspector ships a web client (the default), a CLI for scripts and CI, and a TUI for the terminal, all on one shared core. An experimental fourth tool, mcpdo, keeps one connection open across many commands.
  • A saved server list. Servers live in a catalog file (~/.mcp-inspector/mcp.json) instead of being retyped every time, and you can import them from your Claude Desktop, Cursor, Cline or VS Code config, or from a server's MCP Registry entry.
  • Protocol eras. The 2026-07-28 revision changed MCP substantially (more on that below), so every server has a setting: legacy (the default), modern, or auto.
  • Secrets in the OS keychain. OAuth tokens and environment secrets go to Windows Credential Manager, the macOS Keychain or the Linux Secret Service, not into the config file. On a machine without a keychain they fall back to a file, unencrypted unless you supply a key.
  • No more proxy port. Version 1 ran a UI on port 6274 and a separate proxy on 6277. Version 2 serves everything from 6274, with 6275 reserved as a sandbox for MCP Apps.

Running it takes one command and Node.js 22.19 or newer:

Start the web clientbash
npx -y @modelcontextprotocol/inspector

It prints a URL with a per-launch token in it and opens your browser.

A Tour of the Interface

The Servers screen

The first screen is your server list. On a first launch it comes with three samples, and each is worth a minute:

  • everything-server-default, the official "everything" server: every MCP feature in one place. The best way to learn the tabs.
  • filesystem-server-default, a real stdio server reading files (scoped to /tmp).
  • example-server-default, a hosted server with OAuth sign-in. The best way to learn how MCP authorization works.

Each server has a switch to connect, its own Settings, and Clone, Edit and Remove. Add Servers lets you add one by hand, or import it from a client's config file or from a registry entry.

The tabs

Once you connect, tabs appear for whatever the server supports:

TabWhat you do there
ToolsPick a tool, fill in the form Inspector builds from its input schema, run it, read the result
ResourcesBrowse resources and templates, read them, subscribe to changes
PromptsFill a prompt's arguments and see the messages it produces
AppsRender an MCP App, a tool with its own UI, in a sandbox
ProtocolEvery JSON-RPC request, response and notification
NetworkEvery HTTP exchange: status codes, headers, bodies (HTTP servers)
ConsoleA stdio server's stderr, where its own error messages go

Servers that support them also get Tasks, Logs and Skills tabs.

Practical rule

Keep the Protocol tab open beside whatever you are doing. Inspector lets you pin the monitoring tabs as a sidebar. Half of MCP debugging is noticing that the request you think you sent is not the request you sent.

A Real Session: VoxEstate's MCP Servers

VoxEstate is my AI call center for real estate agencies, and its MCP servers are where Inspector earns its keep. A caller phones in through Twilio, or talks in the browser, and a voice agent built on FastRTC, LangGraph and Groq finds homes, answers questions about the agency from the agency's own documents, and books viewings while still on the call. When nothing fits, it saves the buyer's search with their consent, and calls them back the moment a matching home is listed.

The agent never touches a database directly. Everything it does goes through four MCP servers, written with the official Python SDK:

ServerWhat the agent can doWhat only staff can do
listingsSearch homes, get one home's detailsAdd or change a listing
knowledgeAsk about the agency (fees, hours, policies)Add, change or delete company documents; read the questions they did not cover
viewingsOffer free times, book, cancel, list a caller's viewingsSee today's calendar and every upcoming booking
leadsSave a search, stop calls, forget the callerRecord opt-outs and outcomes, match a new listing to saved searches, see consent, matches and callbacks

There are three roles, each with its own token. The voice agent connects with an agent token. Staff tools connect with a staff token: the web app's staff console, AI assistants such as Claude Desktop and VS Code, and Inspector. And the call center itself, the dialer that places callbacks and the writer of call summaries, holds a service token, and only it may start a callback or store a call's summary. Same servers, same rules, different permissions, and identity comes from the connection, never from the model.

VoxEstate: four MCP servers, three kinds of clients. The voice agent, staff tools such as Inspector, and the call center's own dialer reach the same servers with their own tokens; a role check on every list and call decides what each can see and do.

Connecting with a bearer token

VoxEstate's make inspector does the setup. It finds the running servers, writes them into a server list with the right tokens (var/inspector/mcp.json, kept out of git like .env), and opens Inspector on that list: the four servers with the staff token, plus the knowledge server twice more, once with the agent's token and once with none, to compare what each may do.

By hand, it takes three steps for any server: add it with transport streamable-http and its URL, open its Settings, and add a header, Authorization, with the value Bearer <staff token>. Flip the switch, and the knowledge server's Tools tab shows search_knowledge, upsert_document and delete_document.

What happens without the token is just as informative. The server answers:

No token: the server refuseshttp
HTTP/1.1 401 Unauthorized
www-authenticate: Bearer realm="voxestate"
content-type: application/json
 
{"error": "invalid_token", "detail": "Send Authorization: Bearer <MCP__STAFF_TOKEN>."}

Inspector treats a 401 as the start of an OAuth sign-in and goes looking for an authorization server. VoxEstate does not use OAuth (fixed tokens are enough for an internal system), so the sign-in fails, which is the correct outcome. If your server does use OAuth, the same move walks you through the whole flow: discovery, client registration, the browser sign-in, the token exchange. That alone makes Inspector worth learning.

Teaching the agent something new, as staff

The knowledge server answers questions about the agency from a set of Markdown documents, which are embedded into a vector database (Qdrant) and re-ranked by a cross-encoder before the agent sees them. When nothing relevant comes back, it says so instead of letting the model guess.

In Inspector, I read the kb://unanswered resource: a list of questions callers asked that the documents did not cover. "Who is your CEO?" is on it. So I open Tools, pick upsert_document, paste a short Markdown document with a "Who runs VoxEstate" section, and run it:

Tool result
Indexed 'Leadership' as leadership: 1 passages.

Then I ask the voice agent, out loud, "Who is your CEO?", and it answers from the new document. No restart, no redeploy. That loop, read what is missing, add it, hear the agent use it, is how VoxEstate's staff keep the agent's knowledge current, from Inspector or from an AI assistant such as Claude Desktop, with the same staff token. Inspector proves it end to end without any staff interface at all.

Two Bugs Inspector Helped Me Find

Bug 1: the agent could see tools it could not use

Each tool on VoxEstate's servers carries metadata saying who may use it, and the servers enforce it: if the agent token calls upsert_document, the server refuses.

When I connected Inspector with the agent's token, though, the tool list still showed upsert_document and delete_document. Calls were refused, but the list leaked. The voice agent never noticed, because its own client filtered the list by that metadata. Any other client holding that token would have seen tools it had no business seeing.

The fix was a few lines in the servers' access-control middleware: filter tools/list and resources/list by the caller's role, not only tools/call. Now the agent's token sees only search_knowledge.

Why this matters

Least privilege applies to discovery too. What a token can list is information, and a tool list is the first thing an attacker, or a confused model, reads.

Bug 2: server or model?

During a test call, I asked the agent "Who is your CEO?" and it brushed me off as off-topic: "I'm happy to help you find the right home, let's focus on that!". The agent has a guardrail tool for off-topic questions, and the model had used it for a question about the agency itself.

My first instinct was to blame the knowledge server. Inspector settled it in ten seconds: calling search_knowledge directly with "Who is your CEO?" returned NOT COVERED, exactly the answer it should give when the documents do not say. The server was right. The model had chosen the wrong tool.

So the fix went in the agent, not the server. A small middleware runs after the model decides, and if the model tries to redirect a question that is clearly about the agency, it turns that into a knowledge lookup instead. The caller now hears "I don't have that information, but I can pass your question to a colleague", which is the truth.

The mental model

Inspector is the control group in your experiment. Same input, no model. If the result differs from production, you know which side changed.

Legacy and Modern: Watching MCP Change

The 2026-07-28 revision made MCP stateless, and Inspector is the clearest way to see what that means. Set a server's Protocol Era to legacy and the Protocol tab shows the classic handshake from my MCP article: initialize, the server's capabilities, then notifications/initialized. Set it to modern and there is no handshake at all. Every request carries its own protocol version and capabilities in _meta:

A modern-era requestjson
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/list",
  "params": {
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": { "elicitation": {} }
    }
  }
}

The bigger change is how a server asks for more information. In VoxEstate's viewings server, book_viewing needs to know whether the viewing is in person or by video, and how many people are coming. In the legacy era, the server sends the client a separate elicitation/create request mid-call. In the modern era, servers do not send requests to clients any more. Instead the tool call itself comes back saying I need more input (simplified):

The tool call answers: input requiredjson
{
  "resultType": "input_required",
  "inputRequests": {
    "details": {
      "method": "elicitation/create",
      "params": {
        "mode": "form",
        "message": "Would you like to see it in person or by video call, and how many people will come?",
        "requestedSchema": {
          "type": "object",
          "properties": {
            "viewing_type": { "type": "string", "enum": ["in_person", "video"] },
            "party_size": { "type": "integer", "minimum": 1 }
          },
          "required": ["viewing_type", "party_size"]
        }
      }
    }
  },
  "requestState": "<sealed state the client sends back unchanged>"
}

The client asks the user, then repeats the same tools/call with the answers in inputResponses and the requestState it was given. MCP calls this multi round-trip requests (MRTR). Inspector pauses each round in a dialog for you to answer, and the Protocol tab groups the rounds as one conversation.

One booking, two eras. Legacy opens with a handshake, and the server sends the client a request mid-call. Modern (2026-07-28) has no handshake: the server answers input_required, and the client retries with the answers.

On a phone call, that dialog is the voice agent asking the caller. "In person, two of us" becomes {"viewing_type": "in_person", "party_size": 2}, and the booking completes. The leads server uses the same pattern for consent: when the agent saves a search, the server itself asks whether the caller would like a call when a matching home is listed, and records the answer either way. Seeing both eras side by side in Inspector is what made the new pattern click for me.

VoxEstate's servers speak both eras, and lean on one more 2026-07-28 feature: the dialer listens on a single subscriptions/listen stream for new matches from the leads server, which is how a buyer's phone rings within about a second of a matching home being listed.

Practical rule

Test your HTTP servers in both eras. Clients in the wild will speak both for a while, and a server that only works in one is a support ticket waiting to happen.

The CLI: Inspector in CI

The web client is for exploring. The CLI is for making sure things stay working. Each run connects, sends one request, prints the result and exits, with exit codes that say why something failed:

Exit codeMeaning
0Success
3The server requires authentication
4The server is unreachable
5Tool error: the call returned isError: true, or the tool was not found
A CI checkbash
# Does the server still expose the tool my agent depends on?
npx -y @modelcontextprotocol/inspector --cli --config ./ci-servers.json --server listings \
  --stored-auth-only --method tools/list --format json \
  | jq -e '.result.tools | map(.name) | index("search_listings")' > /dev/null

That one line fails the build if the server stops starting, loses a tool, or suddenly needs a sign-in. --stored-auth-only makes it fail fast instead of waiting for a browser login nobody will complete.

It is also how coding agents like Claude Code can check their own work: change the server, run the CLI, read the JSON.

Using It Safely

Inspector is a developer tool with real power: its backend can start programs on your machine, and it holds real tokens. A few habits:

  • Keep it local. It binds to 127.0.0.1 and protects its backend with a token in the URL it prints. Open that URL, do not disable the check, and never expose it to a network.
  • Know the history. Inspector before 0.14.1 had a critical remote-code-execution flaw (CVE-2025-49596): its proxy had no authentication, so a malicious web page could drive it. The token you see in today's URL is the fix. Keep Inspector updated.
  • Know where tokens live. OAuth tokens go to the OS keychain, but a header you type, like my bearer token, is saved as written in the server list file. Fine for a development token; never commit that file.
  • Treat stdio servers as code you are running. A local server runs with your permissions. Read third-party servers' tool descriptions before trusting them: descriptions go straight into a model's context, and hidden instructions there ("tool poisoning") are a real attack.

My Workflow, in Short

When I build or change an MCP server now:

  1. Step 01: CLI first

    --method initialize and --method tools/list. Does it start, and does it report what I expect?

  2. Step 02: Web client

    Try every tool with real arguments, and read every description as if I were the model.

  3. Step 03: Edges

    Bad inputs, missing arguments, the wrong token, no token, both protocol eras.

  4. Step 04: Lock it in

    Turn what I found into CLI checks in CI.

  5. Step 05: Then the agent

    Only once the server behaves on its own do I connect it to a model.

Practical rule

Never debug a server through a model. Inspector first, agent second.

Closing

MCP gave AI applications a standard port. Inspector lets you look inside it. It will not make your model smarter, and it will not write your tool descriptions for you, but it will tell you, in seconds, whether the problem is in the server you wrote or the model you are steering. In agent engineering, knowing which half to fix is most of the work.

For the whole system behind these servers, with its architecture, where a turn's time goes and what did not work, see the VoxEstate case study; for another MCP server in a real repository, Kylie, MCP Edition. Further reading: the official Inspector documentation, the Inspector repository on GitHub, and what changed in MCP 2026-07-28.

Keep reading