Operations & Gateways
Open Source MCP Gateways: Five Projects Compared
By MCP Beast·
An open source MCP gateway gives you the source, the license and the deployment, along with the work of running it. Several credible projects exist, and they solve different problems: one targets Kubernetes, one targets a developer's Docker workflow, one is a general agent proxy, one is a registry-style federation layer and one is a small transport bridge.
This guide compares five public repositories using only what their READMEs and repository metadata state on 2026-11-25. Where a README does not say, the table says “not documented.” That is not a claim the feature is absent; it means we did not find it in the source we read. It is a map, not a ranking and not a benchmark, and we ran none of these projects for this article.
For the buyer-side process of pilots, scorecards and cost sheets, read how to choose an MCP gateway. For the definition and the problems a gateway addresses, read what is an MCP gateway. This article stays on one question: among open source options, what does each project document, and what will you have to operate?
How we sourced the comparison
We read each project's top-level README and the repository's license field on the GitHub API. The facts below come from those two sources and nothing else. Projects move quickly, and several of these repositories were updated within days of this date, so treat every row as a snapshot and re-read the README before you commit.
We dropped any candidate whose license or MCP gateway capability we could not confirm from the repository itself. Inclusion is not endorsement, and omission is not a verdict.
Five open source MCP gateway and proxy projects
| Project | License | Transports documented | Auth and policy documented |
|---|---|---|---|
| microsoft/mcp-gateway | MIT | Streamable HTTP; requires MCP 2026-07-28 clients and does not provide legacy initialization or sessions | Microsoft Entra ID bearer tokens; application roles such as mcp.admin, plus per-resource requiredRoles; creator-based read and write rules |
| docker/mcp-gateway | MIT | stdio (default run mode), plus sse and streaming transports for multiple clients | Secrets via Docker Desktop secrets management; OAuth flows for servers that need them; per-profile tool enable and disable lists; inbound caller authentication not documented |
| IBM/mcp-context-forge | Apache-2.0 | HTTP, JSON-RPC, WebSocket, SSE and Streamable HTTP; stdio available for server-side use | Basic, JWT or custom auth; user-scoped OAuth tokens; RBAC listed among security features; rate limiting and retries |
| agentgateway/agentgateway | Apache-2.0 | stdio, HTTP, SSE and Streamable HTTP for MCP; also OpenAPI integration | JWT, API keys and OAuth; RBAC with a CEL policy engine; rate limiting and TLS |
| sparfenyuk/mcp-proxy | MIT | stdio to SSE or Streamable HTTP, and SSE or Streamable HTTP to stdio | Optional single shared bearer token for inbound requests; OAuth2 client ID and secret, username and password, or digest options toward an upstream server |
Licenses come from each repository's GitHub license field; transport and auth entries are paraphrased from the READMEs. A second view covers deployment, discovery and observability.
| Project | Primary deployment shape | Discovery and catalog | Observability and audit documented |
|---|---|---|---|
| microsoft/mcp-gateway | Kubernetes; local Docker Desktop Kubernetes or an Azure deployment | Adapters and registered tools managed through a REST control plane, with a management portal | README mentions telemetry and observability integration points and Application Insights in the Azure template; a dedicated audit log is not documented |
| docker/mcp-gateway | Docker CLI plugin, with or without Docker Desktop | Docker MCP Catalog, custom OCI catalogs and profiles | “Built-in logging and call tracing”; a durable audit store is not documented |
| IBM/mcp-context-forge | PyPI package or container; Kubernetes with Redis for multi-cluster setups | Registry for tools, prompts and resources; federation across MCP, A2A and REST services; Admin UI | OpenTelemetry tracing, Prometheus metrics, structured logs and a log viewer; federation headers record source gateway and user |
| agentgateway/agentgateway | Standalone binary driven by YAML, or Kubernetes with a controller and Gateway API | Tool federation across MCP servers; built-in UI | OpenTelemetry metrics, logs and tracing |
| sparfenyuk/mcp-proxy | Single process started by a client or a container | Named stdio servers under /servers/NAME/, with a /status endpoint | --log-level and --debug options; no audit feature documented |
Two details deserve emphasis because they change what “open source gateway” means. The Microsoft project's README describes a reverse proxy and management layer for MCP servers in Kubernetes, and it states a breaking change: this version requires MCP 2026-07-28 clients. The mcp-proxy README says its optional shared token “does not provide user identity or roles and does not make the proxy compliant with MCP OAuth.” Both are honest scoping statements, and both matter when you match a project to a requirement.
What each project is, in plain terms
microsoft/mcp-gateway describes itself as a reverse proxy and management layer for MCP servers on Kubernetes. It separates a data plane that routes each request from a control plane that deploys, updates and deletes MCP servers. It also documents a tool gateway router that directs tool calls to registered tool servers. The fit is a team already running Kubernetes that wants server lifecycle managed in the same place as routing.
docker/mcp-gateway is the code of the docker-mcp CLI plugin behind Docker's MCP Toolkit. Its documented strengths are running catalog servers in isolated containers, organizing servers into profiles and connecting several clients to one configuration. The README says it can work in Docker Desktop or independently, with some documented flags for environments without Desktop. The fit is a developer or small team standardizing local and shared tool setups.
IBM/mcp-context-forge presents itself as an open source registry and proxy that federates MCP servers, A2A agents and REST or gRPC APIs. It documents an Admin UI, plugins, Redis-backed caching and several tracing backends. The README notes that JWT_SECRET_KEY and AUTH_ENCRYPTION_SECRET are required in every environment, which is a useful hint about the secret handling you take on.
agentgateway describes an open source proxy for MCP, A2A and LLM traffic, hosted as a Linux Foundation project. Its README covers tool federation and a policy engine, and it positions one proxy across agent-to-tool, agent-to-agent and agent-to-LLM paths. That scope suits teams that want one data plane for several traffic types.
mcp-proxy is a transport bridge. It lets a stdio-only client reach a remote SSE or Streamable HTTP server, or exposes a local stdio server over HTTP. It also supports named servers behind one port. It is the smallest project here and the clearest about what it does not do: no user identity, no roles.
For the vocabulary behind these roles, see the gateway, proxy and router comparison. Placing mcp-proxy beside a Kubernetes control plane in one table is only fair if you remember they sit at different layers.
Evaluation criteria that matter for open source
A license grants freedom to run and change the code. It does not grant uptime, security review or a roadmap. Score each candidate against these four criteria, and mark anything the README does not state as unknown until you test it.
Self-hosting effort
Count the components you will run. A single process started by a client is a different commitment from a control plane, a data plane, a metadata store and an identity provider. Check the documented prerequisites: a Kubernetes cluster, Docker Desktop, a Python runtime, Redis or a cloud database. Then ask who patches each one, who upgrades across protocol revisions and who is paged when it fails.
Protocol revision deserves its own line. A gateway that requires one specification revision, as the Microsoft README does, constrains which clients can connect. A gateway that offers a choice of revision moves that decision to you. Record the revision at each hop, as the buyer guide suggests for pilots.
Authentication and policy
Separate three questions. Who may call the gateway? Which tools may that caller reach? How are downstream credentials stored and used? The table above shows projects answering them very differently, from a single shared inbound token to Entra roles, JWT with a CEL policy engine or Docker's secrets store.
Do not assume a feature named “RBAC” covers your case. Test a denied call, a hidden tool that is still invoked directly and a revoked credential. A README line states intent; a recorded denial is evidence.
Catalog and discovery at scale
Discovery has two meanings. One is how an operator registers and organizes servers, which is where catalogs, registries and profiles matter. The other is how an agent finds the right tool among many, which depends on descriptions, naming and any search layer. None of the READMEs we read documents how an agent's tool selection holds up across a large catalog, so test it with your own tool set. The tool search guide covers qualified tool identity and stale schemas, and the server registry guide covers the operator side.
Audit
Logging is not the same as audit evidence. Ask whether the project records the caller identity, the connection, the tool, the policy decision and the outcome, including denials and upstream failures. Ask where records live, how long they are kept and who can alter them. Several projects document tracing or logs; none of the READMEs we read describes a tamper-resistant audit store. If audit is a requirement, plan to export traces to a system you control and review what they contain. The AI agent audit logs guide separates diagnostic output from action evidence.
Matching a project to a situation
These are fit hypotheses drawn from the documented scope, to be confirmed in a pilot.
- One developer, local clients that only speak stdio: a transport bridge like mcp-proxy is the smallest change.
- A team sharing a vetted set of containerized servers: Docker's profiles and catalogs align with that workflow.
- A platform team on Kubernetes that wants lifecycle plus routing: Microsoft's control plane and data plane split addresses that shape, provided your clients support the required revision.
- A broad federation across MCP, REST and agent protocols with an admin UI: ContextForge documents that scope.
- One proxy for tool, agent and model traffic with a policy engine: agentgateway documents that scope.
When a hosted router fits instead
Open source is the right choice when you need control of the code, the network placement or the data path, and you have people to operate it. It is a poor fit when the operating cost outweighs the control you gain.
A hosted router can fit better in these situations:
- The team lacks capacity to patch, upgrade and monitor another service, and an outage in the gateway would block everyone's agents.
- Many people need sign-in to many third-party services, and building and maintaining that connector and token handling is the main cost.
- You want one managed endpoint for a large, changing catalog without hosting each server process yourself.
- Procurement prefers a vendor support relationship over community support.
Hosting does not remove your responsibilities. You still own access policy, the review of what is connected and the decision about which data may leave your boundary. Evaluate a hosted option with the same pilot, the same denied-call and revocation tests and the same exit path as any open source project. MCP Beast is a hosted router, so weigh our view accordingly and compare it against the projects above on the evidence you collect.
Mixing is common: a bridge locally, a self-hosted gateway for internal servers and a hosted router for third-party SaaS connectors. Decide per workload.
Frequently Asked Questions
What is an open source MCP gateway?
It is a gateway or proxy for Model Context Protocol traffic whose source code is published under an open source license. You deploy and operate it yourself, which gives control of placement and code but makes you responsible for patching, availability and security review.
Is an open source MCP gateway free to run?
The license may carry no fee, but operating it does not. Count hosting, storage, identity services, upgrades, monitoring and engineering time before comparing it with a managed service.
Do these projects all support the same MCP transports?
No. The READMEs document different sets, from Streamable HTTP only to stdio, SSE and Streamable HTTP together. Confirm the transports and protocol revision your clients and servers use before choosing.
When should I choose a hosted router instead?
Choose it when you lack capacity to operate a gateway, need managed sign-in across many third-party services or want a single managed endpoint for a changing catalog. Run the same pilot tests against it as you would an open source project.
If you want a hosted option to put through that same evidence-based pilot, evaluate MCP Beast alongside the open source projects above. Bring your clients, your servers and your mandatory tests, and compare what each one records.