Est.
MCP GatewayLong read

From Ad Hoc MCP Permissions to Enterprise-Grade Access Control With a Purpose-Built Gateway

A governed gateway replaces per-team MCP auth sprawl with central control.

· 9 min read
Cover illustration for “From Ad Hoc MCP Permissions to Enterprise-Grade Access Control With a Purpose-Built Gateway”
MCP Gateway · November 13, 2026 · 9 min read · 1,936 words

Enterprise-grade MCP access control requires a governed gateway between agents and tools, with identity from providers such as Okta or Entra ID, tool-level role-based access control (RBAC), runtime policy checks, and attributable audit logging. Moving from ad hoc permissions to that architecture is a predictable progression.

How MCP's design created a governance gap that grew with adoption

MCP is a connectivity standard without built-in access control. Its “USB-C for AI” framing captures the attraction. Any compatible agent can connect to any compatible server. Snowflake's enterprise MCP guide explains the corresponding risk, because the same interoperability lets connections spread without consistent governance. Connectivity came first, and adoption compressed the time available to build controls around it.

Suraj Kumar, Amy Wang, and Srinivasan Manoharan's gateway paper documents large organizations going from zero to dozens of internally built MCP servers within a year. Each team chose authentication independently, ranging from no authentication to API keys and full OAuth. The fleet became fragmented, without a consistent way to authorize callers, track actions, or remove a departing employee's access.

What team-by-team auth sprawl actually produces across an organization

Consider a developer running a local MCP server against a production API. A token in a configuration file gives the agent access, but the local process provides no centralized inventory, audit trail, or revocation path. Security teams may not know the server exists, which credential it holds, which systems it reaches, or what data passes through it. A successful connection is not an access review.

Snowflake's guide describes hardcoded tokens that leave agents operating with access granted at setup, rarely reviewed and not scoped to least privilege. Offboarding exposes the weakness immediately. To remove access, teams must change each MCP server on its own, without a reliable list of those servers. Unlike classic shadow IT, the agent also decides at runtime what to do with its permissions. That nondeterminism makes the reach of a misconfigured credential harder to predict, even before any attacker enters the picture.

Why routing MCP traffic through a traditional API gateway does not solve the problem

Existing API gateways are an understandable first response. They already control access to enterprise services. They usually check whether a client may reach an endpoint, but an MCP gateway must decide whether a given agent may run a given tool with given arguments on behalf of a given user. The unit of control has changed. Routing the traffic through an existing proxy does not, by itself, supply that missing decision.

Snowflake's guide contrasts deterministic app-to-app traffic with nondeterministic agent-to-system traffic, and endpoint controls with controls over tool parameters, prompt context, and session identity. An agent can chain calls and change direction as results come back, so an innocent-looking prompt can lead to exports, writes, or deletions. A check at the first hop misses the choices that come later. Similarly, HTTP request and response metadata cannot reconstruct the agent's intent, tool sequence, or blocked attempts. A transaction log is not automatically a decision log.

The security consequences that surface when MCP runs without a governance layer

When agents authenticate to tools outside the gateway-and-WAF perimeter, the enterprise API security stack may never see their activity. Snowflake's guide names tool poisoning, context leakage, and tool shadowing as risks. Malicious tool descriptions can change how an agent acts, data can escape session boundaries, and servers can override trusted tools in an agent's toolchain. These are failures at the agent-tool boundary. Controls designed for ordinary API traffic do not necessarily inspect that boundary.

The GitHub MCP incident shows how this becomes exfiltration. An attacker placed hidden prompt injection instructions in a crafted issue in a public repository. When a Claude agent using the GitHub MCP server read the malicious content, those instructions redirected it to access tokens in a separate private repository and exfiltrate them through a subsequent tool call. Privileged access, untrusted input, and an external channel converged in one integration. That combination is the “lethal trifecta,” and file-transfer monitoring alone cannot catch data leaving in a prompt body.

What the governed gateway architecture actually looks like and what each layer does

Snowflake's guide describes a four-layer architecture with the gateway between every AI client and every MCP server. At the edge, an identity provider already in place, such as Okta or Entra ID, gives out short-lived tokens. The gateway validates those tokens, applies per-tool policy, maintains the tool registry, and routes or blocks calls. A translation layer wraps legacy APIs, databases, and SaaS applications as MCP servers with declared schemas. Observability spans the architecture through tool-call traces, latency metrics, and anomaly detection.

Each call passes through four sequential checks. The gateway authenticates the caller, authorizes the tool, inspects the arguments, and attaches the appropriate upstream credential. Failure stops the call before it reaches the server, and the outcome is logged. Under the zero-secret-exposure principle, the agent can do what it has been allowed to do without holding the underlying secret. That removes the opportunity to steal that secret from the agent, rather than relying on the agent to keep it confidential.

Governance should also remain separate from execution. Policy evaluation should be a distinct service from the data path, so policy changes do not require proxy redeployment and slow policy engines do not block the hot path. Semantic routing serves a different purpose. It picks the tools that fit before showing them to the agent, which cuts down on context-window pollution and tool-selection errors. That improves operation, but it does not replace authorization.

The identity problem the architecture must solve across users, agents, and service workloads

A human using Claude Desktop, an autonomous cloud workload, and a sub-agent with delegated authority are not interchangeable callers. Their trust requirements differ at the outset. The gateway paper models identity along two axes, persona and credential type, and defines flows for users with delegated authorization, workloads using service accounts, and users using service accounts. This keeps an interactive login model from being the default way to solve every identity problem. Shared service accounts, by contrast, cannot distinguish one agent's actions from another's.

The Enterprise-Managed Authorization extension, or EMA, lets organizations centrally control MCP server access through a trusted identity provider. End users can access connected servers through a single login without repeated per-server consent. It addresses centralized authorization for that user experience. It does not establish a complete identity and delegation model for autonomous agents. The MCP OAuth Client Credentials extension handles unattended client authentication, while work on standardized agent identity and delegation was still underway when the sources were published.

Identity and permission therefore need separate treatment. The AIUC-1 Q2 2026 refresh put agent identity and access management in separate control domains, in line with NIST guidance. The AIUC Consortium develops the standard, with the Cloud Security Alliance as a technical contributor. Shared service accounts and ambient credentials do not position an organization to meet those requirements. Even a reliably identified caller still needs a decision about what it may do next.

What a gateway must enforce at runtime that static provisioning and SSO alone cannot

Single sign-on answers who can sign in. It does not decide which tools that person may call, how access changes when they move to another team, or whether the audit log records denied decisions. Runtime policy must operate at finer granularity. Grants should narrow from a whole server to named tools, tool annotations such as read-only, and argument-level conditions. A deny rule must outrank a grant from another group, rather than forcing administrators to rebuild group membership to block one tool.

Revocation also has more than one trigger. The architecture must handle directory offboarding, an emergency stop for a person, and client or session revocation. Upstream OAuth tokens need attention because they may still work after a gateway session ends. Registered agents and service accounts need the same grant model as people, but with narrower explicit scopes. Argument inspection on every call then addresses the case that provisioning cannot, namely a legitimately authorized agent coerced into using valid permissions maliciously.

Why the audit trail must come from the gateway, not from application instrumentation

By brokering access, the gateway can record both the request and the access decision. Application instrumentation records only what instrumented code reports. OpenTelemetry is well suited to understanding the performance and behavior of that code, but a hostile or shadow agent can simply emit no spans. Silence is not evidence that nothing happened.

Each call should name the directory user and client, and records of access changes should say who granted what to whom and when. With SIEM export, the security team can use those records in the detection and investigation tools it already has. Yet gateway logs have a clear boundary. They cannot prove what happened on MCP servers or agent connections that bypassed the gateway entirely. The governed path must therefore be paired with behavioral analysis and runtime API discovery to find shadow MCP, supplementing signature matching.

The progression from ad hoc sprawl to a governed gateway is predictable and has known stages

The organizational pattern begins with independent team authentication, then moves to SSO at the perimeter. A central gateway adds checks on identity and enforces policy, then audit, shadow discovery, and directory-driven access bring more of the system under governance. The gateway paper documents a deployment migrating from a CDN/WAF/edge perimeter to private MCP tunnels and enterprise-wide connectors. Those connectors sit in front of dozens of servers used by web, desktop, custom-SDK, and low-code clients.

SSO is a legitimate early control. For a proof of concept with a few internal APIs, mapping an identity-provider group to a gateway allowlist provides an explainable control without requiring a new vendor. Its gaps need more attention as more people across the organization gain access. Bloomberg used MCP to close the gap between a working GenAI demo and a deployable, compliant application across its large engineering workforce, treating prompts and toolchains as governed infrastructure. The transition is from making connections work to making their permissions maintainable.

What should an enterprise look for in an MCP gateway with RBAC and audit logging?

Directory integration should mean more than accepting a login. An evaluation should check whether groups and attributes synced over SCIM control access directly or administrators have to copy them into gateway-local teams. Mirrored permissions can drift from the directory. Tool-level grants, denies that override grants, and agent identities with explicit scopes show whether role-based access control covers what agents actually do. Client admission also needs a check, because Dynamic Client Registration and Client ID Metadata Documents affect how precisely policy can tell which MCP client is approved.

The remaining tests concern how access ends and what the organization can prove. Directory offboarding, emergency stops, and session or client revocation must account for upstream tokens as well as gateway sessions. Audit records should cover successful calls, access decisions and permission changes, and support SIEM export. Discovery must look beyond the gateway's own traffic. Without that reach, the product governs the connections it knows about while leaving other connections undiscovered.

Cloudflare Zero Trust MCP server portals, Kong with OpenID Connect, and AWS AgentCore Gateway are reasonable platform-native starting points for a few internal APIs and agents, particularly where those platforms already operate. Their platform fit is a genuine advantage. The supplied capabilities, however, do not establish that every option provides directory-driven tool grants, complete access-decision auditing, and shadow discovery. Those requirements need evaluation independent of SSO support. A purpose-built gateway becomes the architectural choice when access must follow directory changes without manual edits and governance must extend from the caller's identity through every tool decision to the audit trail.

Sources

  1. What are the best MCP gateways for enterprise access control in 2026?
  2. [2608.10760v1] A Gateway Architecture for Enterprise MCP Authentication: Unifying Heterogeneous Auth, Identity Delegation, and the User / Non-User Persona Problem
  3. Enterprise-Managed Authorization: Zero-touch OAuth for MCP
Filed underMCP Gateway

More in MCP Gateway