Skip to main content

MCP Authorization

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

The Model Context Protocol (MCP) gives AI assistants and agents a standard way to call tools and read data through MCP servers. An MCP deployment has three parties: an MCP host or client that a user or agent interacts with, an MCP server that exposes tools and resources, and an authorization server that decides who may call which tool.

Why MCP Tools Need Authorization​

An MCP server's tools are not always low-risk. They can read files, query databases, send email, or modify infrastructure. Without access control, every client that can reach the server can invoke every tool it exposes, with no boundary between a low-risk read and a destructive write.

note

Everything on this page applies to an MCP server reached over HTTP. An MCP server launched locally over stdio is outside the MCP authorization specification; its client takes credentials from the environment instead of running an OAuth flow.

How the MCP Authorization Specification Solves It​

The MCP Authorization specification treats an MCP server as an OAuth 2.1 resource server and separates it from the authorization server that issues tokens.

A client that connects without a token gets a 401 response carrying a WWW-Authenticate header. That header points at RFC 9728 protected-resource metadata, a document the MCP server publishes that names its authorization server. The client resolves that authorization server's own metadata through RFC 8414 discovery, which lists the authorization, token, and JWKS endpoints.

The client then runs one of two OAuth flows, depending on who it acts for:

  • Authorization Code with PKCE, when a signed-in user delegates access to the client.
  • Client Credentials, when the client authenticates on its own behalf, with no user involved.

The token the client gets back is bound to the specific MCP server it requested, through an audience or resource identifier. That binding stops a token issued for one MCP server from being replayed against another, even when both trust the same authorization server.

The MCP server enforces this at the tool boundary: it checks the token's scope before a tool handler runs, not after, so a caller without the right scope never reaches the tool's side effects.

How Choreo Identity & Access Management Fits​

Choreo Identity & Access Management plays two roles in an MCP deployment.

Authorization Server for Your MCP Servers​

You register your MCP server as a resource server and define one permission per tool. Choreo Identity & Access Management issues access tokens scoped to only the permissions the signed-in user or client actually holds, and your MCP server's tools validate those scopes before they run.

Identity Home for MCP Clients​

Every MCP client needs OAuth credentials from Choreo Identity & Access Management before it can request a token, whether it is an AI assistant, an autonomous agent, or a debugging tool such as MCP Inspector. You register the client from its metadata document, configure it manually in the Console, or let it register itself the first time it connects, through Dynamic Client Registration.

What Choreo Identity & Access Management Provides​

CapabilityWhat It Gives You
MCP Client application typeRegister a client as user-delegated (Authorization Code with PKCE) or machine-to-machine (Client Credentials).
Resource server registrationRegister your MCP server and turn each tool into a permission. The permission's handle becomes the scope tools validate.
ConsentShow a consent screen so a user approves the scopes a client requests on their behalf.
Enterprise-Managed AuthorizationAccept or issue Identity Assertion Authorization Grants (ID-JAG) so an enterprise identity provider centralizes MCP access decisions.

Enterprise-Managed Authorization​

Enterprises that already centralize access decisions in an identity provider can extend that model to MCP through the Identity Assertion Authorization Grant (ID-JAG). Choreo Identity & Access Management can accept ID-JAGs issued by an external identity provider, or issue them itself as the enterprise identity provider for a downstream MCP authorization server. See Enterprise-Managed Authorization for the pattern, and Identity Assertion Authorization Grant (ID-JAG) for the protocol reference.

Was this page helpful?