Direct answer
An MCP gateway is a proxy that sits between MCP clients and MCP servers and centralizes routing, credentials, access control and server lifecycle; Docker describes its MCP Gateway as a centralized proxy between clients and servers, and Microsoft describes its MCP Gateway as a reverse proxy and management layer for MCP servers in Kubernetes. The MCP specification does not define a gateway, but its security best practices set rules for MCP proxy servers, such as per-client consent and no token passthrough.

Run an MCP gateway
Each command below comes from the official docs, read on November 12, 2026. The comment above each line says what it does.
# Runs the Docker MCP Gateway over stdio with the default profile.
docker mcp gateway run
# Runs the gateway with a specific profile, which decides which servers clients can use.
docker mcp gateway run --profile dev-tools
# Runs the gateway over streaming transport, which can serve multiple clients.
docker mcp gateway run --port 8080 --transport streaming
# Connects an AI client to a gateway profile.
docker mcp client connect <client-name> --profile <profile-id>
# Makes a manually installed gateway binary executable on Docker Engine without Docker Desktop.
chmod +x ~/.docker/cli-plugins/docker-mcpThe steps for mcp gateway
Four steps take you from the problem to a working MCP server.

- Step 1: Put the gateway between clients and servers
- Step 2: Register the servers it routes to
- Step 3: Get consent per client
- Step 4: Never pass client tokens through
How the sources describe a gateway or proxy
| Source | What it calls the gateway or proxy | Key responsibilities |
|---|---|---|
Docker MCP Gateway (docs.docker.com) | What it calls the gateway or proxy Docker's open source solution for orchestrating MCP servers; a centralized proxy between clients and servers | Key responsibilities Server lifecycle, routing, credential injection, security restrictions, logging and call tracing; servers run in isolated containers |
Microsoft MCP Gateway (GitHub README) | What it calls the gateway or proxy A reverse proxy and management layer for MCP servers in Kubernetes | Key responsibilities Stateless request routing, authorization, server lifecycle (deploy, update, delete), telemetry |
MCP specification, security best practices | What it calls the gateway or proxy MCP proxy server: an MCP server that connects clients to third-party APIs and acts as a single OAuth client to them | Key responsibilities Must implement per-client consent; must not accept tokens not issued for the MCP server |
Caveats the docs call out
- MCP Gateway as part of Docker AI Governance is invite-only; the open source gateway runs with Docker Desktop's MCP Toolkit or as a CLI plugin.
- If you use Docker Desktop with MCP Toolkit enabled, the gateway runs automatically in the background.
- Microsoft's current MCP Gateway version requires MCP 2026-07-28 clients and adapters and provides no legacy initialization or protocol downgrade.
- A proxy that forwards client tokens to downstream APIs breaks the spec: token passthrough is explicitly forbidden.
Steal this workflow
Run this guide in your own assistant. The prompt carries the guide link and the workflow summary, so the assistant can adapt it to your project.
Read the guide "What is an MCP gateway? Proxies, consent and token rules" at https://better-design.com/blog/mcp-gateway and help me apply it to my project.
An MCP gateway is a proxy that sits between MCP clients and MCP servers and centralizes routing, credentials, access control and server lifecycle; Docker describes its MCP Gateway as a centralized proxy between clients and servers, and Microsoft describes its MCP Gateway as a reverse proxy and management layer for MCP servers in Kubernetes. The MCP specification does not define a gateway, but its security best practices set rules for MCP proxy servers, such as per-client consent and no token passthrough.
Start by asking what I am building and which tools I use. Then walk me through the workflow step by step, adapted to my answers.Claude and ChatGPT open with the prompt filled in. Gemini copies the prompt to your clipboard first, so paste it when the app opens.
Questions
Why use an MCP gateway instead of configuring each server in each app?
Without the Docker MCP Gateway you configure each AI application individually for each server; with it, applications connect to the gateway, which handles lifecycle, routing and authentication across the servers in your profiles.
Does the MCP specification define a gateway?
Not as a named component. Its security best practices define an MCP proxy server and require per-client consent before third-party authorization to prevent confused deputy attacks.
Can one gateway serve several clients?
Yes for Docker's gateway: it can serve one client, or multiple clients when it uses the sse or streaming transport.
Where these commands and paths come from
Each command, path and caveat comes from the official docs, read on November 12, 2026. Commands change between releases, so check the docs for your version.
- Docker Docs: docs.docker.com/ai/mcp-catalog-and-toolkit/mcp-gateway/
- Docker (GitHub README, docker/mcp-gateway): github.com/docker/mcp-gateway/blob/main/README.md
- Microsoft (GitHub README, microsoft/mcp-gateway): github.com/microsoft/mcp-gateway/blob/main/README.md
- Model Context Protocol (specification 2026-07-28, security best practices): modelcontextprotocol.io/specification/2026-07-28/basic/security_best_p
Related
Add design guidance to the same setup
MCP servers give your coding agent tools and data. Better Design is an MCP server too: it gives the agent a design system, interface principles and review rules, so the screens it builds look designed.