MCP Inspector passes but Claude fails: what differs and how to test it
A checklist of the differences between MCP Inspector and Claude's connector, with curl commands that reproduce what Claude sees from outside your network.
Inspector runs on your machine, from your network, with your DNS and often a token you supplied. Claude's connector runs on Anthropic's servers, over the public internet, from a published IP range, and does its own OAuth discovery. A pass in Inspector therefore says your server can work, not that it is reachable or discoverable from outside. Reproduce Claude's view with the curl checks below.
This is the short, test-first version. The longer write-up with every cause is Works in Inspector, fails in Claude. Facts here come from Anthropic's troubleshooting and authentication docs unless stated.
What differs
| Inspector (typical local run) | Claude connector | |
|---|---|---|
| Runs from | Your machine | Anthropic's infrastructure |
| DNS | Yours: VPN, split-horizon, hosts file | Public DNS, IPv4 only, every address must be globally routable |
| Redirects | Fails fast, so you notice | Follows them and drops the Authorization header |
| Firewall | Your IP, usually allowed | Anthropic's range (160.79.104.0/21 per its docs), often blocked by a WAF |
| OAuth client | Often a token or client ID you pasted | Performs discovery, then CIMD, DCR or portal credentials |
| Audience | Whatever token you minted | resource set to the canonical MCP URL |
| Account | Your admin account | A user or reviewer with different data |
The test sequence
Run these from a network that is not yours. Replace the hosts with yours.
1. Public DNS, IPv4
dig +short A mcp.acme.example @1.1.1.1
dig +short AAAA mcp.acme.example @1.1.1.1
Ask a public resolver, not your own. You need a public IPv4 address. Private, carrier-grade NAT, loopback and link-local addresses are rejected. An AAAA-only hostname fails.
2. No redirect
curl -sI https://mcp.acme.example/mcp | head -5
A Location header to another host means you should register the destination URL. See 405 and 307 errors for same-host slash redirects.
3. An unauthenticated call is challenged
curl -i -X POST https://mcp.acme.example/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"curl","version":"0"}}}'
For a public server, expect 200. For a protected one, expect 401 and a WWW-Authenticate header with resource_metadata (auth.challenge-401). An initialize call with no auth that returns 403 from a gateway is a signal that the WAF, not your app, is answering.
Which protocolVersion you send depends on the revision you serve; the 2026-07-28 revision replaces initialize with a discover call, per the spec's changelog. Use the revision your server supports.
4. Discovery documents
curl -s https://mcp.acme.example/.well-known/oauth-protected-resource | jq .
curl -s https://auth.acme.example/.well-known/openid-configuration | jq '{issuer, authorization_endpoint, token_endpoint, registration_endpoint, client_id_metadata_document_supported, code_challenge_methods_supported}'
Checks:
resourceequals the URL users enter (auth.resource-mismatch).issuerequals the firstauthorization_serversentry (auth.issuer-mismatch).S256is incode_challenge_methods_supported(auth.pkce-s256).- A registration path exists:
registration_endpointor CIMD (auth.client-registration-claude).
5. Speed of the auth path
for u in https://mcp.acme.example/.well-known/oauth-protected-resource \
https://auth.acme.example/.well-known/openid-configuration; do
curl -s -o /dev/null -w "%{time_total}s $u\n" "$u"
done
Anthropic gives discovery, registration and token endpoints 10 seconds. Run the loop three times to catch cold starts. The scanner's latency.handshake rule covers the MCP handshake.
6. The tool list, as a real user would see it
curl -s -X POST https://mcp.acme.example/mcp \
-H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | jq '.result.tools | length'
Use a token for an ordinary account, not an admin. A server that returns zero tools to non-admins looks broken in Claude (count.zero). Also list names over 64 characters, which Claude's policy rejects (naming.length).
Reading the results
| First failing step | Where to look |
|---|---|
| 1 | DNS records and split-horizon setup |
| 2 | Register the final URL |
| 3 | Gateway rules, WWW-Authenticate handling: 401 guide |
| 4 | Metadata and registration: registration guide |
| 5 | Cold starts, slow identity provider |
| 6 | Account-specific data and tool names |
If sign-in completes and calls then fail, see invalid_token after OAuth. If every step passes from outside your network, the remaining differences are the egress range at your WAF and the identity provider's firewall: allowlist Anthropic's range for both, then retry. For the full tree, use Claude says "Couldn't reach the MCP server".
Make Inspector closer to Claude
Run Inspector against the public URL, with no VPN, and sign in through OAuth instead of pasting a token. Test with a non-admin account. Anthropic notes that clientInfo differs across surfaces and is unauthenticated, so do not branch behaviour on it.
Run a free scan at https://mcpshipyard.com/scan to check every rule at once.
Check your server against these rules
Scan runs the checks from this guide against a live URL and lists each failing rule with its fix.