Join our Newsletter — 33% off our NHI Course

How should security teams govern an MCP server that uses federated identity and token exchange?

Treat the MCP server as a managed non-human identity with a documented owner, explicit token audience, scoped permissions, and a defined revocation path. Federation reduces reliance on static keys, but it does not remove governance. The control question is whether the trust chain is narrowly bounded to the workload that actually needs access.

Why This Matters for Security Teams

An mcp server that relies on federated identity and token exchange is not “self-securing” just because it avoids static API keys. It becomes a high-value identity broker that can mint, swap, and present credentials on behalf of tools, agents, and upstream users. That means the real risk shifts from key storage to trust boundary design: who can ask for tokens, what those tokens can reach, and how quickly they can be revoked. The control objective is narrow delegation, not convenience.

This is where many teams misread the problem. Federation can reduce secret sprawl, but it also increases the importance of audience restriction, token provenance, and lifecycle governance. NHI Management Group’s Ultimate Guide to NHIs shows how often non-human identities are over-privileged, and recent MCP research from The State of MCP Server Security 2025 found only 18% of deployments implement any form of access scoping for tool permissions. In practice, many security teams discover token abuse only after an MCP server has already become the shortest path into downstream systems.

How It Works in Practice

Governance starts by treating the MCP server itself as a managed NHI with a documented owner, environment boundary, and explicit trust contract. Federation should be used to authenticate the server or its runtime workload, while token exchange should be constrained to a narrow set of audiences and scopes. The server should never receive broad reusable credentials when a short-lived delegated token will do.

A practical control pattern looks like this:

  • Use workload identity for the server process, not shared human credentials.
  • Require explicit audience binding so exchanged tokens are valid only for the intended downstream service.
  • Issue short-lived tokens with automatic revocation on task completion or session end.
  • Log the full token chain, including issuer, subject, audience, and exchange path.
  • Separate dev, staging, and production trust relationships so one environment cannot mint access for another.

That approach aligns well with the identity-centric direction of NIST Cybersecurity Framework 2.0, especially around access governance and continuous monitoring. It also reflects the direction of modern MCP and agent security guidance in OWASP Agentic AI Top 10, where the issue is not only authentication but the chain of delegated authority. For teams using federated identity platforms, the operational question is whether token exchange is policy-driven at request time or simply trusted because the IdP said “yes.” These controls tend to break down in multi-tenant MCP gateways because audience sprawl and shared broker logic make token lineage hard to verify.

Common Variations and Edge Cases

Tighter token exchange controls often increase integration overhead, requiring organisations to balance least privilege against developer speed and cross-team interoperability. That tradeoff becomes sharper when an MCP server fronts multiple tools, each with different data sensitivity and downstream authentication requirements.

There is no universal standard for this yet, so current guidance suggests using the smallest viable trust domain and making exceptions explicit. Shared MCP gateways are especially tricky: a single server may need to broker access for internal services, third-party SaaS, and experimental agent workflows at the same time. In those cases, separate token audiences and per-tool policy checks are more defensible than one broad delegation rule. The same applies when the server runs in ephemeral containers or serverless jobs, where runtime identity may be strong but post-exchange observability is weak.

NHIMG’s Guide to the Secret Sprawl Challenge and 52 NHI Breaches Analysis both reinforce the same lesson: federation does not remove governance debt, it only changes where that debt accumulates. Teams should verify that revocation works across the IdP, the token exchange service, and every downstream consumer, because a token that cannot be reliably invalidated is just a long-lived secret with better branding.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-01 Federated MCP servers still need explicit ownership and lifecycle control.
OWASP Agentic AI Top 10 A2 Token exchange for MCP tools can overextend delegated authority.
CSA MAESTRO IAM-02 MAESTRO addresses identity and access governance for agentic services.
NIST AI RMF AI RMF covers accountability and monitoring for autonomous access paths.
NIST CSF 2.0 PR.AC-4 Least privilege and access management directly apply to MCP token scope.

Use workload identity and policy checks before any MCP token is issued or exchanged.