In this article:

MCP Gateway: What It Does, When You Need One, and How the Options Compare

Cybersecurity
/
November 22, 2026
MCP Gateway: What It Does, When You Need One, and How the Options Compare

An MCP gateway is a proxy that sits between AI clients and Model Context Protocol (MCP) servers and enforces one set of rules for every call: who may connect, which servers and tools they may use, which credentials each server receives, and what gets logged. It gives security teams a single place to apply the controls the MCP specification expects but cannot enforce on its own. You need one once you run more than a handful of MCP servers, have more than one team building agents, or expose servers that touch regulated data. Docker, Microsoft, Kong, and AWS each offer a gateway, and they differ mainly in where servers run and how identity works.

What does an MCP gateway do?

A gateway turns many point-to-point connections into one controlled path. Without it, every AI client holds its own list of servers, every server holds its own credentials, and every team decides for itself what to log. With it, clients connect to one endpoint, and the gateway decides what happens next. In practice a gateway handles five jobs.

It authenticates the user or agent on the way in, usually against your identity provider. It enforces an allowlist of approved servers and, inside each server, of approved tools. It holds or brokers the credentials each server uses on the way out, so secrets never sit in a developer's configuration file. It routes each request to the right server instance and manages that server's life cycle. And it logs every call with the tool name, arguments, identity, and result, so an investigator can rebuild what an agent did.

The MCP specification leaves gateways optional, and its 2026-07-28 revision makes one easier to run. Streamable HTTP requests now carry Mcp-Method and Mcp-Name headers, so a gateway can route and filter without parsing the request body, and servers must reject requests whose headers do not match the body. Our Model Context Protocol guide covers those transport changes in detail.

When do you need an MCP gateway?

A single developer running two local servers on a laptop does not need one. Four signals tell you it is time. First, you have more than five or six MCP servers in use, or you cannot list them all from memory. Second, more than one team is building agents, so nobody owns the full picture of what connects to what. Third, you are moving from local servers on stdio to remote servers over HTTP, which adds network exposure and token handling. Fourth, any server reaches customer data, financial systems, source code, or anything a regulator cares about.

If two or more apply, a gateway is the cheapest way to get an allowlist, consistent authentication, and an audit trail. Without it, each of those controls has to be built and maintained separately for every server and every client, and in our experience that is where coverage gaps appear.

How does a gateway handle MCP authorization?

Token handling is where gateway designs go wrong most often. The MCP authorization specification requires HTTP servers to publish OAuth 2.0 Protected Resource Metadata under RFC 9728, requires clients to send RFC 8707 resource indicators so each token names one server as its audience, and says servers must not accept or transit tokens issued for anything else. A gateway that takes a user's token and forwards it unchanged to every downstream server breaks that rule and recreates the confused deputy problem the rule exists to prevent.

A sound design has the gateway validate the inbound token against your identity provider, then obtain or inject a separate credential scoped to each downstream server. Microsoft's gateway authenticates with Entra ID and applies application roles to servers and tools. AWS describes the same split for its managed gateway as inbound authentication, which verifies the agent, and outbound authentication, which connects to tools. Where your clients support it, the Enterprise-Managed Authorization extension lets the identity provider decide which servers each employee can reach, so revoking access in one place takes effect everywhere.

How do the MCP gateway options compare?

The four products below are the ones most enterprise teams evaluate. Descriptions come from each vendor's documentation, and claims the vendor makes about itself are attributed to it.

GatewayWhere it runsWhat it doesIdentityFits best when
Docker MCP GatewayDocker, open source under the MIT licenseRuns each MCP server in an isolated container with restricted privileges, network access, and resources, starts servers on demand, injects credentials, and logs and traces callsSecrets from Docker's secrets management; tool allowlists per profileDeveloper teams that want local and shared servers contained and inventoried
Microsoft mcp-gatewayKubernetes, as a reverse proxy and control planeRoutes requests without session storage, authorizes each request, and deploys, updates, and deletes MCP serversEntra ID authentication and app roles for servers and toolsMicrosoft shops running servers on AKS or other Kubernetes
Kong Enterprise MCP GatewayInside Kong AI GatewayKong says it applies OAuth, default-deny tool access lists, rate limiting, and request logging with correlation IDsOAuth with role or attribute rules, per KongOrganizations that already run Kong for API management
Amazon Bedrock AgentCore GatewayManaged AWS serviceConverts OpenAPI, Smithy, and Lambda targets into MCP tools, offers semantic tool search, and handles credential injectionInbound and outbound authentication with OAuth flowsTeams building agents on AWS that want to expose existing APIs as tools

Sources: Docker MCP Gateway documentation, Microsoft mcp-gateway, Kong, and AWS AgentCore Gateway documentation. Docker notes that its gateway as part of Docker AI Governance is an invite-only offering, separate from the open source project, so confirm which one you are evaluating.

What should you require from any MCP gateway?

Whichever product you choose, hold it to the same requirements. It should deny by default, so a new server or tool is unusable until someone approves it. It should pin server versions and alert when a server's tool definitions change, because a changed description is a changed prompt. It should never forward an inbound user token to a downstream server. It should log every call with enough detail to replay it and send those logs to your SIEM. And it should let you require human approval for tools that send, delete, pay, publish, or change permissions.

Ask each vendor how the gateway behaves when it fails. A gateway that fails open, letting calls through when the policy service is unreachable, undoes the reason you bought it.

How do you roll out an MCP gateway?

A gateway rollout for a mid-size engineering organization takes four to eight weeks as a BD Emerson planning range, and most of that time goes to inventory and identity rather than installation. We run it in six steps:

  1. Inventory. List every MCP server in use, local and remote, with its owner, its credentials, and the systems it reaches.
  2. Choose the deployment model. Decide between container-based, Kubernetes-based, or managed, based on where your servers and agents already run.
  3. Integrate identity. Connect the gateway to your identity provider and design a separate, scoped credential for each downstream server.
  4. Build the allowlist. Approve servers and tools one at a time, pin versions, and record who approved each one.
  5. Send logs to the SIEM. Stream every call record and set alerts for new tools, denied calls, and unusual volume.
  6. Cut over and close the side doors. Move clients to the gateway endpoint, then block direct connections to remote servers at the network layer so the gateway is the only path.

The last step is the one teams skip. A gateway that agents can route around is a suggestion.

What does a gateway not solve?

A gateway controls the path. It does not make the content on that path safe. A server you approved can still return a document with hidden instructions, and the model can still follow them. A tool description can still carry a poisoned instruction if nobody reviewed it before approval. The gateway narrows what a misled agent can reach, and logging shows you what it did, but you still need tool review before approval, separation between tools that read untrusted content and tools that can send data out, and testing against your real configuration. Our article on MCP security covers those threats, and securing AI agents sets out the full agent threat model.

How BD Emerson helps

BD Emerson designs MCP architectures, selects and configures gateways, and tests the result. We start with an inventory of the servers already in use, which usually turns up a few nobody approved, then put the allowlist, identity design, and logging in place before the first agent reaches production data. Our offensive team then tests the deployment with tool poisoning, injection through tool results, and token misuse against the real configuration.

If you are planning an MCP rollout or tightening one that grew on its own, our agentic AI security team can design the gateway layer and prove it holds.

About the author

Drew Danner is a Managing Director at BD Emerson. He leads engagements across technology strategy, enterprise AI, M&A technology diligence, and the firm's governance, risk, and security practice, advising buyers, operators, and portfolio companies on decisions where the technical call drives the commercial outcome. His work spans build vs buy decisions, platform implementations, and the security and compliance programs that keep them defensible.
Drew Danner
Drew Danner
Managing Director