How Can MCP OAuth Clients Skip Pre-Registration — From DCR to CIMD The MCP project has stopped recommending Dynamic Client Registration (DCR, RFC 7591) and now points implementers toward Client ID Metadata Documents (CIMD), which publish client metadata JSON at a stable HTTPS URL and use that URL as the client_id so authorization servers can fetch and validate it without pre-registration. The guidance sits on an OAuth 2.1 baseline with PKCE, still not formally finalized at the time of writing, plus Protected Resource Metadata (PRM) for resource servers and Authorization Server Metadata (ASM) for authorization servers. DCR's two pain points drove the shift, and most MCP clients are public clients using PKCE that need no client_secret. As I mentioned in my previous article, I shared how an MCP service can support the OAuth extension Protected Resource Metadata PRM . That piece was only one slice of MCP OAuth. The official guidance stacks several more requirements on top — and today we will unpack the rest of the story, with a focus on the client side. According to MCP’s recommendations, authorization is built from these building blocks: OAuth 2.1 is the evolution of OAuth 2.0: it keeps the core flows but bakes in modern hardening by default — for example PKCE. It predates the GenAI wave; traditional apps simply needed stronger, safer OAuth as scenarios grew more complex. At the time of writing, OAuth 2.1 is still not formally finalized. MCP then asks you to layer more extensions on top of that OAuth 2.1 baseline. As we discussed before, PRM helps clients discover resource-side authorization metadata. ASM is the mirror image for the authorization server: a public metadata document so clients can learn endpoints, supported grants, and capabilities without hard-coding them. Both PRM and ASM are part of the broader OAuth discovery story. The goal is the same: let the client discover everything it needs to start an authorization flow. But that is only half of the picture. Do not forget the four classic OAuth roles: the user, the authorization server, the resource server, and the client. ASM and PRM strengthen discovery for the authorization server and the resource server. The client still needs its own answer: in agent-heavy MCP setups, you cannot always pre-register every client up front — so dynamic registration becomes the missing puzzle piece. Let us compare the two approaches MCP offers. For dynamic client registration, MCP defines two options: Dynamic Client Registration Protocol DCR or Client ID Metadata Documents CIMD . DCR DCR is a mature extension defined in RFC 7591. The authorization server exposes a register endpoint. The client sends a POST with the same metadata you would have submitted during manual registration—for example: POST /register HTTP/1.1Host: auth.example.comContent-Type: application/json{ "client name": "My MCP Client", "redirect uris": "https://client.example.com/callback" , "grant types": "authorization code" , "response types": "code" } The server validates the payload, persists the client, and returns identifiers — often including a client id: HTTP/1.1 201 CreatedContent-Type: application/json{ "client id": "s6BhdRkqt3", "client secret": "cf136dc3c1fc93f31185e5885805d", "client id issued at": 1748534400, "client secret expires at": 0, "registration access token": "reg-23410913-abewfq.123483", "registration client uri": "https://auth.example.com/register/s6BhdRkqt3", "redirect uris": "https://client.example.com/callback" , "grant types": "authorization code" , "response types": "code" } Note that a client secret only shows up for confidential clients that can store secrets safely. Most MCP clients are public clients using PKCE, so they typically do not need a secret at all. DCR was the first recommended dynamic-registration path in the MCP authorization world — but it comes with two pain points: Because of that, the MCP project no longer prefers DCR and points implementers toward CIMD instead. Smart design, right? CIMD CIMD takes a clever turn: publish the same client metadata JSON at a stable HTTPS URL, and use that URL as the client id. The rest of the OAuth flow stays familiar. For example: { "client id": "https://app.example.com/oauth/client-metadata.json", "client name": "Example MCP Client", "client uri": "https://app.example.com", "redirect uris": "https://app.example.com/callback" , "grant types": "authorization code" , "response types": "code" , "token endpoint auth method": "none"} When the authorization server sees a client id that is an HTTPS URL—not an opaque string—it fetches the document from that URL and continues validation from there. That cuts down registry churn on the authorization server, but the bigger win is security. Trust comes from HTTPS and control of that URL. When the AS pulls client metadata, it always knows which domain served the document. The domain becomes a foundation for risk and trust decisions — something DCR struggles to replicate at scale: Next step, let us see this in a hands-on demo. This demo relies on three main pieces: Azure API Gateway configuration We created a gateway at https://mcp-cimd-test.azure-api.net: https://mcp-cimd-test.azure-api.net: On that gateway we defined /mcpcimd/cimd with an inbound return-response policy so GET requests return client metadata. The client id field must exactly match this URL path.