Artificial Intelligence

5 MCP Authorization Controls for Tool-Calling Servers

Rows of illuminated server racks inside a data center room
Brett Sayles

MCP authorization is the layer that decides which tokens can call which tools on your Model Context Protocol servers, and the specification hands you five levers: audience-bound access tokens, resource indicators, least-privilege scopes, per-client consent, and audit logging. Miss one and a single leaked token becomes a path into every API the server proxies.

Under the hood, a protected MCP server acts as an OAuth 2.1 resource server that validates every bearer token, while the authorization server behind it must implement OAuth 2.1 with security measures for both confidential and public clients. That framing matters: your server is not a passive pipe between a model and a database. It is the enforcement point, and the specification makes its duties explicit.

Why MCP Servers Widen Token Risk

An MCP server is rarely a leaf. It connects a model to third-party APIs, internal databases, and file systems, and it often does so as an OAuth client in its own right. Two structural risks follow. The first is the confused deputy problem: a proxy server that uses a static client ID against an upstream authorization server can be tricked into skipping consent, so an attacker obtains tokens for the upstream API without the user’s explicit approval. The second is server-side request forgery during metadata discovery, where a malicious server points metadata or authorization-server URLs at internal addresses, including cloud metadata endpoints that expose IAM credentials.

Both risks grow with every server you attach to a host. Take a coding agent with six connected servers: it has six token paths into your estate, and each path is only as narrow as the audience and scopes you assigned to it.

Five Controls That Contain Access

The controls below are not a maturity model to adopt gradually. They are the baseline the specification describes for HTTP-based deployments, and each one closes a distinct failure mode.

ControlFailure it preventsWhat the specification says
Audience-bound tokensReusing a token minted for a different serviceServers validate that tokens were issued specifically for them as the intended audience
Resource indicatorsToken redirect to another resource serverClients send a resource parameter naming the server the token is for
Least-privilege scopesLateral access from a stolen broad tokenMinimal initial scope, elevation only when a privileged operation is attempted
Per-client consentConfused deputy that skips user approvalProxy servers check an approved-client registry before forwarding
Audit loggingTool calls that cannot be traced to a client or grantElevation events logged with correlation IDs

Audience Binding Beats Passthrough

Token passthrough is the anti-pattern to eliminate first. It happens when a server accepts a client’s token without checking that it was issued to that server, then forwards the same token to a downstream API. The specification is blunt about the fix: MCP servers must not accept tokens that were not explicitly issued for them, and a server that calls upstream APIs must obtain a separate token from the upstream authorization server rather than replaying the client’s credential. The current specification keeps token audience binding and validation under its normative security requirements, so this is not legacy guidance.

The reason is accountability as much as access control. When a downstream log shows requests from an identity the MCP server cannot distinguish, incident investigation stalls, and rate limits or monitoring keyed to the token audience stop working. Operationally, audience binding means one token audience per MCP server URL. A token issued for one server must fail at another, and your server must answer invalid or expired tokens with HTTP 401 and insufficient scopes with HTTP 403.

Resource Indicators Pin the Target

Audience binding needs a signal, and the resource parameter is that signal. The specification requires MCP clients to implement Resource Indicators for OAuth 2.0 as defined in RFC 8707, sending a resource parameter in both authorization and token requests that names the MCP server the token is for. RFC 8707 explains the payoff: once the authorization server knows which resource will process the token, it can restrict the token’s audience so the token cannot be used successfully at other resources.

For a platform team running several MCP servers behind one authorization server, this is the difference between a token that opens one door and a token that opens the building. Treat the canonical server URI as part of your deployment contract: a path change is an audience change, and it should force a new token rather than a silent acceptance of the old one.

Scopes Map to Tool Grants

Scopes are where authorization design meets product design. The specification’s scope minimization guidance calls for a progressive, least-privilege model: start with a minimal initial scope set that covers only low-risk discovery and read operations, then elevate incrementally through targeted scope challenges when a privileged operation is first attempted. The documented mistakes are worth pinning to a wall: publishing every possible scope in the advertised scope list, using wildcard or omnibus scopes, and treating the scopes claimed in a token as sufficient without server-side authorization logic.

Map each scope to a tool family, not to a user persona. A read-only analytics client gets a basic tools scope; a client that writes to a billing system earns a separate, narrowly named grant that you can revoke without re-consenting the whole surface. Scope names are part of your API contract, so version them and never change their meaning silently.

Consent and Audit Close the Loop

Consent is the control most teams skip because it looks like a UX problem. For proxy servers that talk to third-party APIs with a static client ID, the specification requires per-client consent before the third-party authorization flow: a registry of approved client IDs per user, checked before forwarding, with consent decisions stored server-side and bound to the specific client ID rather than a blanket user-has-consented flag. Redirect URIs must match the registered value by exact string comparison, and the OAuth state parameter must be single-use with a short expiration.

Audit is the other half. Without a record of which client called which tool under which grant, you cannot reconstruct an incident. Log every tool invocation with client identity, granted scopes, and a correlation ID, and alert on scope elevation events, because an unexpected elevation is the earliest signal that a token or a client has been compromised.

Rollout Checklist

  1. Inventory every MCP server URL and assign one token audience per URL; reject any token whose audience does not match.
  2. Require the resource parameter on every authorization and token request; refuse to issue tokens without it.
  3. Replace passthrough with server-to-server tokens: the MCP server authenticates to upstream APIs as its own OAuth client.
  4. Ship a minimal initial scope and add elevation challenges per privileged tool family.
  5. For proxies with static client IDs, store per-client consent server-side and validate redirect URIs by exact string match.
  6. Record every tool call with client ID, granted scopes, and a correlation ID; alert on elevation.

Two related guides on this site cover the adjacent layers: our walkthrough of LLM gateway routing decisions explains how traffic reaches these servers across providers, and our guide to gated model deployments shows how to put changes behind a release gate. Authorization design belongs in the same release unit: a new scope or a new upstream API is a deployment, not a config tweak.

Method and limits: this analysis draws on the MCP authorization specification, its security best practices guide, and RFC 8707, all consulted on 28 November 2026. It covers HTTP-based transports; STDIO deployments retrieve credentials from the environment and follow a different path.

Sources

Keep exploring