What is Model Context Protocol (MCP) authorisation?
MCP authorisation is the flow by which MCP clients connecting to a server over the network obtain user consent, use an access token specific to that server and are limited by scope to particular tools and resources.
It differs from MCP security in scope: MCP security covers the whole attack surface, while authorisation is its identity and access control part. It is not just login verification; it limits access at tool level through token scope and server policy (delegated agent authorisation).
- Topic
- AI security
- Also known as
- MCP authorization, MCP auth
How Model Context Protocol (MCP) authorisation works
- A client connecting over the network discovers the authorisation server the MCP server relies on; the flow is OAuth based.
- The authorisation server authenticates the user, gets consent for the requested scope and issues an access token valid only for that MCP server.
- The MCP server verifies the token was issued for it and rejects tokens obtained for other services.
- The server reaches backend systems with its own separate credentials and does not forward the token (token passthrough).
In more detail
OAuth 2.1, mandatory PKCE and protected resource metadata (RFC 9728)
MCP authorisation relies on OAuth 2.1 with mandatory PKCE (Proof Key for Code Exchange) to protect public and native desktop/CLI clients against authorisation code interception. Servers must advertise their authorisation server via OAuth 2.0 Protected Resource Metadata (RFC 9728) at a well-known endpoint.
Dynamic client registration (DCR) and client ID metadata documents (CIMD)
Because MCP clients (such as IDE extensions or desktop assistants) often connect dynamically to previously unknown MCP servers, traditional pre-registered static client IDs do not scale. MCP supports Dynamic Client Registration (RFC 7591) and Client ID Metadata Documents (CIMD), which enterprise identity providers should carefully govern to prevent rogue client registration.
Confused deputy risk and per-client user consent
When an MCP server acts as an OAuth proxy or uses a static client ID to call third-party APIs on behalf of multiple users, it becomes vulnerable to 'confused deputy' attacks, where a crafted consent URL tricks a victim user into granting an attacker access via an already-approved cookie/session. Strict per-client consent binding and CSRF state checks are mandatory mitigations.
Commonly confused terms
| Term | How it differs |
|---|---|
| Authentication versus authorisation | Authentication verifies who the user or client is (identity), whereas MCP authorisation governs what specific tools and resources on a target MCP server a client is permitted to access on the user's behalf via scoped, audience-bound tokens. |
| MCP token passthrough | Token passthrough forwards the client's MCP access token blindly to downstream APIs (explicitly forbidden by the MCP spec), whereas OAuth 2.0 Token Exchange (RFC 8693) exchanges the incoming token for a new, downscoped downstream token specific to the backend resource. |
| MCP security | MCP authorisation covers the OAuth 2.1 identity and access-control flow for network transports, whereas MCP security encompasses the full threat model including prompt injection, tool poisoning, transport isolation and local stdio sandboxing. |
Why Model Context Protocol (MCP) authorisation matters for on-premises AI
In-house agents' access to enterprise systems should follow least privilege; MCP authorisation enforces this at protocol level. Server-specific tokens stop rights granted to one server being used elsewhere. In-house, the authorisation server connects to the existing identity system, so user and group rights come from one source. Servers running as local processes get rights from host settings, also kept minimal.
A telecoms operator connects bill lookup and line cancellation tools to its customer service assistant over MCP; line cancellation can only be called with tokens carrying the authorised scope.
Common questions
Does MCP authorisation only verify user login?
No. It also checks which server and scope a token was issued for; access is limited at tool and resource level.
Why is token passthrough risky in MCP?
If a server forwards the token it received to backend systems, permission boundaries and audit traceability break. Each connection should be authorised with its own token.
Related terms
- Model Context Protocol (MCP) server
- Model Context Protocol (MCP) client
- Delegated agent authorisation
- Model Context Protocol (MCP) security
- Model Context Protocol (MCP) token passthrough
- Model Context Protocol (MCP)
- Model Context Protocol (MCP) gateway
Sources
- Model Context Protocol specification, Authorization
- RFC 8707, Resource Indicators for OAuth 2.0
- RFC 9700, Best Current Practice for OAuth 2.0 Security
Related page on this site: Related FAQ · In the glossary: Glossary, M to Q