MCP OAuth authorization server metadata not reachable: fix discovery (RFC 8414)
Clients must fetch RFC 8414 or OIDC metadata for your issuer. A WAF blocking Anthropic's egress range is a common cause. Reproduce and fix.
Your protected resource metadata names an authorization server, and clients must be able to fetch that server's RFC 8414 (or OpenID Connect discovery) metadata. If the fetch fails, sign-in cannot start. A WAF on the identity provider blocking Anthropic's egress range (160.79.104.0/21) is a common cause, per the rule.
What you see
- A scan reports
auth.as-metadata-missing: "Authorization server metadata could not be fetched". It is a blocker, and it only fires when your protected resource metadata did load. - The same fetch works from your laptop but fails from a hosted client. That pattern points to an IP-based block.
- The client error text is not verified here; "Couldn't reach the MCP server" is the Claude message tied to discovery failures in
auth.prm-missing.
Why it happens
Common causes: the issuer URL in authorization_servers has a path and the metadata is served only at the root well-known location; the identity provider needs a feature flag to publish metadata; a bot-protection rule challenges non-browser requests; or the endpoint is slow (see auth.discovery-latency).
Check it yourself
# Take the first entry of authorization_servers
curl -s https://mcp.acme.example/.well-known/oauth-protected-resource/mcp | jq -r '.authorization_servers[0]'
# RFC 8414 form
curl -i https://auth.acme.example/.well-known/oauth-authorization-server
# OIDC form
curl -i https://auth.acme.example/.well-known/openid-configuration
For an issuer with a path such as https://auth.acme.example/tenant1, RFC 8414 inserts the well-known segment between host and path: /.well-known/oauth-authorization-server/tenant1.
One of these must return 200 JSON from outside your network. If it works on your network only, check your WAF.
Fix
- Publish the metadata at one of the standard locations for the exact issuer string.
- Allow requests from 160.79.104.0/21 on the identity provider and any CDN rule that fronts it. Disable bot challenges on
/.well-known/*,/authorize,/tokenand/register. - List the issuer you want used first in
authorization_servers; the rule says Claude uses only the first entry. - Include at least
issuer,authorization_endpoint,token_endpointandcode_challenge_methods_supported.
Verify
Fetch the metadata from a machine outside your network (a cloud shell works) and from a browser. Then run jq .issuer and confirm it equals the authorization_servers entry exactly (see auth.issuer-mismatch).
Which clients care
The rule lists Claude, ChatGPT, Grok Build (formerly Cursor) and VS Code. The Anthropic IP range comes from the rule's fix text; egress ranges for other clients are not in the rule.
Source
MCP authorization spec: https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization
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.
Related fixes
- Add Client ID Metadata Documents (CIMD) next to Dynamic Client Registration
- API key or token in the MCP server URL (?key=): why it fails and how to fix
- ChatGPT MCP: dynamic client registration not supported (CIMD or DCR required)
- Claude says "Couldn't reach the MCP server": missing protected resource metadata