# Best MCP gateways 2026: open-source and self-hosted options

> Which MCP gateway fits which job in 2026: ToolMesh, IBM ContextForge, Obot, Docker MCP Gateway, lunar.dev MCPX, Microsoft MCP Gateway, ToolHive, agentgateway, Kong and more. A short answer, one table, and six questions that decide the choice.

Canonical: https://www.toolmesh.io/en/best-mcp-gateways/

**Short answer:** there is no single best MCP gateway; the right one depends on the job. To run third-party MCP servers safely, look at **Docker MCP Gateway** (container isolation, signed images). For MCP, A2A and REST/gRPC behind one endpoint with enterprise maturity, **IBM ContextForge**. For a complete user-facing platform with its own chat client, **Obot**. For traffic visibility and rate limits across many agents, **lunar.dev MCPX** (now Boomi MCP Gateway). To turn REST APIs into MCP tools without writing a server, with authorization on by default and grants a person approves, **ToolMesh**. As a routing layer for MCP servers you already run on Kubernetes, **Microsoft MCP Gateway** or **agentgateway**.

:::note[Who wrote this]
We build ToolMesh. This page therefore sorts gateways by job instead of ranking them. Every statement about another project comes from our [detailed MCP gateway comparison](/en/mcp-gateway-comparison/), where each claim links to that project's own documentation. **As of 21 November 2026.**
:::

## Which MCP gateway for which job

| If you need … | Look at | Why | License |
| --- | --- | --- | --- |
| REST APIs as MCP tools, without writing an MCP server | [ToolMesh](https://github.com/DunkelCloud/ToolMesh) | One declarative [DADL](/en/dadl/) file per API; authorization on by default, credential injection, output gate, SQL audit trail, time-limited grants a person signs | Apache-2.0 |
| MCP, A2A and REST/gRPC behind one endpoint | [IBM ContextForge](https://github.com/IBM/mcp-context-forge) | Broadest open-source gateway; RBAC, encrypted per-user credentials, 40-plugin guardrail framework; Python service | Apache-2.0 |
| A complete, user-facing platform with a chat client | [Obot](https://github.com/obot-platform/obot) | Self-service catalog, RBAC, credential isolation; some enterprise SSO is a paid add-on | MIT (open-core) |
| Running untrusted third-party MCP servers safely | [Docker MCP Gateway](https://github.com/docker/mcp-gateway) | Each server in its own container, Docker-signed images with SBOM, large curated catalog; needs a Docker runtime | MIT |
| Visibility and rate limits across many agents | [lunar.dev MCPX](https://github.com/TheLunarCompany/lunar) | Metrics and traffic control; risk scoring is Enterprise; now part of Boomi | MIT (open-core) |
| Routing MCP servers you already run on Kubernetes | [Microsoft MCP Gateway](https://github.com/microsoft/mcp-gateway) | Session-aware routing and lifecycle management; does not convert REST APIs | MIT |
| Container isolation with a policy language | [Stacklok ToolHive](https://github.com/stacklok/toolhive) | Each MCP server in its own container, Cedar policies, OIDC, audit | Apache-2.0 core + commercial |
| A data plane for MCP and A2A | [agentgateway](https://agentgateway.dev/) | Linux Foundation project; RBAC and tool federation | Apache-2.0 |
| MCP on an existing Envoy stack | [Envoy AI Gateway](https://aigateway.envoyproxy.io/) | LLM-traffic gateway that added MCP aggregation, OAuth and tool filtering | Apache-2.0 |
| REST APIs as MCP tools, for APIs already in Kong | [Kong AI Gateway](https://developer.konghq.com/plugins/ai-mcp-proxy/) | AI MCP Proxy plugin; Kong policies apply | Commercial |
| Zero-trust access in front of MCP servers | [Pomerium](https://www.pomerium.com/) | Identity-aware proxy with OAuth and tool-level access policy; does not create tools | Apache-2.0 + managed |
| A small self-hosted registry and gateway | [MCPJungle](https://github.com/mcpjungle/MCPJungle) | Aggregates several MCP servers behind one endpoint | MPL-2.0 |
| Config-driven REST or gRPC to MCP, small footprint | [Unla](https://github.com/AmoyLab/Unla) | Lightweight Go gateway driven by config files | MIT |

The first five are compared feature by feature, with sources, in the [MCP gateway comparison](/en/mcp-gateway-comparison/).

## What is an MCP gateway?

An MCP gateway sits between AI agents and the tools they call. Agents (MCP clients such as Claude, ChatGPT or Cursor) connect to one endpoint instead of to every MCP server or API separately. The gateway decides which tools each caller sees and may call, holds the credentials for the backends, and records every call. Without a gateway, each agent connects to each server directly, each connection carries its own credentials, and no single place shows who called what.

What an MCP gateway typically does:

- **One endpoint** for many MCP servers or APIs (aggregation, also called federation).
- **Client authentication**, for example OAuth 2.1 as the MCP authorization spec describes it, or API keys.
- **Authorization** per user and per tool, ideally deny by default.
- **Credential isolation**: API keys stay on the gateway; the model never sees them.
- **Output filtering**: redact secrets or personal data before a result reaches the model.
- **Audit**: a record of every call, with caller, tool, parameters and result status.
- **Context economy**: load tool definitions on demand instead of sending hundreds of schemas to the model.

**MCP gateway, MCP proxy, API gateway.** An API gateway manages HTTP APIs for any kind of client. An MCP proxy forwards MCP traffic, often to bridge transports. An MCP gateway works at the level of MCP tools: it knows which tool a call targets and applies identity, policy, credentials and audit to it. Several API gateways (Kong, Envoy) have added MCP features, which is why the categories overlap.

## How to choose an MCP gateway

Six questions settle most choices:

1. **Where do your tools come from?** If you already run MCP servers, any aggregating gateway works. If your systems only have REST APIs, you need a gateway that turns REST into MCP tools: ToolMesh (one declarative file per API), Kong (for APIs onboarded into Kong), Unla (config files), or IBM ContextForge (one endpoint at a time).
2. **Who may call what?** Check whether per-user, per-tool authorization is on out of the box, or whether a fresh install allows everything until someone configures it.
3. **Where do credentials live?** The model should never see an API key. Check whether this also holds for REST tools, not only for OAuth-connected servers.
4. **Do you run servers you did not write?** Then container isolation and signed images matter most: Docker MCP Gateway, ToolHive.
5. **What must the audit show later?** A log line per call, a queryable trail, or proof of who approved an agent's rights.
6. **How do you want to run it?** A single binary, Docker Compose, Kubernetes, or a managed service.

## Open source, self-hosted or managed?

A self-hosted gateway keeps tool definitions, credentials and audit data in your own environment. That is usually the reason to self-host one. Open source does not always mean the whole feature set is free: several gateways are open-core, with SSO, risk scoring or deeper governance in a paid tier. The table above names these cases. Managed MCP gateways from API and AI platform vendors (for example Composio and TrueFoundry) take the operations work off your hands, in exchange for running your tool traffic through someone else's service.

## Where ToolMesh fits

ToolMesh is a self-hosted MCP gateway in a single Go binary, Apache 2.0. It turns REST APIs into MCP tools from one declarative [DADL](/en/dadl/) file per API and puts existing MCP servers behind the same endpoint. Every call passes the same pipeline: authentication, [authorization](/en/authorization/) (on by default), [credential injection](/en/authentication/), [output gate](/en/output-gate/), audit. Agents can ask for the rights a task needs; a person approves the [kit](/en/kits/) for a limited time and signs the approval.

What it does not do: run MCP servers in per-server containers (use Docker MCP Gateway or ToolHive for that, ToolMesh can sit in front), or speak A2A and gRPC (IBM ContextForge does). To try it, open the [live demo](/en/demo/) or follow [Getting Started](/en/getting-started/).

<script type="application/ld+json" set:html={JSON.stringify(pageGraph)} />

## Frequently asked questions

{faqs.map(({ q, a }) => (
  <Fragment>
    <h3>{q}</h3>
    <p>{a}</p>
  </Fragment>
))}

---

*Maintained by [Dunkel Cloud GmbH](https://www.dunkel.cloud), the team behind ToolMesh. **Last updated: 21 November 2026.** The MCP gateway category moves fast; check current feature sets before deciding. Corrections are welcome via [GitHub](https://github.com/DunkelCloud/ToolMesh/issues).*
