part 3The satellite RFCs MCP relies on·lesson 3.1 of 8·2 min read
Client identity: the client_id and how to get one
OAuth requires the authorization server to know the client before the flow starts, but an MCP client often connects to servers it has never seen. This lesson explains why a client_id is needed, the four ways an MCP client can obtain one and their order of preference, and how the authorization server advertises which ones it supports.
In this lesson
Explain why a client_id is needed.
List the four ways to obtain one in MCP and their order of preference.
Recognize how the authorization server advertises which ones it supports.
Why client identity matters
When the authorization server shows "Example Desktop App wants to access your files", it needs to know who Example Desktop App is and, above all, which redirect_uri values it may send codes to. If anyone could say "I am Example Desktop App, send the code to evil.com", security would be over. The client_id is the key the authorization server uses to look up that information.
The four ways
Order (2025-11-25)
Option
How it works
When
The AS advertises it with…
1
Pre-registration
The client_id is already in the client: hard-coded or entered by the user
Client and server already have a relationship
—
2
Client ID Metadata Document
The client_id is an HTTPS URL pointing to a JSON document that the AS reads
No prior relationship: the most common case
client_id_metadata_document_supported
3
Dynamic Client Registration
POST /register and the AS returns a client_id
Compatibility with earlier revisions
registration_endpoint
4
Ask the user
The user registers the app manually and types in the details
No other option
—
Client ID Metadata Documents are covered in lesson 3.6 and Dynamic Client Registration (RFC 7591) in lesson 3.5.
How the options evolved
Revision
Options
2025-03-26
Dynamic registration (recommended), hard-coded client_id, client_id entered by the user
2025-06-18
The same three; registration now happens at the authorization server
2025-11-25
Order 1→4; the client metadata document becomes the recommended option; dynamic registration becomes optional
2026-07-28
Pre-registration and the client metadata document remain; dynamic registration is deprecated
The trend is clear: from dynamic registration towards identifying the client by a URL.
Put these in the order of preference of the 2025-11-25 spec, for a client that supports every option.
Pre-registration
Client ID Metadata Document
Dynamic Client Registration
Ask the user
Summary
The client_id lets the AS know who the app is and where it may redirect.
Order of preference: pre-registration → client metadata document → dynamic registration → ask the user.
Trend: from dynamic registration to identifying the client by a URL; dynamic registration is deprecated in 2026-07-28.
quiz · 3 questions
1. An MCP client connects for the first time to a server with no prior relationship. The AS metadata contains client_id_metadata_document_supported: true and a registration_endpoint. What does the client use (2025-11-25)?
Without pre-registration, option 2 is next. Dynamic registration is left for authorization servers that do not support metadata documents.
2. Why does the authorization server need to know the client before issuing a code?
The client_id is the key the AS uses to look up the client's name and, crucially, its allowed redirect URIs; without it anyone could impersonate an app and redirect codes elsewhere.
3. What is the status of Dynamic Client Registration in MCP 2026-07-28?
In 2026-07-28 pre-registration and Client ID Metadata Documents remain, while dynamic registration is deprecated and kept for compatibility.