part 3The satellite RFCs MCP relies on·lesson 3.2 of 8·2 min read
RFC 8414: Authorization Server Metadata
RFC 8414 Authorization Server Metadata is the "directory" of an OAuth authorization server: a JSON document that lists its endpoints and capabilities. This lesson covers what /.well-known/oauth-authorization-server contains, which fields are required and which ones an MCP client looks at, and why the issuer must be checked.
In this lesson
Describe what /.well-known/oauth-authorization-server contains.
Identify the required fields and the ones an MCP client relies on.
Explain why the client must check issuer.
The authorization server's directory
This is a general OAuth standard, not an MCP invention. A GET returns a JSON document that describes the authorization server. It does not authenticate or issue anything: it only informs.
GET /.well-known/oauth-authorization-server HTTP/1.1
Host: auth.example.com
Notice that the paths (/oauth2/authorize…) are chosen by each server. That is why 2025-06-18 removed the "default paths" /authorize, /token and /register: the endpoints must be read from here.
The fields
Field
Required?
Meaning
issuer
Required
Who the AS is. The client must check that it matches the address used to request the metadata.
authorization_endpoint
Required if any grant uses it
Where to send the user to approve access.
token_endpoint
Required
Where to redeem the code for a token (and to refresh).
response_types_supported
Required
Supported response types; code for the authorization code grant.
registration_endpoint
Optional
Where to register dynamically (RFC 7591). Its presence advertises that dynamic registration is available.
code_challenge_methods_supported
—
PKCE methods, e.g. S256. If it is missing, there is no PKCE, and in MCP 2025-11-25+ the client refuses to continue.
token_endpoint_auth_methods_supported
—
How the client authenticates when requesting the token; none for public clients.
scopes_supported
Recommended
The permissions that can be requested.
client_id_metadata_document_supported
—
The AS accepts a client_id in the form of a URL (see lesson 3.6).
authorization_response_iss_parameter_supported
—
The AS sends iss in the authorization response (RFC 9207, see lesson 3.8).
Its weight in each MCP revision
Revision
Who publishes it
Level
2025-03-26
The MCP server (which is usually also the AS), at its root
Required for the client, recommended for the server (without it: default paths)
2025-06-18
The AS
Required
2025-11-25+
The AS
The AS must offer this or OpenID Connect Discovery; the client must support both
Summary
A JSON document at /.well-known/oauth-authorization-server with the AS's endpoints and capabilities.
Required: issuer, token_endpoint, response_types_supported (and authorization_endpoint when applicable).
Endpoint paths are read from the metadata; MCP default paths only existed in 2025-03-26.
Check that issuer matches exactly.
quiz · 3 questions
1. Under 2025-06-18, the AS metadata does not exist (404). What does the client do?
Default paths only applied in 2025-03-26. Since 2025-06-18, without metadata there is no standard way forward (in 2025-11-25 the client would also try OpenID Connect Discovery).
2. The AS metadata has no code_challenge_methods_supported field. What does an MCP 2025-11-25 client do?
Without code_challenge_methods_supported there is no evidence of PKCE support, and from 2025-11-25 the client must not proceed.
3. Metadata fetched from https://evil.example declares issuer https://auth.example.com. What should the client do?
The exact match between the metadata location and the declared issuer prevents a malicious server from impersonating another authorization server.