Technical

Best MCP Gateways in 2026: 7 Open Source and Managed Options

Best MCP gateways compared on auth, quotas, billing, hosting model and license: Docker MCP Gateway, ContextForge, agentgateway, Cloudflare, Composio, MCPize.

Oleg Kopachovets
CEO & Founder
Published 8 min read
Several MCP clients on the left connect through one gateway block to a row of MCP servers on the right

The best MCP gateway depends on who runs it and what it must enforce. Docker MCP Gateway, IBM ContextForge and agentgateway are open source and self-hosted. Cloudflare MCP server portals and Composio are managed and built for company-wide control. MCPize is managed and adds billing. All of them put one authenticated endpoint in front of many MCP servers.

I run one of the seven, so read this with that in mind. I checked each project's own docs or repository on December 3, 2026, and where a feature is not documented I say so instead of guessing.

What is an MCP gateway?#

An MCP gateway sits between MCP clients (Claude, Cursor, your own agent) and MCP servers. The client connects to the gateway. The gateway checks who is calling, decides which servers and tools that caller may use, adds the credentials the server needs, and records the call.

Without one, every client holds a separate login for every server. Three people using five servers means fifteen sets of credentials and no single place to see what was called. A gateway turns that into one endpoint and one log.

Gateways differ on five points, and the rest of this post compares them on exactly these. Auth is how a caller proves identity: an API key, a JWT, OAuth, or your company's identity provider. Quotas are whether the gateway can limit how much each caller uses. Billing is whether it can charge someone for that usage. The hosting model is whether you run it or the vendor does. And the license is open source or not.

MCP gateways compared#

GatewayOpen sourceHosting modelAuthQuotasBilling
Docker MCP GatewayYes, MITSelf-hosted, runs servers in containersStored secrets and OAuth flows for upstream serversNot documentedNone
IBM ContextForgeYes, Apache 2.0Self-hosted: PyPI, Docker, KubernetesBasic, JWT or custom, plus user-scoped OAuth tokensRate limiting built inNone
agentgatewayYes, Apache 2.0Self-hosted: standalone or KubernetesJWT, API keys, OAuth, RBAC policiesRate limiting built inNone
Microsoft MCP GatewayYes, MITSelf-hosted on KubernetesEntra ID with application rolesNot documentedNone
Cloudflare MCP server portalsNoManaged, part of Cloudflare AccessYour identity provider through Access, or service tokensNot documentedNone for tool usage
Composio MCP GatewayNo (SDK is MIT)Managed, own cloud on EnterpriseManaged OAuth per app, SSOTool-call allowance per planYou pay Composio per tool call
MCPize GatewayNoManagedOAuth 2.1 and API keysPer planUsage billing for your server's customers

"Not documented" means I did not find the feature in the project's docs. It may still be possible with something you put in front of the gateway.

The open source MCP gateways#

Docker MCP Gateway#

Docker MCP Gateway is the one most people meet first, because it ships with Docker Desktop's MCP Toolkit. Docker calls it its "open source solution for orchestrating Model Context Protocol (MCP) servers". The code is MIT licensed and lives at docker/mcp-gateway.

Its distinguishing idea is that every server runs in its own container. When a client asks for a tool, the gateway finds the server that owns it, starts the container if needed, injects credentials and forwards the request. The docs describe restricted privileges, network access and resource usage per container, with logging and call tracing built in. Profiles decide which servers a given client sees.

It fits a developer machine or a small team that already runs Docker. It has no metering or billing, and it is not a hosted service: on plain Docker Engine you install the binary as a CLI plugin yourself.

IBM ContextForge#

ContextForge describes itself as an open source registry and proxy that federates MCP servers, A2A agents and REST or gRPC APIs behind one endpoint. It is Apache 2.0 licensed and installs from PyPI or as a Docker image, with Redis-backed federation for multi-cluster setups on Kubernetes.

It has the widest scope of the open source group. The README lists an admin UI, built-in auth, retries and rate limiting, user-scoped OAuth tokens and distributed tracing. It can also wrap a plain REST API so that it shows up as MCP tools.

Pick it when you want one self-hosted control point for MCP and non-MCP services and you have people to operate it. The gateway will not start without a JWT secret and an encryption secret, which tells you who it was built for.

agentgateway#

agentgateway is an Apache 2.0 proxy for agent traffic: agent to tool over MCP, agent to agent over A2A, and agent to model. For MCP it federates tools across stdio, HTTP, SSE and Streamable HTTP transports and can expose an OpenAPI service as tools.

Security is the detailed part. The README lists JWT, API key and OAuth authentication, role-based access control written as CEL policies, rate limiting, TLS and OpenTelemetry output. It runs standalone from a YAML file or on Kubernetes through its own controller and the Gateway API.

Pick it if your platform team already thinks in terms of proxies and policies and wants MCP traffic handled the same way as the rest.

Microsoft MCP Gateway#

Microsoft's mcp-gateway is an MIT licensed reverse proxy and management layer for MCP servers on Kubernetes. It registers servers and tools, routes requests to them and manages their lifecycle. Authentication uses Entra ID with application roles.

One detail matters before you adopt it. The README states that the current version requires clients that speak the 2026-07-28 MCP revision and offers no downgrade to older transports. Check your clients first.

The managed MCP gateways#

Cloudflare MCP server portals#

Cloudflare's MCP server portals put several MCP servers behind a single HTTP endpoint inside Cloudflare Access. A user signs in through the company identity provider, and the portal returns only the tools an admin enabled for it.

Admins can rename tools and edit their descriptions without touching the upstream server. Access logs each tool request, and portal traffic can be routed through Cloudflare Gateway for data loss prevention scanning. Cloudflare's changelog lists general availability on September 24, 2026.

This is a tool for IT teams that already use Cloudflare for employee access. It controls who inside the company may reach which tools. It does not meter or bill.

Composio MCP Gateway#

Composio offers a managed MCP gateway with action-level access control and an audit trail, on top of a catalog of 2,000+ apps. Composio builds the tools and runs the OAuth flow for each app, so your agent gets Gmail or Salesforce actions without you writing a server.

You pay Composio for usage. Its developer platform includes 100,000 tool calls a month for free, then $29 a month with usage credit. The Enterprise plan adds SCIM, log streaming and deployment in your own cloud. If you are weighing it against other options, we keep a separate page on Composio alternatives.

MCPize Gateway#

The MCPize gateway sits in front of MCP servers hosted on MCPize, and it can also front servers hosted elsewhere. Clients authenticate with an API key or with OAuth 2.1, including PKCE and dynamic client registration. One account and one key cover every server behind it.

None of the other six documents billing on behalf of a third party, and that is the gap MCPize fills. A developer publishes a server, sets a price, and the gateway enforces the plan's quota and meters each call. Developers keep 80% of what their server earns. Free accounts include 25,000 gateway requests a month.

The limits are real. It is not open source and you cannot run it yourself. Hosting covers TypeScript and Python servers only. And it does not come with a catalog of first-party SaaS connectors the way Composio does.

How to choose#

Start with who the callers are.

If it is just you on one machine, use Docker MCP Gateway. It is free, local, and isolates each server in a container.

If the callers are your own engineers and agents on infrastructure you run, choose between ContextForge and agentgateway. ContextForge gives you a registry and an admin UI. agentgateway gives you a proxy with a policy engine. On Azure with Entra ID, look at Microsoft's gateway.

If the callers are all employees and IT manages access, use Cloudflare portals when you already have Cloudflare Access, or Composio when you also want the tools supplied.

If the callers are paying customers outside your company, the self-hosted gateways leave sign-up, keys, quotas and invoices to you. MCPize handles those, and the price is running on our platform.

Auth deserves a closer look than a table cell allows. If several servers each need their own OAuth consent, the user experience degrades fast. We wrote up how that works and how one token can cover many servers in MCP OAuth explained.

FAQ#

What is a MCP gateway?#

An MCP gateway is a service that sits between MCP clients and MCP servers. It authenticates each request, applies access rules, adds the credentials a server needs and logs the call. Clients connect to one endpoint and reach many servers through it.

Do we need an MCP gateway?#

Not for one person and a couple of servers. A direct connection is simpler. A gateway earns its place when several people or agents share servers, when you need per-user access rules or an audit trail, or when you charge for usage.

What are the best MCP gateways?#

For self-hosting: Docker MCP Gateway for local use, IBM ContextForge or agentgateway for a team. For company-wide control without running it yourself: Cloudflare MCP server portals or Composio. For selling access to your own server: MCPize.

What is the difference between a MCP server and a MCP gateway?#

An MCP server exposes tools, resources and prompts. An MCP gateway exposes nothing of its own. It stands in front of one or more servers and decides who may call them, how often, and with which credentials.

Is Docker MCP Gateway free?#

The gateway is open source under the MIT license, and you can run it on Docker Engine at no cost. Docker's docs note that MCP Gateway as part of Docker AI Governance is a separate, invite-only offering.

More on the same topic, from the MCPize blog

View all articles