MCP Shipyard
← Rules catalog

Claude says "Couldn't reach the MCP server": missing protected resource metadata

OAuth MCP servers must serve RFC 9728 protected resource metadata. Without it Claude can show Couldn't reach the MCP server. Check and fix it.

blockerauth.prm-missingClaude, ChatGPT, Grok Build, VS Code

If your remote MCP server uses OAuth, it must publish RFC 9728 protected resource metadata and point to it from the 401 response. Without it, Claude can show "Couldn't reach the MCP server", which is the symptom named in this rule's fix text.

What you see

  • Claude shows "Couldn't reach the MCP server" when you add the connector or start sign-in.
  • A scan reports auth.prm-missing: "No protected resource metadata could be fetched".
  • GET /.well-known/oauth-protected-resource on your host returns 404 or HTML.

This is a blocker for Claude, ChatGPT, Grok Build (formerly Cursor) and VS Code in the rule's platform list. Other causes of the same Claude message exist (private IPs, redirects, firewalls); this page covers the metadata cause only.

Why it happens

The MCP authorization flow starts when an unauthenticated request gets a 401. The client then needs to learn which authorization server to use. RFC 9728 defines a JSON document, served by the MCP server, that lists resource and authorization_servers. If the document cannot be fetched, the client has nothing to start OAuth with.

Check it yourself

# 1. Does the unauthenticated call return a pointer?
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":"tools/list"}'

# 2. Does the metadata document load?
curl -i https://mcp.acme.example/.well-known/oauth-protected-resource/mcp

Look for WWW-Authenticate: Bearer resource_metadata="https://..." in step 1 and a JSON body with resource and authorization_servers in step 2.

Fix

Serve the document at /.well-known/oauth-protected-resource[/path] (or any HTTPS URL you reference from the challenge):

// Express example
app.get("/.well-known/oauth-protected-resource/mcp", (_req, res) => {
  res.json({
    resource: "https://mcp.acme.example/mcp",
    authorization_servers: ["https://auth.acme.example"],
    scopes_supported: ["orders:read"],
  });
});

Then make unauthenticated MCP calls return 401 with WWW-Authenticate: Bearer resource_metadata="https://mcp.acme.example/.well-known/oauth-protected-resource/mcp". See auth.challenge-401 for the header details.

Verify

Re-run both curl commands. Step 2 must return HTTP 200 with valid JSON, and resource must equal the URL users enter (see auth.resource-mismatch). Then add the connector again in a fresh session.

Which clients care

  • Claude: the rule text ties the missing document to "Couldn't reach the MCP server".
  • ChatGPT, Grok Build, VS Code: listed by the rule as affected. The exact error text each shows is not verified here.

Source

Claude authentication docs: https://claude.com/docs/connectors/building/authentication

Run a free scan at https://mcpshipyard.com/scan to check every rule at once.

Check every rule at once

A free scan runs this check and the other 152 against your live URL.

Scan a server