By NHI Mgmt Group Editorial TeamBased on WorkOS: “XMCP + AuthKit: The Fastest Way to Secure MCP Tools and Servers” (July 21, 2025)

TL;DR: MCP servers now sit in the authentication path for AI tools, and the June 2025 MCP specification updates make them OAuth resource servers rather than authorization servers, according to WorkOS. That shift turns MCP security into an identity governance problem for both NHI and emerging agentic workflows, where scoped access and user context determine exposure.


At a glance

What this is: This article explains why MCP server authentication is no longer optional and shows how OAuth-based access control and user-context verification change the security model for AI tool servers.

Why it matters: It matters because IAM teams now have to govern MCP access like a real identity boundary, not just a developer integration, especially where AI tools touch sensitive data or multi-tenant environments.


Context

MCP changes the shape of AI tool integration by turning tools into protocol-discovered services that can be called by LLM-driven workflows, not just by humans or hardcoded applications. Once that happens, authentication becomes part of the identity plane, because each request needs a reliable way to prove who or what is calling the tool.

The governance gap is that many MCP implementations start as developer convenience projects and only later encounter identity requirements such as scoped access, user context, and tenant boundaries. For IAM and NHI programmes, that means the question is not whether the server can execute a tool call, but whether the call can be tied to a valid, bounded identity decision.


Key questions

Q: How should security teams govern MCP tool access in enterprise environments?

A: Security teams should bind MCP tool access to enterprise identities, entitlements, and lifecycle state before a request reaches production tools. A gateway can enforce policy at the edge, but governance only exists when the identity system knows who is calling, what they are allowed to do, and whether approval or offboarding has already occurred.

Q: Why do MCP authentication gaps create IAM risk for AI tools?

A: Because the tool server becomes part of the access path, so every weak scope, unverified token, or loose registration rule turns into direct application access. IAM risk appears when AI tools can call sensitive resources without a clear identity, tenant, and privilege boundary. The control failure is not the protocol itself but the lack of governed trust at runtime.

Q: What are the warning signs that MCP access is not properly controlled?

A: Warning signs include hard-coded credentials in server files, broad tool permissions, no per-tool ownership, and logs that cannot show which agent made a call. If teams cannot trace a tool action back to an identity, policy, and purpose, the access model is too loose to trust.

Q: What should teams do if an MCP client can register too easily?

A: Pause new registrations, inventory existing clients, and require an approval path for callback URLs, scopes, and issuer trust before any tool access is granted. Easy registration is only safe when the lifecycle around it is tightly governed. Without that control, the protocol can expand access faster than review processes can absorb it.


Technical breakdown

MCP servers as OAuth resource servers

The article reflects the June 2025 MCP specification update that treats MCP servers as OAuth resource servers, not authorization servers. That distinction matters because a resource server validates access tokens and enforces scope, while an authorization server issues tokens and owns consent flows. In practice, MCP tools should receive identity assertions from a separate trust source, then check whether the caller is allowed to invoke the tool and with what context. This aligns MCP more closely with normal API access control, but with AI-driven discovery and invocation layered on top.

Practical implication: treat MCP servers as protected resources and separate token issuance from tool enforcement.

User context inside tool execution

XMCP passes the Authorization header into tool logic, which lets the server verify a JWT and inspect claims such as subject and issuer. That makes user context available at runtime instead of forcing tools to run as opaque backend processes. The important security point is that the tool is not just checking that a token exists, but that the token is valid, issued by the expected authority, and carries the right context for the request. For identity teams, this is where tenant awareness and user attribution become enforceable inside the tool path.

Practical implication: validate tokens in each tool path and bind tool actions to verified user claims.

Dynamic client registration and enterprise trust

The article also points to dynamic client registration as part of the MCP onboarding model. That reduces friction, but it also changes the trust boundary because new clients can appear programmatically and start requesting access. In identity terms, that creates a registration lifecycle problem, not just an authentication problem: who can register, what defaults they get, and how their scopes are bounded from the start. If the registration process is loose, the protocol can become an access sprawl mechanism rather than a controlled integration layer.

Practical implication: govern client registration as a lifecycle control, not a setup convenience.


NHI Mgmt Group analysis

MCP authentication has become an identity governance problem, not just a framework choice. Once MCP servers sit in the tool invocation path, access decisions become part of the security architecture rather than an implementation detail. The article shows that OAuth, scopes, and JWT validation are now the control surface that determines whether AI tools can safely touch sensitive systems. Practitioners should treat every MCP server as an identity boundary with policy implications.

Scope design is now the decisive control point for MCP risk. The article’s model relies on default scopes, token verification, and user context flowing into tool execution. That means overbroad scopes will translate directly into overbroad tool access, especially where AI tools operate across internal systems or tenants. The practical conclusion is that the real governance question is whether tool scope matches the intended operational boundary.

Dynamic client registration can create hidden access growth if it is not governed as lifecycle, not convenience. The article highlights registration as part of the MCP setup flow, which is useful for speed but risky for control if teams do not own the client lifecycle. Registration, callback configuration, and issuer trust all become part of the approval chain. Practitioners should expect the registration layer to become a control plane for third-party and internal MCP access.

Ephemeral AI tool calls do not remove identity accountability, they make it more specific. The article shows that tool requests can carry verified user claims through JWTs, which is a useful pattern for attribution and audit. The important shift is that identity is no longer limited to the application perimeter; it travels with the tool call. That means IAM, PAM, and NHI governance all need to understand where those claims are created, validated, and consumed.

Runtime trust binding: MCP security now depends on proving that each tool invocation is both authenticated and context-bound at the moment of use. This is the named concept that best captures the article’s substance. The security problem is not simply whether OAuth exists, but whether the runtime can bind a request to a verified identity, scope, and tenant context before the tool acts. Practitioners should read MCP as a runtime trust problem with identity enforcement at execution time.

From our research library:

  • 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.

What this signals

Runtime trust binding: MCP changes the trust model from static integration to request-time identity enforcement. Security teams should expect the control plane to move closer to tool execution, because scopes, issuer validation, and user context now determine whether an AI tool call is legitimate.

The broader programme implication is that MCP governance cannot sit only with developers. IAM, NHI, and platform teams all need shared ownership for client registration, token validation, and auditability, otherwise AI tool access will expand faster than governance can classify it.


For practitioners

  • Define MCP servers as protected resource servers Separate token issuance from tool execution so the MCP server only validates access and enforces scope at request time.
  • Require token verification in every tool handler Verify the JWT, issuer, and claims inside each tool path before any data access or downstream action occurs.
  • Treat client registration as a governed lifecycle Approve who can register MCP clients, set strict defaults for scopes and redirects, and review registrations as part of access governance.
  • Map tool scopes to tenant and role boundaries Use narrow default scopes and explicit tenant context so AI tools cannot cross organisational or workload boundaries without approval.
  • Log identity claims with tool activity Record subject, issuer, scopes, and tool name together so security teams can trace which identity exercised which MCP capability.

Key takeaways

  • MCP server authentication is now an identity governance issue because tool calls can reach sensitive systems only when the request is authenticated and scoped.
  • The main control gap is weak runtime trust, especially when client registration, token validation, or scope design is too permissive.
  • Teams that govern MCP as a protected resource boundary will have a clearer path to safe AI tool access than teams treating it as a developer convenience layer.

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 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-63 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationThe article centers on missing or incomplete authentication for MCP servers.
NHI-10 — Human Use of NHIThe post discusses user context flowing into MCP tools that may be called by humans through AI workflows.
Recommendation — Apply NHI-04 to require verified authentication before MCP tools accept any request. Map user-mediated MCP access to NHI-10 and preserve attribution from human request to tool action.
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseAI tool workflows can abuse identity claims and scopes when MCP access is too broad.
Recommendation — Constrain agent identity and privilege paths so tool calls cannot exceed their authorised scope.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsMCP scope design and token validation are direct access-authorisation problems.
Recommendation — Tighten entitlements for MCP clients and tools under PR.AA-05.
NIST SP 800-63SP 800-63C — FederationThe article relies on federated OAuth flows and trusted token assertions.
Recommendation — Use federation controls to ensure MCP-issued tokens are accepted only from trusted authorities.

Key terms

  • Mcp Resource Server: A MCP Resource Server is the system that exposes data, files, or other resources to an AI agent through the Model Context Protocol. It publishes read-accessible resources, metadata, and access rules so tools can retrieve context safely. In identity terms, it becomes a governed data surface that must enforce authorization, auditing, and least privilege.
  • Runtime Trust: Runtime trust is the idea that access should remain valid only while current context justifies it. Instead of trusting a setup decision indefinitely, teams continuously re-evaluate whether a workload or agent still deserves privilege. This approach is especially important for AI agents that can change behaviour mid-task.
  • Dynamic Client Registration: Dynamic client registration is a protocol pattern that allows a software client to register itself with an authorization system automatically. For AI agents, it can reduce manual setup, but it also creates new identities at speed, which makes ownership, policy checks, and revocation essential.
  • Token verification: Token verification is the process of checking that a JWT was issued by a trusted party, has not been altered, and meets expected policy before it is used. It should occur before any claim influences authorisation, routing, or database logic, otherwise attacker-controlled data can enter trusted workflows.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on June 8, 2026.
Updated on October 7, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org