MCP server only supports API keys: why Claude and ChatGPT directories need OAuth
A server that answers 401 with no OAuth discovery is treated as API-key-only. Claude's directory and ChatGPT expect OAuth. See how to detect it and what to add.
If your MCP server answers 401 and publishes no OAuth discovery, the scanner classes it as API-key-only and reports auth.api-key-only. Add OAuth 2.1 with protected resource metadata and PKCE S256, or make the data public with no auth. The rule is major and applies to Claude and ChatGPT.
What you see
- A scan reports
auth.api-key-only: "Server answers 401 with no OAuth discovery". - A directory submission asking for OAuth. The exact portal wording is not verified here.
- In ChatGPT, no way to enter a key. The rule's fix text says ChatGPT supports OAuth only.
Why it happens
API keys are the quickest way to protect an API, so many servers launch with a static header. The rule's fix text says Claude policy 5.D and the submission page require OAuth 2.0 for authenticated directory servers, and that static request-header credentials work only for custom connectors a customer adds by URL.
Check it yourself
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"}'
curl -i https://mcp.acme.example/.well-known/oauth-protected-resource
A 401 with no resource_metadata pointer and a 404 on the well-known URL is the pattern the rule flags.
Fix
You have two honest options.
- Add OAuth. Serve protected resource metadata, answer unauthenticated calls with
401and aWWW-Authenticatechallenge, advertiseS256incode_challenge_methods_supported, and provide a registration path (CIMD or DCR). Start with auth.prm-missing, auth.challenge-401, auth.pkce-s256 and auth.client-registration-claude. The guide MCP OAuth for Claude and ChatGPT covers the order. - Go public. If the data is public and read-only, remove authentication from the MCP endpoint and rate-limit by IP. Keep write tools behind OAuth.
You can keep API keys for customers who add your server as a custom connector, but do not rely on them for a directory listing.
Verify
Re-run both curl commands. You should see 401 with a resource_metadata pointer and 200 JSON from the well-known URL, or a 200 tools list for a public server.
Which clients care
Claude and ChatGPT, per the rule's platform tags. The rule text says Claude's directory requires OAuth and ChatGPT supports only OAuth.
Source
Anthropic software directory policy: https://support.claude.com/en/articles/13145358-anthropic-software-directory-policy
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