A protected MCP server needs an access token intended for that server. If it calls a third-party API, it uses a separate credential for that API. A workflow ID returned by a tool identifies stored work; possession of that ID cannot authenticate whoever presents it.

Those three pieces can appear in the same integration, but each serves a different purpose. Confusing them can mean accepting a token meant for another service or letting someone access another user’s workflow.

MCP, the Model Context Protocol, connects AI applications to tools and data. This explainer follows its 2026-07-28 revision, identified as current in the official versioning documentation when checked on 18 November 2026. The example below is illustrative and untested, built from the specification rather than a product assessment.

Where this HTTP authorization flow applies

Authorization is optional overall in MCP. When authorization is supported, implementations using HTTP-based transports SHOULD follow the authorization specification. Implementations using standard input/output, or stdio, SHOULD NOT follow that flow and should retrieve credentials from the environment instead.

The rest of this article concerns a protected remote HTTP server. In OAuth terminology, that MCP server is a resource server: it receives access tokens and decides whether a request can proceed. Its authorization server issues those tokens and can be hosted alongside it or separately. A token intended for the MCP server does not have to be minted by the MCP server itself.

Issuer, audience, resource and scope answer different questions

Four terms help explain what a token means:

Term What it tells you
Issuer Which authorization server issued the token.
Audience Which recipient or recipients the token is intended for.
Resource The target service the client identifies when requesting a token.
Scope The access being requested or granted, such as permission to read files.

The distinction between resource and scope is especially useful. RFC 8707 explains how a client identifies where it intends to use a token through the resource parameter. Scope describes what access it wants there.

For MCP, the client MUST include resource in both authorization requests and token requests, identifying the intended MCP server by its canonical URI. An illustrative value is:

resource=https://mcp.example.com/mcp

An illustrative scope might be files:read. That string alone authorizes nothing. The authorization server decides what permissions to grant, and the MCP server still validates the token and applies the permissions and policy relevant to the operation.

The resource URI also need not appear as an identical string in every token’s audience representation. RFC 8707 allows the authorization server to map it to a more general URI or an abstract identifier. Nor does MCP require every access token to be a JWT with a readable aud field. What matters is that the server verifies it is an intended recipient.

Follow two credentials through one file-reading request

Imagine an AI application’s MCP client asks a remote MCP server to read a user’s files from a third-party file service. All names, URLs and scope strings here are examples.

MCP client  -- credential A -->  MCP server  -- credential B -->  File API

1. The client obtains credential A for the MCP server. It uses the MCP-facing authorization server, identifying https://mcp.example.com/mcp as the resource and requesting an appropriate scope, such as files:read. The actual grant depends on that authorization server’s policy.

2. The client sends A with each protected HTTP request. The access-token rules require the Authorization header:

Authorization: Bearer CREDENTIAL_A

Authorization MUST accompany every HTTP request from client to server in this flow. Access tokens MUST NOT go in the URI query string. Before processing the request, the MCP server validates A, including its intended recipient, and checks the permissions needed for the requested operation.

3. The MCP server uses credential B at the file API. At this boundary, the MCP server acts as a client of the upstream service. B is a separate token issued by the upstream authorization server for use at that API. The issuers and permission vocabularies can differ; the credentials remain separate even if some authorization infrastructure is shared.

The MCP security requirements explicitly say the MCP server MUST NOT pass through the token it received from the MCP client to the upstream API.

Now reverse the mistake: suppose the client sends B to the MCP server, although B is intended only for https://files.example.com. The MCP server must reject it because it is not a valid token for that MCP resource. The specification requires HTTP 401 for an invalid or expired access token. Even if B carries a scope called files:read, the matching text does not fix the wrong audience.

This is the expected behavior under the specification, not a reported test result. Audience validation and operation permissions are separate checks.

A workflow handle identifies state, not its owner

A multi-step tool might create a file-processing workflow and return a handle: an identifier the client supplies in later calls so the server can find that stored workflow.

In the current revision, such a handle is an ordinary tool argument. MCP has no protocol-level sessions. The state-handle security guidance distinguishes mandatory requirements from recommendations:

  • Servers implementing authorization MUST verify all inbound requests.
  • Servers MUST NOT treat possession of a state handle as authentication.
  • Servers SHOULD generate secure, unpredictable handles using secure random number generators.
  • Servers SHOULD bind handles server-side to the authenticated user and reject a handle presented by another principal.

In our example, the client sends A again when it asks for workflow progress. The server verifies the request, then checks that the authenticated caller owns the workflow identified by the argument. Following the recommended binding, it derives the user’s identity from the verified token rather than trusting a user ID supplied by the client.

An unpredictable handle makes guessing harder. The ownership check addresses a different problem: someone may obtain a real handle through a leak. The handle still cannot stand in for authentication.

If you are reading older integration material, check the protocol version. The 2026-07-28 changelog removes protocol sessions and the Mcp-Session-Id header. For 2025-11-25 and earlier, the historical session guidance likewise says servers must not use sessions for authentication. Implementations supporting those revisions need to handle their version-specific behavior.

Consent is the user’s approval for a client to receive particular access. A separate consent problem can arise when an MCP proxy connects downstream clients to a third-party service.

The official confused-deputy example describes four conditions together:

  1. The proxy uses a static client ID with the third-party authorization server.
  2. Downstream MCP clients register dynamically with the proxy.
  3. The third party sets a consent cookie after the user’s first authorization.
  4. The proxy forwards authorization requests without proper consent for each downstream client.

In that setup, a third party’s remembered approval for the proxy can bypass the approval needed for a newly arriving downstream client. The proxy is the deputy: another client can exploit its position to obtain access the user has not approved for that client.

The security specification therefore requires these proxies to obtain user consent for each dynamically registered client before forwarding to the third-party authorization server. The third party may require additional consent. The proxy’s consent interface should identify the requesting client and requested third-party access.

This is compatibility context. The current revision deprecates Dynamic Client Registration in favor of Client ID Metadata Documents, while retaining it for backwards compatibility. The scenario does not establish that every proxy is vulnerable or that every two-token integration needs dynamic registration.

What to check in a proposed integration

Ask which authorization server issues the MCP-facing token, how the MCP server verifies the intended audience, and which granted permissions allow the requested operation. Then trace the upstream call: identify its separate credential and confirm the inbound token is not forwarded.

For tools that return workflow or cart handles, inspect the later request too. It should still carry authorization, with stored-state ownership checked against the authenticated caller. If an integration relies on Mcp-Session-Id, establish which older protocol revision it supports before applying current guidance.

These are questions to verify against an implementation. Documentation alone does not establish product compliance, and authorization checks do not establish protection against prompt injection or the safety of every permitted tool action.