MCP troubleshooting
Symptoms and fixes for the MCP server, most common first.
No Invariant tools show up
Adding the URL doesn't sign you in. Click Connect (Claude), finish the sign-in page, then start a new chat or session. In Claude Code, run /mcp and check that invariant-earth says connected.
401, or the sign-in page keeps coming back
The key was revoked or mistyped. Check it with:
curl -s https://api.invariant-ai.com/v1/keys/me -H "X-API-Key: $INVARIANT_API_KEY"
If that fails, create a new key. Then remove the server from the app, add it again and sign in once. With a header setup, make sure the header reads Authorization: Bearer ief_... with a space after Bearer.
The sign-in page says "This sign-in link does not work"
The app registered itself with an older server secret, or the link was edited. Remove the connector and add it again. The app registers a fresh client and the link works.
A tool call times out
Parcel enrichment and driving screens can take 30 to 60 seconds on a cold point. A retry of the same point is usually instant: fields that finish late are kept. Raise your app's tool timeout (MCP_TOOL_TIMEOUT=180000 for Claude Code, tool_timeout_sec = 180 for Codex).
A field comes back failed
The source didn't answer in time. That isn't "no data". Retry the call. If partial_failures[].retryable is false, the source is down for longer; the answer says which one.
fields_unknown
The name isn't in that tool's catalog. Call invariant_list_fields with a query. Parcel fields such as owner belong to invariant_enrich, not invariant_fetch.
Enrich returns no parcel fields
Read parcel_match.status. no_match means no parcel contains the point: use a coordinate inside the parcel rather than a road or a geocoded address on the street. candidates lists the nearby parcels.
The address lands in the wrong place
Check accuracy_type. range_interpolation is a street-range estimate and can sit on a neighbour's lot in rural areas. Pass a coordinate for a specific parcel instead.
proximity_unconfigured on a driving request
Driving needs the routing engine. Use "mode": "straightline" for distances in the meantime.
Logs say "Unsupported MCP-Protocol-Version"
Your client sent a version this server doesn't know. Update the app. Supported versions: 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05.
Still stuck?
Email pranav@invariant-ai.com with the X-Request-ID from the response (or the time of the call) and the tool name. Leave your key out.