A one-page reference of every endpoint involved in MCP authorization: who publishes it, which HTTP method it uses and its key parameters, from Protected Resource Metadata and authorization server metadata to the authorization, token and registration endpoints. It also lists the WWW-Authenticate headers for 401 and 403 responses.
In this lesson
Find quickly which party publishes each endpoint in the MCP authorization flow
Recall the key parameters of the authorization and token requests
Write correct WWW-Authenticate headers for 401 and 403 responses
The MCP server publishes Protected Resource Metadata and the MCP endpoint; the authorization server publishes its metadata and the authorization, token and registration endpoints; the client publishes its CIMD document and the callback.
The authorization request carries PKCE (code_challenge, code_challenge_method=S256) and resource; the token request carries code_verifier and resource.
401 points to the resource metadata; 403 insufficient_scope names the scopes needed.
quiz · 3 questions
1. Which party publishes /.well-known/oauth-protected-resource?
Protected Resource Metadata (RFC 9728) is published by the resource server, which in MCP is the MCP server; it tells clients which authorization servers protect it.
2. Which parameters does the callback at the client's redirect_uri receive on success?
The authorization response delivers the code along with state and, when the AS supports RFC 9207, iss. Tokens only come from the token endpoint.
3. What does a 403 response for missing permissions carry in WWW-Authenticate?
The 403 tells the client which scopes the operation needs so it can reauthorize incrementally.