AI News·24 Nov 2026·via Dev Community

    Docker MCP Gateway: run your MCP servers behind a gateway

    Docker has introduced the MCP Gateway, a single entry point designed to centralize the management and security of individual MCP servers that run code for AI agents. According to the `docker/mcp-gateway` repository documentation, read on 12 November 2026, this gateway aims to address operational challenges like lost inventory and control over API keys when developers run servers locally.

    The Docker MCP Gateway is presented as a solution to operational challenges arising when developers run individual MCP servers directly on their laptops. These servers execute code for AI agents, handling files, API calls, and tokens. This decentralized approach can lead to a loss of inventory, inadequate isolation, and poor control over sensitive API keys and secrets, increasing the risk of what the repository describes as "MCP tool poisoning."

    The gateway functions as a single entry point, ensuring that AI clients communicate only with it. It starts each MCP server within a container, allowing for fine-grained control over what the server can access. A key mechanism involves "profiles," which group servers and include an explicit "allowlist" of tools. This enables a least-privilege approach, for example, by enabling `github.create_issue` while disabling `github.search_code` for a given agent. These profiles can be exported to YAML and pushed to an OCI registry, facilitating shared configurations across teams.

    Deployment options for the gateway range from `stdio` mode for individual developer laptops, as shown in a Claude Desktop configuration, to `sse` and `streaming` transports for serving multiple clients. The documentation also illustrates a Docker Compose setup that starts the gateway in a container. A notable security detail in such a setup is the mounting of `/var/run/docker.sock`, which grants the gateway extensive control over the Docker daemon. The `security.md` document lists the Docker daemon as a trusted component, advising that this mount be used on a host under strict control.

    For secrets management, the gateway aims to move sensitive data out of environment variables by integrating with Docker Desktop's secrets management. The repository documents `docker mcp secret` and `docker mcp oauth` commands for this purpose. A fallback option, `--secrets=docker-desktop:./.env`, is provided for environments outside Docker Desktop, but the documentation cautions that this places plain-text files on disk and is intended strictly for testing. OAuth 2.1 flows with PKCE are documented for remote servers, though their end-to-end behavior was not verified by the original report.

    Regarding network egress, the gateway does not block outbound calls globally by default. Servers can request `disableNetwork` or `allowHosts`, and the gateway can be started with a `--block-network` flag to restrict outbound access. This requires explicit configuration for servers that do not need external network access. The architecture also positions the gateway as a potential observation point for Site Reliability Engineering (SRE) teams, as every tool call passes through it, changing the operational workflow by centralizing monitoring.

    Share this article

    Original reporting by Dev CommunityWe don't republish, read the full story →

    Related reading

    6 stories