Subscribe to the Non-Human & AI Identity Journal

How do organisations decide whether MCP should use OAuth, mTLS, or federation?

Use OAuth 2.1 for standard delegated access, mTLS for higher assurance between tightly controlled workloads, and federation when identity must span cloud or on-premises domains. The decision should follow the trust boundary, the exposure of the token path, and the operational maturity of the workload identity stack, not personal preference.

Why This Matters for Security Teams

The protocol choice is not just an engineering preference. For MCP, the authentication path defines how far a token can travel, who can reuse it, and how quickly a compromise turns into lateral movement. OAuth 2.1 is usually the default for delegated access, but that only works cleanly when the token path is tightly bounded and the resource server can enforce audience, scope, and expiry correctly. mTLS raises the assurance bar for controlled service-to-service links, while federation becomes necessary when identity has to survive across cloud or on-premises boundaries.

This is where agentic systems complicate the decision. Autonomous workloads can chain tools, invoke APIs unexpectedly, and expand their blast radius faster than human-operated services. That is why guidance on agentic systems increasingly ties protocol choice to workload identity, runtime policy, and short-lived credentials rather than static trust assumptions, as reflected in OWASP Agentic Applications Top 10 and the OWASP Agentic AI Top 10. In practice, many security teams discover weak token boundaries only after an agent or integration has already reused access in ways nobody intended.

How It Works in Practice

Most organisations should start with OAuth 2.1 when the MCP server is serving standard delegated access to users or applications, because it gives a familiar model for consent, scope, and token lifetime. Use mTLS when both ends are tightly managed workloads and the main requirement is stronger transport-level assurance between known systems. Choose federation when the same identity must be trusted across separate identity domains, such as a cloud workload calling an on-premises tool server, or when the MCP deployment needs to inherit enterprise identity from an external IdP.

The practical question is not only “which protocol,” but “what identity primitive does the workload present at runtime?” For autonomous systems, current guidance suggests pairing protocol choice with workload identity, short-lived credentials, and policy evaluation at request time. That is why many teams look to Guide to SPIFFE and SPIRE for cryptographic workload identity, then layer OAuth or federation on top where user or domain delegation is required. Research on real-world compromise paths, such as the Salesloft OAuth token breach and JetBrains GitHub plugin token exposure, shows why exposed tokens and long-lived secrets are dangerous once they leave the intended trust boundary.

  • Use OAuth 2.1 when the MCP client is acting on behalf of a user and scopes can be constrained cleanly.
  • Use mTLS when both endpoints are owned, monitored, and rotated as managed workloads.
  • Use federation when trust must span identity providers, network zones, or organisational boundaries.
  • Prefer short-lived tokens and JIT provisioning when agents perform task-specific actions.

These controls tend to break down when an agent crosses multiple tools and domains in a single workflow, because token reuse and trust delegation become harder to trace and revoke.

Common Variations and Edge Cases

Tighter authentication often increases operational overhead, so organisations have to balance assurance against certificate lifecycle, IdP integration, and support burden. There is no universal standard for this yet, especially for agentic workloads that need both human delegation and machine autonomy. The emerging pattern is to avoid treating OAuth, mTLS, and federation as competing options, and instead compose them around the trust boundary: mTLS for workload proof, OAuth for delegated action, and federation for cross-domain identity continuity.

Edge cases usually appear when MCP is embedded inside agentic pipelines or mixed-trust environments. For example, an AI agent may need federated identity to reach enterprise systems, but also JIT credentials and intent-based authorisation to stop it from overreaching once connected. That is why NHI governance should be read alongside frameworks such as Analysis of Claude Code Security and the OWASP Top 10 for Agentic Applications 2026, because the same token that is safe in a bounded service chain may be unsafe once an autonomous agent can chain tools, cache context, or retry actions. Best practice is evolving toward runtime policy, short TTLs, and workload identity anchored in the actual execution context, not the application label.

Standards & Framework Alignment

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

OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 Agentic systems need runtime controls beyond static access assumptions.
OWASP Non-Human Identity Top 10 NHI-01 MCP relies on NHI credentials, scopes, and rotation discipline.
NIST Zero Trust (SP 800-207) PR.AC-1 Zero trust requires verifying each workload and request context.

Treat MCP service identities as NHIs and enforce short-lived, least-privilege credentials.