MCP server · Infrastructure
Docker MCP Gateway
Docker's gateway that runs MCP servers from its catalog in containers behind one endpoint. Shown here: a fixed server list with dynamic tools off.
Quick verdict
A sensible way to run several MCP servers with container isolation if you already use Docker. Start with a fixed --servers list of servers you have read about, narrow each with --tools, leave the dynamic tools off until you want the assistant to install servers on its own, and never enable the catalog's Docker CLI server for an assistant you would not trust with your machine.
- MaintainerDocker (official)
- Security scopeLocal execution
- Transportsstdio, sse, streamable-http
- Install channelbinary
- EvidenceNot tested yet (sources checked)
- LicenseMIT · Open source
Docker MCP Gateway is the docker mcp CLI plugin from Docker, the engine behind Docker Desktop's MCP Toolkit. An MCP client connects to it as a single server; the gateway then runs other MCP servers, mostly from Docker's MCP Catalog, as Docker containers, passes each one only the secrets and settings it declares, and forwards tool calls to them. It does not manage your Docker containers itself: what an assistant can do through it depends entirely on which servers you enable. Hosted containers get 1 CPU and 2 GB each by default and no host environment. They see host files only through mounts that a catalog entry or profile declares, which the gateway checks against trusted folders and makes read-only unless a path is explicitly allowed to be writable. Docker's own catalog images are signature-checked, and outbound network access is not blocked by default. By default the gateway also offers its own tools that let the assistant search the catalog, add and start new servers, change their settings and run agent-written JavaScript; Docker labels these experimental. The configuration shown here names a fixed list of catalog servers with --servers, which in the gateway's code turns those tools off.
Install Docker MCP Gateway
Needs Docker with the docker mcp plugin: bundled with Docker Desktop (Docker's docs describe Docker Desktop 4.62 and later; the repository README says 4.59 or later), or on Docker Engine install the release binary at ~/.docker/cli-plugins/docker-mcp. Replace <SERVER_NAMES> with a comma-separated list of servers from Docker's MCP Catalog, and add --tools server:tool to allow only some tools. --servers turns off the gateway's own tools that let an assistant search, add and start servers and run generated JavaScript; Docker's docs instead show --profile <profile>, which keeps them on unless you run docker mcp feature disable dynamic-tools. The repository calls --servers its legacy mode beside profiles. Add --block-network to restrict outbound access from server containers. Do not set DOCKER_MCP_ALLOW_INSECURE_REMOTE_URLS or MCP_GATEWAY_DOCKER_BIND_ALLOW_WRITABLE_PATHS in the environment the client starts from. Under Docker Desktop, gateway metrics go to Docker's usage analytics unless turned off in Docker Desktop settings. Every GitHub release so far is marked pre-release.
docker mcp gateway
{
"mcpServers": {
"MCP_DOCKER": {
"command": "docker",
"args": [
"mcp",
"gateway",
"run",
"--servers",
"<SERVER_NAMES>"
]
}
}
}Credentials
No credentials required.
Verified configurations
Not run by us yet. This profile is Not tested yet (sources checked): the install channel, config entry, credentials and license were checked against the source and upstream metadata, but no configuration has been installed, discovered and executed in a recorded environment. When one is, it appears here with the eight scope dimensions below.
Best for
People who already run Docker and want one place to install, isolate and switch the MCP servers their assistants use, with secrets kept out of client config files and the same server set shared across several clients.
Why use it
It is Docker's own, MIT-licensed, actively released gateway. It puts each server in a container with CPU, memory, filesystem and privilege limits by default, verifies signatures on Docker's catalog images, blocks secret-like values in tool traffic, has a tool allow list, and writes client configuration for common clients.
Tradeoffs
The gateway is only as safe as the servers you enable: one catalog entry gives the model the Docker CLI with the host's Docker socket, which is close to full control of the machine. By default the gateway adds its own tools that let the model find, add, configure and start catalog servers mid-conversation and run generated JavaScript; Docker calls this experimental, and it widens what a prompt injection could reach. Outbound network access from hosted containers is allowed unless a server or --block-network restricts it. Every GitHub release so far is marked pre-release, the docs disagree on the minimum Docker Desktop version, and the --servers form shown here is what the code calls legacy mode. Docker Desktop itself needs a paid subscription for larger companies. Environment variables inherited from your shell (DOCKER_HOST and two documented security opt-outs) change what the gateway does.
Upstream state
repository active. Lifecycle is derived from a committed upstream snapshot at build time, never authored by hand.
Editorial details
Grade B: Not tested yet (sources checked). Re-review is due by 2027-05-14. Config entries, credential names and package status can change upstream; verify against the source repository before granting an agent access.
Sources
- docker/mcp-gateway README: what the plugin is, prerequisites, gateway run, tool allow lists
- docker/mcp-gateway LICENSE (MIT)
- docker/mcp-gateway security model: transports, container limits, binds, network, secrets, signatures
- docker/mcp-gateway docs: running the gateway, --servers and --tools, client config, Compose
- docker mcp gateway run flag reference (generated)
- gateway command source: --servers disables dynamic tools
- docker/mcp-gateway telemetry doc: Docker Desktop versus Docker Engine export
- Docker docs: MCP Gateway (open source, how it works, manual install, AI Governance note)
- Docker docs: MCP Toolkit (Docker Desktop 4.62 and later, isolation defaults, client config)
- Docker docs: Dynamic MCP (gateway tools, experimental label, how to disable)
- Docker docs: Docker Desktop license agreement (free-use thresholds)
- GitHub Releases: docker/mcp-gateway (binaries, all marked pre-release)
- Docker Hub: docker/mcp-gateway image (Compose path)
Related MCP servers
- DuckDB / MotherDuck MCPQuery local DuckDB files or MotherDuck through MCP, with read-only defaults and optional write-enabled SQL.
- Grafana MCP ServerOfficial Grafana Labs server for dashboards, Prometheus and Loki queries, alerts and incidents. Shown here: read-only mode (--disable-write).
- Kubernetes MCP Server (containers)Community server by Red Hat engineers for Kubernetes and OpenShift: up to 22 default tools that read, apply, delete and exec. Shown here: read_only.