- An MCP gateway is a proxy between AI clients and MCP servers. Every host connects to one endpoint, and one set of rules decides which tools each caller can see, call, and log.
- Bifrost, an open-source AI gateway, is the best MCP gateway for most teams as of November 16, 2026. It filters tools per virtual key, connects each user to upstream servers under their own account, and governs tool calls and model calls with the same keys.
- An API gateway authorizes routes. An MCP gateway authorizes individual tools inside JSON-RPC bodies, merges tool lists from many servers, and holds its own credential for each upstream server.
- The MCP project's security guidance sets rules for proxies: per-client consent, no token passthrough, and sandboxed stdio servers. Check every gateway against those three first.
- In the Bifrost team's published benchmark at 508 tools, Code Mode in Bifrost cut input tokens by 92.8 percent, and every task still passed.
An MCP gateway puts many Model Context Protocol servers behind one endpoint and applies one set of authentication, tool permissions, and logging to every call. Teams add one when a second host, a second team, or a remote server holding user data turns per-server security into repeated work. This comparison ranks nine MCP gateways, each checked against its own documentation on November 16, 2026, on auth, per-tool permissions, registry, transports, audit logs, rate limits, self-hosting, and latency.
#What is an MCP gateway
An MCP gateway is a reverse proxy for the Model Context Protocol. Hosts such as Claude Code, Cursor, or an agent service connect to it as if it were one MCP server. The gateway connects to each real server, merges their tool lists, and checks every tools/call against the caller's identity before forwarding it.
The specification never uses the word gateway. Its security best practices call this component an MCP proxy server and set rules for it.
Without a gateway, every host keeps its own list of MCP servers and its own copy of each credential. Four hosts that each use five servers means 20 configured connections and 20 secrets to rotate. Through a gateway, the same setup has 9 links.
A team needs an MCP gateway when one of these is true:
- Two or more hosts or teams use the same servers.
- A remote server touches user data, so each person should reach it under their own account.
- Security or compliance asks which tools an agent called, with which arguments, and for whom.
- Tool definitions from many servers fill a large share of the context window.
Skip the gateway for one developer, one host, and local stdio servers. At that size, building and securing each MCP server by hand is less work.
#MCP gateway vs API gateway
An API gateway decides whether a request may reach a route. An MCP gateway reads the JSON-RPC body and decides whether a caller may see and run one specific tool. The two can run side by side: the API gateway at the network edge, and the MCP gateway in front of tool servers.
| Question | API gateway | MCP gateway |
|---|---|---|
| What it authorizes | A route and an HTTP method | One tool, prompt, or resource named in the request body |
| How clients find features | Docs or an OpenAPI file, at build time | One merged tools/list, filtered per caller |
| Credentials | Validates the caller's token | Validates the caller, then uses its own credential upstream |
| Local programs | Not applicable | Can launch stdio servers as subprocesses |
| What a log line holds | Route, status, latency | Caller, tool, arguments, result |
Several comparison posts, and the agentgateway docs, explain the split by saying MCP is stateful. That described older revisions, but revision 2026-07-28 removed protocol sessions and the initialize handshake. The harder job now is bridging revisions, because clients and servers on 2025-06-18, 2025-11-25, and 2026-07-28 can coexist in one fleet.
Gateways differ on this. Bifrost negotiates all three revisions with upstream servers, Cloudflare portals accept 2026-07-28 and earlier 2025 clients, and Microsoft MCP Gateway accepts only 2026-07-28 clients. The categories also overlap: Kong is an API gateway that added MCP plugins, and agentgateway proxies ordinary HTTP and gRPC alongside MCP.
#MCP security: what the spec asks of a gateway
MCP security at a gateway rests on three rules the MCP project writes for proxies: get per-client consent, never pass a caller's token upstream, and sandbox any stdio server the proxy launches. A gateway that breaks one of them adds risk instead of removing it.
| Risk named in the MCP guidance | Rule | What to check in a gateway |
|---|---|---|
| Confused deputy | Proxies using a static client ID MUST get per-client consent | A consent screen that names the client and its redirect address |
| Token passthrough | Servers MUST NOT accept tokens not issued for them | Its own token audience check, and its own credential upstream |
| stdio servers behind a proxy | Proxies SHOULD sandbox spawned servers, restrict file access, and log stdio use | Containers, a separate host, or no stdio on a shared gateway |
| Server-side request forgery | Clients fetching OAuth URLs MUST consider SSRF, for example by blocking private ranges | Refusal of private and loopback addresses during discovery |
Sign-in follows the MCP authorization spec, which builds on OAuth 2.1 and RFC 9728 protected resource metadata. A gateway should answer an unauthenticated call with 401 and a pointer to that metadata, so standard clients can sign in without custom code.
The OWASP MCP Top 10, in beta as of November 2026, adds risks a gateway covers only in part. Tool poisoning (MCP03) hides instructions in tool descriptions, so allowing only reviewed tools does more than scanning text. A gateway solves lack of audit and telemetry (MCP08) outright. Shadow MCP servers (MCP09), set up on laptops, never reach a gateway, and only endpoint tooling sees them.
#MCP gateway evaluation criteria
Judge an MCP gateway on eight criteria, and weight the first three highest, because they decide what an agent can reach:
- Auth and OAuth in both directions: OAuth 2.1 with discovery for interactive clients, keys for scripts, and shared, per-user, or exchanged credentials upstream.
- Per-tool permissions that name tools, attach to an identity, and deny everything when nothing is configured.
- A server registry with approved servers, curated endpoints that bundle chosen tools, and a way to turn an OpenAPI document into tools.
- Transports and revisions: stdio for local programs, Streamable HTTP for remote servers, and SSE only for legacy servers, since the spec deprecates HTTP+SSE.
- Audit logs that record caller, tool, arguments, and result for each call, plus a separate, exportable trail of configuration changes.
- Rate limits and budgets per caller, because an agent loop can call the same tool many times.
- Self-hosting: the license, where it runs, and whether it runs air-gapped, since tool traffic carries internal data.
- Latency, measured in your own pilot, because published overhead numbers mostly measure LLM proxying.
#MCP gateways compared at a glance
As of November 16, 2026, seven of these nine gateways are open source, Kong's MCP plugins need its AI Gateway Enterprise tier, and Cloudflare's portals are a managed service. "Not documented" means the vendor pages read did not cover it.
| Gateway | License | Runs on | Client sign-in | Per-tool control | Upstream credentials | Routes LLM calls |
|---|---|---|---|---|---|---|
| Bifrost | Apache 2.0 core, Enterprise tier | Binary, Docker, Kubernetes | Virtual key or OAuth 2.1 | Three stacked filters; Virtual MCPs | Shared, per-user, or token exchange | Yes, same virtual keys |
| agentgateway | Apache 2.0 | Binary or Kubernetes | JWT; OAuth guides | CEL rules | Backend auth, token exchange | Yes, plus A2A |
| IBM ContextForge | Apache 2.0 | PyPI, Docker, Helm | Basic, JWT, custom | Team tokens and RBAC; virtual servers | User-scoped OAuth, headers | Federates A2A, REST, gRPC |
| Kong AI Gateway | Enterprise plugins | On-prem or Konnect | OAuth 2.1 plugin | ACLs by consumer group | Kong auth plugins | Yes |
| Cloudflare MCP server portals | Managed | Cloudflare | Access SSO, service tokens | Tool toggles, default-off lists | Per-user OAuth | Separate product |
| Obot | MIT | Docker, Kubernetes, cloud | Identity providers | Per user or group; vMCPs | Not documented | Yes |
| Agent Router | Apache 2.0 | Kubernetes, standalone | OAuth, JWT claims | CEL rules, tool selectors | Kubernetes Secrets | Yes |
| Docker MCP Gateway | MIT | Docker Desktop or Engine | None documented | Tools on or off per profile | Docker secrets, OAuth | No |
| Microsoft MCP Gateway | MIT | Kubernetes, AKS | Entra ID | App roles per tool | Not documented | No |
#1. Bifrost: tools and models under one set of keys
Bifrost ranks first because it covers all eight criteria and governs tool calls with the same virtual keys that govern model calls. Clients reach every connected tool through one /mcp endpoint, and the gateway reaches servers over STDIO, HTTP, or SSE, or builds tools from an OpenAPI document. The details below describe Bifrost as of November 16, 2026.
Clients authenticate to /mcp with a virtual key header or a browser OAuth 2.1 flow, with Bifrost as the authorization server: RFC 9728 discovery, PKCE, and tokens bound to the /mcp resource. The consent page names the connecting client and its return address, so a person can spot an unexpected client before granting access.
Upstream, Bifrost offers six auth types: none, shared headers, OAuth 2.0, per-user OAuth, per-user headers, and token exchange. Per-user credentials are stored against the caller's identity, and an admin can inspect or revoke each one. Token exchange, on Bifrost Enterprise, swaps the caller's identity-provider token for a short-lived upstream token on every call and never stores it.
Tool filtering stacks three levels: the server's tools_to_execute list, per-request headers, and the virtual key's allow-list. A tool must pass all three, and an empty list means no tools. Virtual MCPs bundle chosen tools from several servers behind one /mcp/<slug> endpoint that only attached virtual keys can reach.
MCP Logs records each tool call, prompt fetch, and resource read. Enterprise adds signed audit logs for configuration changes and Prompt Guardrails on MCP inputs and outputs. A virtual key's budgets and rate limits also apply to a client that signed in through OAuth with that key.
Bifrost is written in Go and runs as a single binary through npx, Docker, Kubernetes, or the Go SDK, including air-gapped deployments. The Bifrost team's published benchmarks put overhead at about 11 microseconds per request at 5,000 RPS on a t3.xlarge, measured on model requests, not tool calls.
Token exchange, identity-provider user mode, audit logs, and guardrails need Enterprise. Per-user auth works only with HTTP servers, because a STDIO process or an SSE stream keeps one connection for every caller. STDIO servers run as gateway subprocesses, so on a shared deployment, keep tools that touch sensitive files behind HTTP.
Servers that employees add on their own machines never reach a gateway's config. Bifrost Edge extends the gateway's governance to those machines. It inventories MCP servers configured in Claude Code, Claude Desktop, Cursor, Codex, OpenCode, and Antigravity, and enforces allow and deny decisions on each device. Edge requires Bifrost Enterprise, and gateway guardrails, budgets, and audit logs apply to that traffic.
Best for: Platform teams that want one self-hosted control plane for MCP tools and model traffic, with per-user upstream credentials and a path to air-gapped or regulated deployments. The MCP gateway overview summarizes the feature set.
#The other MCP gateways, ranked 2 to 9
Each of the next eight fits a narrower case than Bifrost. The order weights auth and per-tool control highest, then how much operating work each asks of a platform team.
#2. agentgateway
agentgateway is an Apache 2.0 proxy written in Rust that carries MCP, A2A, LLM, and ordinary HTTP and gRPC traffic in one data plane. It was donated to the Linux Foundation in 2025 and runs as a standalone binary or on Kubernetes through the Gateway API. Version 1.7.0 shipped on October 27, 2026.
It federates MCP servers into one virtual backend over stdio or Streamable HTTP and can expose OpenAPI endpoints as tools. Authorization rules are CEL expressions evaluated per MCP method, so a rule can allow a tool only for callers whose JWT carries a given claim. Guardrail processors can reject or mask tool calls, and tool calls emit metrics, logs, and traces. The docs describe standalone mode as ClickOps and Kubernetes mode as GitOps, so pick the mode before you write policy.
Best for: Kubernetes platform teams that want one open-source proxy for MCP, A2A, and LLM traffic, with policy written as CEL.
#3. IBM ContextForge
IBM ContextForge is an Apache 2.0 registry and proxy that federates MCP servers, A2A agents, and REST or gRPC APIs. Version 1.1.1 shipped on November 10, 2026, through PyPI, container images, and a Helm chart.
You register tools from many sources, then compose a virtual server from the ones a use case needs. It translates REST and gRPC services into MCP tools, speaks stdio, SSE, WebSocket, and Streamable HTTP, and adds rate limiting and OpenTelemetry tracing. Access has two layers that must both pass: team token scoping and RBAC. SQLite is the default database, arm64 images are not supported in production, and the docs state no IBM support commitment.
Best for: Teams turning many internal REST and gRPC services into governed MCP tools, who can run a Python service with PostgreSQL.
#4. Kong AI Gateway
Kong AI Gateway adds MCP to an API gateway many teams already run. The AI MCP Proxy plugin turns existing Kong routes into MCP tools or proxies MCP servers, with per-tool ACLs by consumer group. The AI MCP OAuth2 plugin validates tokens against an external authorization server, based on OAuth 2.1.
From version 3.12, MCP audit logs capture session IDs, JSON-RPC methods, payloads, latencies, and errors, and Kong's rate-limiting plugins apply to MCP routes. Both MCP plugins need the AI Gateway Enterprise offering, and the MCP Registry is a tech preview.
Best for: Organizations that already run Kong and want existing APIs exposed as MCP tools under the same consumers and logs.
#5. Cloudflare MCP server portals
Cloudflare MCP server portals put up to 120 MCP servers behind one URL, with sign-in through Cloudflare Access, managed OAuth for non-browser clients, and service tokens for machines. Admins switch tools on or off, can hide everything by default, and can rename tools with aliases. Portals reach private servers through Cloudflare Tunnel and offer a Code Mode.
Cloudflare runs the portal, so there is nothing to host or patch. stdio servers need an HTTP wrapper, Logpush export of portal logs is Enterprise-only, and the docs warn that a blocked user can still reach a server's direct URL unless Access is its OAuth provider.
Best for: Teams already on Cloudflare One that want managed SSO in front of remote MCP servers.
#6. Obot
Obot is an AI governance platform with MCP and LLM gateways, MCP hosting, and a registry, MIT-licensed in every edition. It runs on Docker, on Kubernetes, or as Obot Cloud, and version 0.28.1 shipped on November 13, 2026.
You build a virtual MCP (vMCP) from catalog servers and chosen tools, then share its URL. Obot hosts npx, uvx, and container servers, grants access by user or identity-provider group, records MCP requests and responses for audit export, and runs filters that accept, reject, or modify traffic. Its Sentry agent, in beta, scans employee devices for AI clients and MCP servers. Obot is pre-1.0, and version 0.28 moved all model traffic onto a new LLM gateway that cannot be turned off.
Best for: Teams that want to host and catalog MCP servers for employees on their own cluster, open source end to end.
#7. Agent Router (formerly Envoy AI Gateway)
Agent Router is the new name for Envoy AI Gateway, which joined the Agentic AI Foundation on September 9, 2026, keeping its code, maintainers, and Apache 2.0 license. Version 1.2.1 shipped on November 6, 2026.
Its MCP gateway runs on Envoy and merges MCP servers into one endpoint configured as Kubernetes resources, with tool selectors, OAuth that follows the MCP authorization spec, and rules on JWT claims or CEL. MCP requests produce OpenTelemetry traces and Prometheus metrics on the same stack as LLM traffic. Its docs list Streamable HTTP at revision 2025-06-18 as the transport, and installation needs Envoy Gateway first.
Best for: Teams already running Envoy Gateway that want MCP and LLM routing in one data plane.
#8. Docker MCP Gateway
Docker MCP Gateway is the MIT-licensed docker mcp plugin behind the MCP Toolkit in Docker Desktop. It runs each catalog server in its own container, started on first use, and tool containers get 1 CPU, 2 GB of memory, and no host filesystem access unless you grant a mount.
That container isolation matches the spec's advice to sandbox stdio servers that a proxy launches. Catalog images are signed with an SBOM, secrets stay in Docker's store, and profiles turn tools on or off. The docs describe no per-user identity, and Docker sells a multi-user MCP Gateway through invite-only Docker AI Governance.
Best for: Developers who want local MCP servers isolated in containers on their own machine.
#9. Microsoft MCP Gateway
Microsoft MCP Gateway is an MIT-licensed reverse proxy and management layer for MCP servers on Kubernetes, with Bicep templates for AKS. It registers servers and tools through a control-plane API, deploys tool servers as containers, and authenticates with Entra ID, using app roles per server and tool.
The current version accepts only MCP 2026-07-28 clients and adapters, with no legacy initialization or downgrade. A client that has not upgraded to 2026-07-28 cannot connect.
Best for: Azure teams on AKS that want an Entra-governed MCP control plane and run only 2026-07-28 clients.
#Tool definitions are a cost line
Every tool a gateway exposes sends its name, description, and schema to the model on each request, so a large catalog can cost more tokens than the task. Bifrost and Cloudflare both ship a Code Mode for this.
Code Mode in Bifrost replaces the catalog with four generic tools. The model lists servers, reads Python stubs for the ones it needs, and submits a script that runs in a sandboxed Starlark interpreter, so intermediate results stay out of the context. In the Bifrost team's published benchmark at 508 tools across 16 servers, input tokens fell from 75.1 million to 5.4 million, and all 65 tasks passed in both modes.
Code Mode is aimed at deployments with three or more servers; below that, per-caller filtering keeps the catalog small. Cloudflare's version reduces upstream tools to a search tool and a tool that runs JavaScript in an isolated Worker. The Bifrost MCP gateway resource page covers the benchmark setup, and context engineering covers trimming tool definitions from the prompt side.
#Which MCP gateway fits your team
The best MCP gateway depends on where your servers run and which platform you already operate. Bifrost is the default for a self-hosted control plane, and the table gives one pick per situation.
| Situation | Pick | Why |
|---|---|---|
| Self-hosted control plane for tool and model calls | Bifrost | Same virtual keys, budgets, and logs for both |
| Kubernetes team with GitOps policy | agentgateway or Agent Router | CEL policy, one data plane |
| Many REST and gRPC services to expose | IBM ContextForge, or Kong if it fronts them | Translation to MCP tools |
| No gateway to operate | Cloudflare MCP server portals | Managed SSO and allowlists |
| Hosting MCP servers for employees | Obot | Catalog, hosting, and vMCPs |
| One developer's laptop | Docker MCP Gateway | A container per server |
| AKS, Entra ID, 2026-07-28 clients only | Microsoft MCP Gateway | Entra roles per tool |
A gateway governs only the traffic sent to it. If people configure MCP servers in their own tools, plan for endpoint coverage too, such as Bifrost Edge or the Obot Sentry agent.
#Test a gateway before you commit
A two-week pilot with real servers tests the failure cases a feature table cannot show. Run these checks on your top two candidates:
- Register a stdio server, a remote HTTP server that uses OAuth, and one built from an OpenAPI document.
- Create two identities with different tool allow-lists, and confirm
tools/listdiffers for each. - Call a tool the second identity cannot see directly with
tools/call, and confirm the gateway rejects and logs it. - Revoke one person's upstream credential, and confirm only their calls fail.
- Time 1,000 tool calls against one server with and without the gateway, and record median and 99th-percentile overhead.
- Export a day of tool-call logs into your SIEM and confirm each entry names the caller, tool, and result.
#Questions
What is an MCP gateway?
An MCP gateway is a proxy between AI clients and Model Context Protocol servers. Clients connect to one gateway endpoint, and the gateway connects to each server, merges their tool lists, checks every tool call against the caller's permissions, attaches the right upstream credential, and logs the call. The MCP specification's security guidance calls this component an MCP proxy server.
What is the difference between an MCP gateway and an API gateway?
An API gateway authorizes requests by route and method. An MCP gateway reads the JSON-RPC body, so it can allow or deny individual tools, prompts, and resources, merge tool lists from many servers, and hold a separate credential for each upstream server. Kong and agentgateway can do both jobs. Otherwise, keep the API gateway at the edge and put an MCP gateway in front of tools.
Do I need an MCP gateway?
You need an MCP gateway once two or more hosts or teams share MCP servers, a remote server holds user data, or someone must answer which tools an agent called and for whom. One developer running local stdio servers in one host does not need one. At that size, securing each server by hand is less work, as long as each server validates its own inputs and tokens.
What is the best open-source MCP gateway?
Bifrost is the best open-source MCP gateway as of November 16, 2026. Its Apache 2.0 core includes per-virtual-key tool filtering, Virtual MCPs, per-user upstream OAuth, OAuth 2.1 sign-in for clients, and Code Mode. agentgateway and IBM ContextForge are strong Apache 2.0 alternatives, and Obot is MIT-licensed in every edition. Bifrost Enterprise adds token exchange, audit logs, and guardrails.
How does an MCP gateway improve MCP security?
An MCP gateway gives every tool call one checkpoint. It authenticates the caller, allows only listed tools, keeps upstream credentials off laptops, and logs each call. A gateway can also add risk, so the MCP security guidance requires proxies to get per-client consent, never pass tokens through, and sandbox stdio servers. Servers configured on laptops bypass it unless endpoint tooling routes them through.
Can an MCP gateway reduce token costs?
Yes. Every exposed tool adds its schema to each model request, so filtering tools per caller cuts input tokens directly. Code Mode in Bifrost goes further by replacing the catalog with four generic tools and running a model-written script in a sandbox. In the Bifrost team's published benchmark at 508 tools, input tokens fell 92.8 percent, from 75.1 million to 5.4 million.
Does an MCP gateway add latency?
Every gateway adds a network hop and some processing per call. The Bifrost team's published benchmark puts Bifrost at about 11 microseconds of overhead per request at 5,000 requests per second on one t3.xlarge instance. That figure covers model requests, not tool calls, so time 1,000 tool calls against the same server with and without the gateway before you decide.