Serverdex · explainer

MCP vs MCP gateways

Plain MCP is a host holding one dedicated client connection per server; the specification has no gateway concept. A gateway is third-party software that sits in front of many servers as one endpoint and adds what the protocol leaves to the host: central authentication, secrets, policy and masking, container isolation, rate limits and tracing. Fine for a team platform; unnecessary for one developer with a handful of servers.ExplainerPublished November 22, 2026Sources read 22 November 20265 min read
Two topologies
Plain MCP
Host app
host application
GitHub
Postgres
Browser
With a gateway
Host app
host application
MCP gateway
one endpoint: auth, policy, tracing
GitHub
Postgres
Browser
Slack
Legacy REST
A2A agent

Plain MCP: the host creates one client per server, each with its own connection and its own auth (modelcontextprotocol.io/docs/learn/architecture). Behind a gateway: one endpoint fronts every server and adds central auth, secrets, policy and tracing (Docker, IBM ContextForge, Microsoft, Lasso documentation). Read 22 Nov 2026.

What moves into the gateway

Topology
Plain MCPOne client per server, created by the host; remote servers serve many clients
Behind a gatewayOne endpoint fronting N servers; profile- or policy-based routing
Authentication
Plain MCPPer server: OAuth 2.0 or bearer token, configured in the host
Behind a gatewayCentral: Entra ID with app roles (Microsoft), user-scoped OAuth tokens and injected secrets (IBM, Docker)
Policy and safety
Plain MCPPer-tool consent in the host; tool annotations treated as untrusted
Behind a gatewayToken and PII masking, guardrails against prompt injection, rate limiting (Lasso, IBM)
Isolation
Plain MCPWhatever the host does
Behind a gatewayServers run in isolated containers with restricted privileges (Docker) or on Kubernetes (Microsoft)
Observability
Plain MCPPer-server logs
Behind a gatewayCentral logging, call tracing, OpenTelemetry (Docker, IBM)
Non-MCP backends
Plain MCPNot covered
Behind a gatewayREST, gRPC and A2A services virtualised as MCP tools (IBM ContextForge)

1. What MCP gives you without a gateway

In the MCP architecture the host application creates one client per server and each client keeps a dedicated connection; a remote server typically serves many such clients. Transport is stdio for local servers and Streamable HTTP for remote ones, OAuth is the recommended authorization, the specification requires explicit user consent before a tool runs, and hosts that federate many servers are pointed at progressive tool discovery. Nothing in the specification describes a gateway; everything in the next section is added by vendors on top.

2. What the gateways add, in their own words

Four open-source gateways, read on 22 November 2026, each describing a different emphasis.

  • Docker MCP Gateway (MIT): "Docker's open source solution for orchestrating Model Context Protocol (MCP) servers"; a middle layer for setup, credentials and permissions that runs servers in isolated containers with restricted privileges, with built-in logging and call tracing, OAuth flows and profile-based routing.
  • IBM ContextForge (Apache-2.0): federates any MCP server, A2A server or REST/gRPC API, virtualises legacy APIs as MCP-compliant tools, with built-in auth, retries and rate limiting on user-scoped OAuth tokens and OpenTelemetry tracing.
  • Microsoft MCP Gateway (MIT): "a reverse proxy and management layer for MCP servers" on Kubernetes, with Entra ID authentication and app-role authorization, now stateless request routing.
  • Lasso MCP Gateway (MIT): an intermediary that sanitises calls through plugins for token masking, Presidio PII masking and a guardrail against prompt injection and harmful content.

3. When you need one

The question is not performance; it is how many people and secrets sit between the model and the servers.

  • One developer, a few servers, personal credentials: no gateway. The host's OAuth and consent are enough, and a gateway is one more thing to run.
  • A team sharing servers, company secrets, or compliance requirements (who called what, PII leaving the building): a gateway, for central auth, masking and tracing.
  • Legacy APIs you want agents to use without writing a server each: a federating gateway such as ContextForge.
  • Untrusted or many third-party servers: a container-isolating gateway such as Docker's.

Where this shows up on Serverdex

44,598 MCP servers from the official registry are listed here, each with a daily credential-free live check, the tool list it exposes and the estimated token cost of its definitions — the numbers this comparison turns on.

Questions

Do I need an MCP gateway?
Not for a single developer with a handful of servers and personal credentials: the host already does OAuth and per-tool consent. A team sharing servers and company secrets, or anyone with audit, PII or isolation requirements, gets those from a gateway: central auth, masking, container isolation and tracing.
Is a gateway part of the MCP specification?
No. The specification describes one client per server inside the host, stdio and Streamable HTTP transports, OAuth and user consent. Gateways are third-party software (Docker, IBM ContextForge, Microsoft, Lasso) that sit in front of servers and add their own features.
Can a gateway expose a REST API as MCP?
IBM ContextForge does: it federates MCP servers, A2A servers and REST or gRPC APIs and virtualises legacy APIs as MCP-compliant tools. The other gateways listed focus on fronting existing MCP servers.

Sources (read 22 November 2026)

Not claimed here because it could not be read from a primary source on 22 November 2026: Docker gateway "interceptors" (not on the pages read); exact latest release versions of each gateway.

More explainers: MCP vs CLI tools · MCP vs Agent Skills · MCP vs ACP · MCP vs connectors.