part 4MCP authorization, revision by revision·lesson 4.5 of 9·3 min read
MCP 2025-03-26: OAuth 2.1 arrives
MCP 2025-03-26 introduced the Streamable HTTP transport and the first authorization standard: OAuth 2.1 with PKCE, helped by Authorization Server Metadata (RFC 8414) and Dynamic Client Registration (RFC 7591). This lesson covers the three standards of this revision and their requirement levels, the four design decisions inside OAuth, and the complete flow with discovery and registration.
In this lesson
Name the three standards of this revision and their requirement levels.
Walk through the four design decisions inside OAuth.
Follow the complete flow, with discovery and registration.
The three standards and their levels
Standard
What it solves
Level
OAuth 2.1 (draft 12)
Granting access without permanent credentials
Mandatory
Authorization Server Metadata (RFC 8414)
Where the endpoints of an unknown server are
Mandatory for the client, recommended for the server
Dynamic Client Registration (RFC 7591)
Registering the client with no manual intervention
Recommended
Over HTTP the other two paths remain valid too: no authorization at all, or a custom mechanism outside the standard (see lesson 4.3).
The four decisions
1. Grant
Option
For which case
Authorization code + PKCE
The client acts on behalf of a human user
Client credentials
The client is another application, with no user
2. client_id
Option
How
Dynamic registration
POST /register
Fixed client_id
Hard-coded in the client for that server
Entered by the user
Manual registration, then pasting the client_id
3. Endpoints
Option
How
Authorization Server Metadata
GET /.well-known/oauth-authorization-server at the root of the MCP server (the path is dropped)
Default paths
With no metadata: /authorize, /token, /register
4. Issuer
Option
How
The MCP server itself
It also acts as the authorization server
A delegated third party
The MCP server redirects to another authorization server (e.g. GitHub), receives its token and issues its own token bound to it
With delegation, the client never sees the third party's token: the MCP server keeps it and hands the client a token of its own. This is a precursor of the role split in 2025-06-18 (see lesson 4.6).
The complete flow in 2025-03-26
Complete flow in 2025-03-26
1. Request without a token
MCP client → MCP server (+ authorization server)
POST /v1/mcp HTTP/1.1
Host: api.example.com
2. 401
MCP server (+ authorization server) → MCP client
HTTP/1.1 401 Unauthorized
This revision sets no requirements on its content.
3. Metadata at the root
MCP client → MCP server (+ authorization server)
The client drops the path: https://api.example.com/v1/mcp → https://api.example.com, and requests /.well-known/oauth-authorization-server. If that returns 404, it falls back to /authorize, /token and /register.
4. Dynamic registration
MCP client → MCP server (+ authorization server)
POST /register with a name and a redirect_uri → client_id.
5. Authorization with PKCE
User → MCP server (+ authorization server)
The browser goes to /authorize with a code_challenge; the user approves; the code comes back.
6. Exchange
MCP client → MCP server (+ authorization server)
POST /token with code + code_verifier → access token.
7. MCP requests with Bearer
MCP client → MCP server (+ authorization server)
Authorization: Bearer … on all of them. Missing, invalid or expired token → 401.
What is not optional
PKCE is mandatory for all clients.
The token travels in Authorization: Bearer on every request, never in the URL.
Missing, invalid or expired token: 401.
Authorization endpoints served over HTTPS; redirect_uri must be localhost or HTTPS.
The design flaw the next revision fixes
Assuming that the MCP server is also the authorization server, with its metadata at the server's root, fits badly with external identity providers. In 2025-06-18 the MCP server instead declares which authorization server it uses (see lesson 4.6).
Summary
OAuth 2.1 + PKCE, with RFC 8414 and RFC 7591 as aids.
MCP server = authorization server (usually), metadata at the root, default paths as a fallback.
Delegation to third parties, with the MCP server issuing its own bound token.
quiz · 3 questions
1. In 2025-03-26, the MCP server is at https://api.example.com/v1/mcp. Where does the client look for the metadata?
In this revision the client drops the path and goes to the root of the MCP server's URL.
2. Which design flaw of 2025-03-26 does the next revision fix?
In 2025-06-18 the MCP server declares which authorization server issues its tokens, through Protected Resource Metadata.
3. In 2025-03-26, what is the level of Dynamic Client Registration?
OAuth 2.1 is mandatory, Authorization Server Metadata is mandatory for the client and recommended for the server, and dynamic registration is recommended.