An AI agent connected to an enterprise application may need permission to read customer records, create tickets, or update business data. The agent does not necessarily connect to those applications directly. It may communicate through an MCP server, which exposes tools the agent can use to interact with external systems.
That creates an important security question: when the MCP server receives a credential from the agent, is that credential meant for the MCP server, or for the external application the server can access?
These are not interchangeable.
The distinction matters because a credential can be genuine, unexpired, and issued by a trusted identity provider, yet still be inappropriate for the service receiving it. MCP's authorization specification explicitly addresses this problem. Understanding why requires looking at how access tokens work and what happens when one service forwards a credential it was never meant to receive.
1. What does an access token actually authorize?
OAuth is a standard that allows one application to obtain limited access to another service without handling the user's password directly.
For example, imagine an employee uses an AI assistant to work with a company's CRM system. The assistant needs permission to retrieve customer records. The CRM's authorization system can issue an access token that allows the permitted operations.
An access token is a credential presented to a service when making a request. A service checks the token to determine whether the request is authorized. In a common arrangement, the token is a bearer token: whoever possesses it can use it, subject to the restrictions enforced by the receiving service.
But a token is not simply a universal pass issued by a trusted identity provider. It is intended for a particular service and a particular set of permissions. Two details matter:
- Audience: Which service is allowed to accept the token.
- Scope: What operations the token permits at that service.
Consider a token issued for a CRM API with permission to read customer records. Its audience is the CRM API. Its scope describes the permitted access, such as reading customer records. That does not automatically make it valid for an MCP server, an email service, or another API.
The distinction is similar to a building access card. A card may be genuine and authorize entry to the finance department, but that does not mean the reception desk, server room, and finance department should all accept it for the same purpose.
The IETF's RFC 8707, Resource Indicators for OAuth 2.0, formalizes this separation. The intended resource identifies where a token should be used; the scope describes the access being requested there.
2. How can an MCP server receive the wrong token?
Consider a company with three systems:
- An AI assistant that requests actions.
- An MCP server that exposes tools to the assistant.
- A CRM API that stores customer records.
The assistant needs to call a tool exposed by the MCP server. Separately, the MCP server needs to communicate with the CRM API to retrieve the requested records.
In an OAuth-based HTTP setup, the assistant should present an access token issued specifically for the MCP server. The MCP server validates that token before processing the request. The CRM connection requires its own authorization. The MCP server must obtain a credential intended for the CRM API before calling it.
The problem arises when these credentials are mixed up.
Imagine the assistant already possesses a CRM access token. This could happen because it has another authorized integration with the CRM, or because the client has incorrectly configured which credential to send. It then sends that CRM token to the MCP server.
A correctly implemented MCP server should reject it. The token was issued for the CRM, not for the MCP server. But suppose the MCP server checks only that the token was issued by a trusted identity provider and has not expired. It does not check the intended audience. It may then accept a credential that was never meant to authorize access to the MCP server.
If the server subsequently forwards that same token to the CRM, it has performed token passthrough: accepting a token from the client and passing it unchanged to another service.
This is not a hypothetical requirement that every tool automatically accepts every token. It describes a specific implementation failure:
The MCP server does not enforce its own token boundary and reuses the client's credential instead of obtaining the appropriate downstream authorization.
The MCP authorization specification explicitly prohibits MCP servers from accepting or forwarding tokens that were not issued for their own use.
3. Why is forwarding the token a security problem?
The immediate problem is that the MCP server is acting with a credential that belongs to a
different authorization relationship.
The CRM token was issued to authorize access to the CRM. It was not issued to authorize the MCP server to act as an intermediary. By accepting and forwarding it, the MCP server bypasses the separation between the assistant-to-MCP connection and the MCP-to-CRM connection. This creates several risks.
- The MCP server can become a confused deputy. A confused deputy is a service that has access to resources and is tricked into using that access in a way the resource owner did not intend. In this case, the MCP server may be induced to use a credential or its own downstream access to perform an operation outside the intended authorization boundary.
- The wrong service may receive a credential. If a server forwards a token to an endpoint other than the resource for which it was issued, that endpoint should reject it if it validates the audience correctly. But the credential has still been disclosed to a service that was not meant to receive it. If that service has weak validation, the consequences can be worse.
- The action becomes harder to attribute. If the downstream application sees a user's token, it may record the request as an action performed under that user's identity. That does not necessarily tell the organization whether the user acted directly, an AI assistant initiated the request, or an MCP server forwarded the credential. Authorization and audit records need to preserve the distinction between the initiating user, the intermediary, and the service that actually executed the operation.
This is why token passthrough is not merely a token-storage problem. It is a question of which system is authorized to act, on whose behalf, and with which credential.
It is also different from prompt injection. Prompt injection can manipulate an agent into requesting an unintended action. Token passthrough is a failure in how services validate and handle credentials. Both can contribute to an incident, but solving one does not solve the other.
4. What should the correct authorization flow look like?
The safer design separates the two connections.
- Connection one: AI assistant to MCP server. The assistant presents a token intended for the MCP server. The server validates its issuer, signature or introspection result, expiration, audience, and applicable permissions before processing the request.
- Connection two: MCP server to CRM API. The MCP server obtains a separate credential intended for the CRM API. The CRM validates that credential and its permissions before performing the requested operation.
The credentials serve different purposes and should not be interchangeable.
One possible way to obtain the downstream credential is through OAuth Token Exchange, defined in RFC 8693. A service presents an existing token to an authorization server and requests a different token for a target service. The authorization server applies its policies before issuing the new credential.
Token exchange is one implementation option, not a universal requirement. An MCP server may instead use a separately configured service credential or another supported authorization mechanism. What matters is that the credential presented to the downstream API is authorized for that API, rather than blindly reusing the token received from the MCP client.
The MCP security guidance makes this separation explicit: when an MCP server calls an upstream API, it acts as an OAuth client and uses a separate token issued for that upstream API. It must not pass through the token received from the MCP client. See the MCP security best practices.
5. What should an enterprise check before connecting an MCP server?
A security review should go beyond asking whether the integration uses OAuth or whether the connection succeeds. A working connection does not establish that the authorization boundary is correct. Ask the engineering team:
- Which credential does the AI client send to the MCP server? Identify who issues it and which service it is intended for.
- Does the MCP server validate the token's audience? Checking that a token is genuine and unexpired is not enough.
- Does the MCP server forward the incoming token? Trace the actual outbound request to the connected application. Do not rely only on configuration descriptions.
- How does the server obtain downstream credentials? Identify whether it uses a separate service credential, token exchange, or another authorization mechanism.
- Can the downstream application identify the actual execution identity? Confirm that logs distinguish the user, the intermediary service, and the identity used to execute the operation.
- What happens when a token is presented to the wrong service? Test that the request is rejected rather than silently accepted.
There is also a transport distinction worth noting. The OAuth authorization requirements discussed here apply to MCP's HTTP-based authorization model. MCP integrations using STDIO transport may use different credential arrangements, so they need to be assessed according to how those credentials are supplied, stored, and used.
6. The larger lesson: a connection is not an authorization design
MCP makes it easier for AI applications to interact with enterprise systems. But every connection introduces questions about identity, permission, delegation, and accountability.
An organization should be able to explain which identity initiated an action, which service authorized it, which credential was used, and which application actually executed it. If those answers are blurred across an agent, an MCP server, and a connected API, the organization may have a functioning integration without a defensible authorization model.
This is also why restricting an integration's capabilities matters. For example, KlaritiQ's MCP server uses an initiative-scoped pipeline key that limits the operations and component types available to a connected coding agent. The key does not authorize initiative sign-off or access to evidence, decisions, or personal details. This is an example of limiting what a credential can do, not a claim that scoped keys eliminate every MCP security risk.
The principle is straightforward:
Authenticate each connection for the service it is reaching, authorize only the operations it needs, and do not reuse credentials across service boundaries simply because they are valid.
A successful MCP connection tells you that two systems can communicate. It does not tell you whether they are communicating under the right authority.
7. Frequently Asked Questions
1. Who is the bearer of an access token?
The bearer is whoever possesses and presents the token when making a request. It could be the AI agent or MCP client, not necessarily the human employee. The identity provider issues the token, but the bearer uses it to access the intended service. For example, an employee authorizes an AI assistant. The assistant receives an access token and presents it to the MCP server. In this case, the AI assistant is the bearer.
2. What is an authorization relationship?
An authorization relationship defines which identity can access which service and what it is allowed to do there. For example, an AI assistant may be allowed to use specific tools on an MCP server, while the MCP server may be allowed to read specific customer records from a CRM. Each connection needs its own authorization. The MCP server must reject credentials that were not issued for it rather than accepting or forwarding them simply because they are valid.
3. What is the difference between HTTP and STDIO transport in MCP?
HTTP transport connects the MCP client and server over a network and can use OAuth-based authorization. STDIO transport connects them through local input/output streams, with credentials typically managed by the local environment rather than through MCP's HTTP authorization process.