---
title: "Token passthrough in MCP: why servers must not forward client tokens"
type: explainer
url: https://agentsfordevs.com/guides/token-passthrough
markdown: https://agentsfordevs.com/guides/token-passthrough.md
publisher: Agents for Devs
author: Agents for Devs desk
reviewed_by: Agents for Devs desk
published: 2026-12-06
updated: 2026-12-06
license: https://agentsfordevs.com/reuse
citation: 'Agents for Devs. "Token passthrough in MCP: why servers must not forward client tokens." Published Dec 6, 2026. https://agentsfordevs.com/guides/token-passthrough'
attribution: Credit Agents for Devs and link to https://agentsfordevs.com/guides/token-passthrough
format: Explainer
topics:
  - auth
description: Token passthrough is when an MCP server forwards a client's token to a downstream API. Why the MCP spec forbids it and how to call upstream APIs instead.
---

# Token passthrough in MCP: why servers must not forward client tokens

An MCP server that relays the token it received to another API defeats audience checks, rate limits and audit trails. The spec forbids it. Here is the rule and the alternative.

## Short answer

Token passthrough is an anti-pattern in which an MCP server accepts a token without checking that it was issued for that server and forwards it to a downstream API. The MCP specification (revision 2026-07-28) forbids it. MCP servers MUST validate that each token names them as the audience and MUST NOT accept or transit any other tokens. A server that calls an upstream API acts as its own OAuth client and uses a separate token from the upstream authorization server.

**Checked against:** [MCP Security Best Practices](https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/security_best_practices), [MCP Authorization](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization) and [Authorization Security Considerations](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/security-considerations), December 6, 2026.

## What counts as token passthrough?

Token passthrough is when an [MCP server](/glossary/mcp-server) accepts a token from an MCP client without checking that it was issued to that server, then sends it on to a downstream API.

| Failure | What the server does | Result |
|---|---|---|
| Audience validation failure | Accepts a token without checking it was meant for this server, for example through the audience claim ([RFC 9068](https://www.rfc-editor.org/rfc/rfc9068.html)) | Tokens issued for other services work here too |
| Passthrough | Forwards that unchecked token, unmodified, to a downstream service | The downstream API may trust it as if the MCP server had validated it |

The MCP [Security Best Practices](https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/security_best_practices) name both failures. They tie the second to the "confused deputy" problem: the downstream API may trust the token as if it came from the MCP server, or assume the MCP server validated it.

The pattern is easy to build by accident. A thin wrapper around a REST API that copies the incoming `Authorization` header onto its outgoing request is doing token passthrough.

## What does the MCP spec require?

The spec states the rule from both the server side and the client side, across three pages.

| Rule | Applies to | Source |
|---|---|---|
| MUST validate that access tokens were issued specifically for it as the intended audience | MCP server | [Authorization](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization) |
| MUST only accept tokens valid for use with its own resources | MCP server | Authorization |
| MUST NOT accept or transit any other tokens | MCP server | Authorization |
| MUST NOT send a server any token other than one issued by that server's authorization server | MCP client | Authorization |
| MUST include the `resource` parameter ([RFC 8707](https://www.rfc-editor.org/rfc/rfc8707.html)) in authorization and token requests | MCP client | [Security Considerations](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/security-considerations) |
| When calling upstream APIs, uses a separate token issued by the upstream authorization server and MUST NOT pass through the token it received | MCP server | Security Considerations |
| MUST NOT accept any tokens that were not explicitly issued for the MCP server | MCP server | Security Best Practices |

These rules come from revision 2026-07-28, the current MCP protocol version as of December 6, 2026. Invalid or expired tokens MUST get an HTTP `401`.

The `resource` parameter and the audience check work as a pair. The client asks for a token bound to one server's canonical URI, such as `https://mcp.example.com/mcp`. The server then rejects any token whose audience doesn't name it. The spec notes that binding works only when the authorization server supports resource indicators, and the server-side audience check is required either way.

## Why is forwarding the token dangerous?

Forwarding the client's token removes the controls, identity and trust boundaries that depend on each hop having its own credential.

| Risk named in the best practices | What goes wrong |
|---|---|
| Security control circumvention | Rate limits, request validation and traffic monitoring keyed to the token's audience get bypassed |
| Accountability and audit trail | The MCP server can't tell clients apart when they present upstream-issued tokens, and downstream logs show a different identity than the server actually forwarding the request |
| Data exfiltration | A holder of a stolen token can use a server that doesn't check claims as a proxy |
| Trust boundary issues | A token accepted by several services lets an attacker who compromises one reach the others |
| Future compatibility | A server that starts as a "pure proxy" is harder to secure later than one built with audience separation from the start |

The best practices say these audit gaps make incident investigation harder. The downstream logs show the wrong identity, and the MCP server can't tell its own clients apart.

## What does passthrough look like on the wire?

Passthrough shows up as the same bearer token on both hops.

```text
Passthrough (forbidden)
MCP client --Bearer T--> MCP server --Bearer T--> downstream API
                         (audience of T never checked)

Separate tokens (required)
MCP client --Bearer T1 (audience: this MCP server)--> MCP server
MCP server --Bearer T2 (issued by the upstream authorization server)--> upstream API
```

In the required pattern, `T1` is checked and consumed at the MCP server. `T2` is a different credential that the MCP server obtained as an OAuth client of the upstream service. Neither token is valid at the other hop.

## How should an MCP server call an upstream API instead?

The MCP server acts as an OAuth client of the upstream service and uses a token that the upstream authorization server issued to it.

The MCP pages checked for this explainer don't prescribe how the server obtains that upstream token. Two options fit the rule:

- **The server runs its own OAuth flow with the upstream.** The user consents to the MCP server's access at the upstream authorization server, and the MCP server stores the resulting token per user. See [per-user OAuth](/glossary/per-user-oauth).
- **The server exchanges the incoming token.** [RFC 8693](https://www.rfc-editor.org/rfc/rfc8693), OAuth 2.0 Token Exchange, defines a grant (`urn:ietf:params:oauth:grant-type:token-exchange`) that trades a `subject_token` for a new token aimed at a target `audience` or `resource`. It supports impersonation and delegation. Under delegation, the acting party keeps its own identity, separate from the user's.

Either way, the outbound request carries a credential the upstream issued, and the inbound token stays at the MCP server.

## Does the confused deputy problem still apply when tokens are separate?

Yes, an MCP proxy that uses one static client ID with a third-party authorization server can still be abused, so the spec requires per-client consent.

The attack in the [best practices](https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/security_best_practices) needs four conditions together: the MCP proxy uses a static client ID upstream, it lets MCP clients register dynamically, the third-party authorization server sets a consent cookie, and the proxy skips its own per-client consent. An attacker registers a client with a malicious `redirect_uri`, sends the user a link, and the upstream skips its consent screen because of the cookie. The MCP authorization code then goes to the attacker.

MCP proxy servers MUST:

- keep a per-user registry of approved `client_id` values and check it before starting the third-party flow;
- show a consent page that names the client, the third-party scopes and the registered `redirect_uri`;
- match `redirect_uri` by exact string, not pattern;
- generate a single-use `state` value, store it only after consent, and reject callbacks where it is missing or different.

Dynamic Client Registration is deprecated as of 2026-07-28, but the best practices note the attack still applies to proxies that support it.

## How do I check my server for passthrough?

Review every path where a request enters or leaves the server.

- Validate the audience of every inbound token against your server's canonical URI, on every request.
- Return `401` for tokens that are invalid, expired or issued for another audience.
- Search the code for any place the inbound `Authorization` header, or the token inside it, is copied onto an outbound request.
- Confirm each upstream call uses a credential issued by that upstream's authorization server.
- Record the user identity from the validated inbound token next to each upstream call, so logs connect the two hops.

The same review applies to anything that sits between clients and servers. A gateway that copies the caller's `Authorization` header onto upstream requests is doing token passthrough. See [what an MCP gateway does](/guides/mcp-gateway-explained).

## What to read next

- [MCP authorization step by step](/guides/mcp-oauth-flow)
- [What an MCP gateway does between agents and servers](/guides/mcp-gateway-explained)
- [Security checklist for shipping an MCP server](/guides/mcp-server-security-checklist)
- [Per-user OAuth](/glossary/per-user-oauth)

## Sources

1. [Security Best Practices (2026-07-28), Model Context Protocol](https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/security_best_practices)
2. [Authorization (specification 2026-07-28), Model Context Protocol](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization)
3. [Authorization Security Considerations (specification 2026-07-28), Model Context Protocol](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/security-considerations)
4. [RFC 8707: Resource Indicators for OAuth 2.0, IETF](https://www.rfc-editor.org/rfc/rfc8707.html)
5. [RFC 9068: JSON Web Token (JWT) Profile for OAuth 2.0 Access Tokens, IETF](https://www.rfc-editor.org/rfc/rfc9068.html)
6. [RFC 8693: OAuth 2.0 Token Exchange, IETF (2020-01)](https://www.rfc-editor.org/rfc/rfc8693)

## Changelog

- 2026-12-06: First published.

## Cite this page

Agents for Devs. "Token passthrough in MCP: why servers must not forward client tokens." Published Dec 6, 2026. https://agentsfordevs.com/guides/token-passthrough

- Page: https://agentsfordevs.com/guides/token-passthrough
- Markdown: https://agentsfordevs.com/guides/token-passthrough.md
- Reuse: quote or summarize with a link to the page. Terms: https://agentsfordevs.com/reuse
