TL;DR: Token exchange can let an MCP server authenticate to a downstream GraphQL API with short-lived, audience-scoped tokens instead of embedded secrets, while preserving user-level auditability, according to Stacklok. That pattern matters because it shifts MCP security from static credential handling to governed token brokering, where scope separation and trust relationships become the control plane.
Editorial analysis by NHI Mgmt Group, based on content published by Stacklok: “Token exchange with ToolHive & Okta for MCP authentication to GraphQL”.
Key questions
Q: How should teams govern MCP servers that act as token brokers?
A: Treat the MCP server as a governed delegation point, not a passive proxy.
Q: Why does audience separation matter in MCP token exchange?
A: Audience separation keeps a token issued for one service from being accepted by another.
Q: What do security teams get wrong about replacing secrets with token exchange?
A: They assume short-lived tokens automatically solve the problem.
Practitioner guidance
- Define separate token audiences for each MCP hop Use one audience for the MCP-facing token and a different audience for the backend API so the same credential cannot be replayed across layers.
- Broker downstream API access through token exchange Require the MCP layer to exchange the user token for a backend-specific token instead of storing or forwarding long-lived backend secrets.
- Preserve the originating user identity in backend logs Ensure the exchanged token and downstream telemetry keep user attribution so audit trails show who initiated the action even when the MCP server executed it.
Bottom line: MCP token exchange replaces embedded backend secrets with short-lived, audience-scoped credentials, which narrows exposure but shifts governance to trust configuration.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Token exchange is becoming the governance layer for MCP access. Once an MCP server is allowed to act as a broker to third-party APIs, static secrets stop being the right unit of control. The real question becomes which token may be minted, for which audience, and under what trust relationship. For identity teams, that means the MCP server is not a passive integration point but a governed delegation actor.
A few things that frame the scale:
- 24,008 unique secrets were exposed in MCP configuration files in 2025 alone, the protocol's first year of widespread adoption, according to the State of Secrets Sprawl 2026.
A question worth separating out:
Q: How can IAM teams verify that MCP access remains auditable after exchange?
A: Check that downstream logs still carry the originating user identity and not only the broker service identity. If the audit trail stops at the MCP layer, you have technically successful delegation but weak accountability, which is exactly where investigations and recertification break down.
👉 Read our full editorial: Token exchange for MCP servers reduces secret sprawl and audit gaps