MCP Inspector is a developer tool for testing and debugging MCP servers independently of a chat application's model. Use it to connect, inspect exposed capabilities, call tools with known inputs and examine errors. For a documentation server, the useful test is not just "connected": it is finding the correct page, reading its content and refusing access outside the caller's permissions.
The official Inspector guide documents browser, CLI and terminal interfaces. Check its current runtime requirements and use a reviewed package version for repeatable testing. The commands below are documented invocation patterns, not a claim that your server or every client has already passed them.
Set up a controlled test target
Choose a server you own or are authorized to test. Start with public or synthetic documentation and a small number of read-only calls. Do not point a debugging session at production write tools simply because they appear in discovery.
Prepare a target record:
1Server: Example Product Docs2URL: https://docs.example.com/mcp3Expected tools: documentation search and page read4Known public page: v2 export guide5Known missing page: no-such-guide6Restricted test page: approved non-sensitive fixture7Expected source domain: docs.example.comUse your provider's actual tool names and endpoint. Discovery results determine what you can call; this record does not define or install those tools.
Launch Inspector without exposing its local controls
After reviewing the package and runtime requirements, launch the interface:
1npx @modelcontextprotocol/inspectorFor a trusted local stdio server that you have already built:
1npx @modelcontextprotocol/inspector node ./build/server.jsDo not run the second command against an unreviewed package or file. Inspector can launch the specified process; that process is not made safe by being called an MCP server.
The web-client documentation explains the per-launch token in its printed URL. Open that URL locally and keep it private. Do not publish the Inspector interface through a public tunnel, disable its authentication or include its tokenized URL in a screenshot.
For a remote test, add the exact provider endpoint and supported transport through the interface. A normal HTML docs page is not an MCP endpoint, even if it lives on the same domain.
Separate five different kinds of success
| Layer | What you establish | What remains unproven |
|---|---|---|
| Network reachability | The service can be contacted | Correct protocol behavior |
| Protocol compatibility | Client and server exchange supported messages | Useful tool definitions |
| Tool discovery | Expected capabilities are visible | Correct source content |
| Retrieval correctness | A known request returns the right page | Permission isolation |
| Authorization | Allowed requests work and denied requests fail | The final model answer is correct |
Record the first failing layer. Otherwise a retrieval bug may be misdiagnosed as an OAuth problem, or a successful tool list may be reported as a complete integration test.
For current and older protocol revisions, use the supported SDK and Inspector compatibility behavior instead of hand-copying a legacy initialization message. The protocol has changed over time; a test fixture should name the revision it targets.
Inspect schemas before calling tools
Review each expected tool's description, required arguments and input types. Look for ambiguity: does page_id mean a canonical URL, a filesystem path or an internal identifier? Is version required, optional or unsupported?
Select a known public page and make one read-only call using a valid input. Compare the returned text and source URL with the browser page. Include an important warning or limit in your comparison so a truncated response does not pass just because the title matches.
Then try invalid input: omit a required field, use the wrong type or request a missing page. A useful error should tell the client what failed without exposing stack traces, credentials or another tenant's content.
Use CLI discovery for a repeatable check
Inspector's CLI reference documents scriptable calls. For an approved public HTTP endpoint:
1npx @modelcontextprotocol/inspector --cli \2 https://docs.example.com/mcp \3 --transport http \4 --method tools/listReplace the example URL before running it. This sends a discovery request; it is not a content-quality test. Save only a redacted result when the tool list or server instructions are sensitive.
After inspecting the actual schema, a search invocation might have this shape:
1npx @modelcontextprotocol/inspector --cli \2 https://docs.example.com/mcp \3 --transport http \4 --method tools/call \5 --tool-name search_documentation \6 --tool-arg query='export limits'search_documentation and query are example names, not universal MCP methods. Replace them with the discovered tool and its actual argument. Do not substitute a publishing tool while experimenting with CLI syntax.
Diagnose OAuth without sharing secrets
Use Inspector's authorization walkthrough to check the challenge, metadata discovery, client identity, consent and callback. Copy the callback value from the surface you are using rather than assuming every Inspector mode uses the same address.
If login loops, compare the server URL, issuer and exact registered callback. If login succeeds but a read fails, inspect granted access and per-page authorization. Do not "fix" the latter by granting an administrator credential.
Review local credential storage before testing private sources. Treat exported logs as sensitive: authorization headers, callback codes and retrieved private text do not belong in public bug reports. A reproducible report can use a harmless fixture and a request identifier instead.
A documentation-server test matrix
| Case | Expected result | Record |
|---|---|---|
| Known title search | Intended page appears | Query, identifier and source URL |
| Known page read | Current instruction and warning present | Compared source section |
| Unknown page | Clear missing-result response | Error category |
| Invalid argument | Validation failure without side effect | Input type and response |
| Denied page | No restricted content returned | Test identity and access rule |
| Revoked grant | Subsequent protected request denied | Revocation time and result |
| Updated page | New approved text retrieved after refresh | Publication and check times |
These are acceptance criteria, not reported test results. Run the relevant cases with authorization from the service owner. Do not perform load tests against a third-party endpoint without permission.
Finally, repeat a task in the real client. Inspector can isolate server behavior, but it does not prove how Claude, ChatGPT or Cursor selects and interprets tools. Use the MCP client worksheet for that next layer.
MCP Inspector FAQ
Does Inspector require an AI model?
No model is needed to inspect discovery and invoke known tools through Inspector. That makes it useful for isolating server behavior from answer generation.
Does a successful tools list mean my integration works?
It proves discovery for that test, not content accuracy, private access control or the final client's behavior. Test those separately.
Should I disable Inspector authentication to debug a connection?
Keep its local protection enabled. Investigate the server connection independently and avoid exposing the debugging interface to other machines.
Can I share Inspector logs publicly?
Only after reviewing and redacting them. Logs can contain credentials, callback data, private queries and retrieved content. Prefer a non-sensitive reproducible fixture.