Auth0Andrea ChiarelliTutorial
Registering MCP Clients with CIMD in Auth0
Summary
Auth0 supports MCP client registration via Client ID Metadata Documents (CIMD), an alternative to Dynamic Client Registration. CIMD requires the client to publish a JSON document at a URL that serves as its client_id, which the authorization server fetches during the first authorization request. The document must include client_id, client_name, and redirect_uris, and must never contain a client_secret. Auth0 validates the document by ensuring the client_id matches the fetch URL and that the redirect_uri in the request appears in the document. Registration is triggered by the authorization request itself, with no prior call to a registration endpoint. Auth0 offers both dynamic registration, where clients register automatically, and manual pre-registration for admin-vetted clients.
Context
MCP clients need to register with an authorization server like Auth0 when there is no pre-existing relationship. Dynamic Client Registration (DCR) requires an open /register endpoint and creates persistent client records that must be secured and cleaned up. CIMD inverts this by having the client publish its metadata at a URL it controls, which becomes the client_id. The authorization server fetches the document at runtime, eliminating the need for a registration endpoint and reducing server-side storage. CIMD is now the preferred registration path in the MCP authorization spec, with DCR as a fallback.
Approach / What changed
Publish a CIMD JSON document at a URL that serves as the client_id. Auth0 fetches that URL during the first authorization request, validates the document, and registers the client dynamically without a prior registration endpoint call. The client then uses the standard authorization code flow with PKCE and private_key_jwt authentication.
Takeaways
CIMD replaces Dynamic Client Registration by having the client publish its metadata at a URL that becomes the client_id; the authorization server fetches the document at runtime instead of storing a client record.
A CIMD document must never include a client_secret or shared-secret authentication method; authentication must use private_key_jwt or none for public clients.
Auth0 supports two CIMD registration modes: dynamic (automatic on first authorization) and manual (admin imports and approves changes), and a client cannot switch between modes once registered.
FAQ
How does CIMD prove a client's identity without a shared secret?
CIMD uses the client_id URL itself as proof of identity. The authorization server fetches the document from that URL and validates that the document's client_id matches the URL it was fetched from. This prevents one client from borrowing another client's metadata. The trust model relies on DNS and TLS at request time rather than a stored client record.
What fields are required and forbidden in a CIMD document?
A CIMD document must include client_id, client_name, and redirect_uris. It can also include grant_types, token_endpoint_auth_method, and jwks_uri. It must never include client_secret or shared-secret authentication methods like client_secret_post or client_secret_basic. Authentication must use private_key_jwt or none for public clients.
What is the difference between dynamic and manual CIMD registration?
In dynamic registration, the client registers itself on its first OAuth request and metadata is refreshed automatically. In manual registration, a tenant admin imports the app from its CIMD URL, metadata is refreshed manually, and admin must approve changes before they apply. Manual registration is best for vetted clients; dynamic registration suits high-volume or ephemeral clients like AI agents.
Source and freshness
- Source
- auth0.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.