The production problem we wanted to address was credential sprawl, not MCP connectivity. Once several engineering teams connect multiple AI clients to overlapping tools, configuration becomes an access-control problem: which client holds which token, which servers can start, and who notices when an agent adds another integration?
A boundary, not a guarantee
The gateway scopes credentials and centralizes server selection, but enforcement remains untested in a pinned release and local configuration is trusted.
Docker MCP Gateway gives us a potentially useful consolidation point:
MCP client → Gateway → Enabled MCP servers → External services
↑
Scoped credentials
We configure clients to reach the gateway instead of independently launching every backend. The gateway manages server lifecycle, routing, credentials, and access configuration. For containerized servers, that also moves execution away from an ordinary host process and into a Docker-managed boundary.
Our assessment is source-verified, not runtime-verified. We reviewed the security contract and setup paths, but our review environment lacked both a Docker runtime and a pinned gateway binary. We did not execute the isolation tests below. We would rather publish a reproducible acceptance plan than manufacture a successful deployment narrative.
Our architectural conclusion is nevertheless clear: the gateway is a useful enforcement location, but not a substitute for endpoint administration, credential authorization, or application-level permissions.
We anchored that conclusion in the gateway security model. Its trusted base includes the local OS user, Docker daemon, Desktop components, credential store, configured interceptors, and local MCP configuration. We therefore do not treat a developer-controlled profile as an organization-wide policy boundary.
We also separate two products before discussing deployment. The open-source gateway can run locally; MCP Gateway as part of Docker AI Governance is invite-only. We cannot infer enterprise policy enforcement, audit retention, or administrative controls from the local CLI. We use the gateway setup guide to keep that distinction explicit.
Our first setup decision is Desktop versus standalone Engine.
For Desktop, we would use 4.62 or later to match the current MCP Toolkit interface guide. We identified Desktop 4.59+ with MCP Toolkit enabled as the prerequisite for the Desktop installation path, but we would use 4.62+ to follow the current UI instructions.
For Engine without Desktop, we would install an OS- and architecture-matched release binary as the Docker CLI plugin:
mkdir -p "$HOME/.docker/cli-plugins"
: "${MCP_BINARY:?Set MCP_BINARY to the downloaded gateway binary}"
install -m 0755 "$MCP_BINARY" "$HOME/.docker/cli-plugins/docker-mcp"
docker version
docker mcp version
docker mcp gateway run --help
We require an explicit release choice: the reviewed security model follows a moving main branch, and the sources we reviewed do not establish which released binary implements every listed protection. Our rollout record must contain the actual binary version, checksum, and matching security-model revision.
The following Bash example uses the documented profile workflow. It requires Docker, the plugin, registry connectivity, and a fresh profile name. It does not require a live GitHub token because it stops at configuration inspection rather than invoking a backend tool.
#!/usr/bin/env bash
set -euo pipefail
PROFILE="effloow-boundary-review"
if [[ "${MCP_ENGINE_ONLY:-0}" == "1" ]]; then
export DOCKER_MCP_IN_CONTAINER=1
docker mcp feature enable profiles
fi
docker version
docker mcp version
docker mcp catalog pull mcp/docker-mcp-catalog
docker mcp profile create \
--name "$PROFILE" \
--server catalog://mcp/docker-mcp-catalog/github
docker mcp profile tools "$PROFILE" --disable-all github
docker mcp profile show "$PROFILE"
printf '\nPreflight complete: profile created; GitHub tools disabled.\n'
printf 'Next: inspect the server and explicitly enable approved tools.\n'
Illustrative output—not captured from an execution:
[Docker daemon and plugin version details]
[Catalog retrieval progress]
[Profile creation and tool configuration details]
Preflight complete: profile created; GitHub tools disabled.
Next: inspect the server and explicitly enable approved tools.
We avoid inventing exact vendor output. The final two lines are produced by the script; preceding messages vary by release.
For a disposable test machine, we would remove the profile afterward:
docker mcp profile remove effloow-boundary-review
For the actual isolation exercise, we would replace the GitHub integration with two reviewed local container servers. Our fixture specification is intentionally simple:
SERVER_A_TOKEN. SERVER_B_TOKEN.
We would populate dummy credentials through the selected backend, checking docker mcp secret --help for Desktop usage. For Engine-only testing, the gateway also supports a .env secrets source through --secrets. We would keep that file outside the repository with restrictive permissions and use only disposable values.
We do not include speculative catalog YAML: the sources we reviewed do not establish a complete fixture schema for a pinned release. Building the fixture from that release’s examples is an explicit prerequisite, not an invisible completed step.
After approving tools and configuring the fixture, our client launch configuration would use the explicit profile:
{
"servers": {
"MCP_DOCKER": {
"command": "docker",
"args": [
"mcp",
"gateway",
"run",
"--profile",
"effloow-boundary-review"
],
"type": "stdio"
}
}
}
This is the servers object for a VS Code-style MCP configuration; other clients have different enclosing formats. We do not place backend credentials in this client entry.
Our release-acceptance matrix would be:
| Probe | Required behavior | Status in this review |
|---|---|---|
| Export an unrelated sentinel in the launching shell | Neither server inherits it automatically | Not executed |
| Resolve A’s declared credential | A receives its authorized credential | Not executed |
| Ask A to access B’s undeclared credential | No cross-server resolution | Not executed |
| Call a disabled tool by known name | Rejected without backend execution | Not executed |
| Request an unapproved server through dynamic discovery | Cannot expand beyond the intended policy | Not executed |
| Send a sentinel argument and inspect default call logs | No raw argument keys or values | Not executed |
We would test both capability discovery and direct invocation. A hidden tool is not necessarily an inaccessible tool.
The immediate roadblock in our review was environmental: without Docker and a pinned binary, we could not establish actual enforcement. That is a limitation of our assessment, not a gateway defect.
The more consequential issues emerged when we translated the security model into deployment requirements.
We read secret isolation as a restriction on credential delivery: a server should receive only secrets declared for it. We do not interpret it as protection from a server intentionally authorized to use a powerful credential.
If we give a malicious server a repository token, it can abuse that token within its granted permissions. Response filtering cannot reverse an external API action.
We would also test exact, wildcard-like, and malformed secret-name lookups. We include secret-name validation in our acceptance criteria, but we have not verified resolver behavior in a particular release.
--block-secrets is enabled by default and scans tool arguments and text responses for secret-like values. We treat that as defense in depth, not comprehensive data-loss prevention. Detection patterns, false positives, and coverage of transformed or non-text data remain unmeasured here.
We distinguish three controls:
The Toolkit supports dynamic discovery and adding servers during conversations. For a controlled rollout, we must verify that these paths cannot broaden the intended server set.
We would exercise direct calls, dynamic execution, mcp-exec, and code-mode paths where supported. We require consistent policy enforcement across these paths before approval; we have not yet verified that consistency in a pinned release.
A developer who can edit trusted local configuration remains outside this boundary. We would not sell a local profile as centrally enforced enterprise governance.
Our biggest configuration warning is straightforward: network egress is not globally denied by default.
We would evaluate disableNetwork, allowHosts, and --block-network for tighter restrictions, testing allowed and forbidden destinations separately rather than interpreting a flag name as proof of complete egress denial.
Remote MCP destination restrictions are a separate control. The default remote-URL boundary requires public HTTPS and rejects private, loopback, link-local, and metadata-service destinations, including redirect checks. The development opt-out, DOCKER_MCP_ALLOW_INSECURE_REMOTE_URLS=1, must not become a permanent production workaround.
We prefer stdio for the initial local rollout because it is local to the launching client.
For SSE or streaming HTTP, we would retain default Bearer-token authentication, supplying the token through MCP_GATEWAY_AUTH_TOKEN or allowing the gateway to generate it. The gateway restricts browser origins to localhost. Requests without Origin remain acceptable for non-browser clients, but that does not remove token authentication. /health is intentionally unauthenticated.
We would test those behaviors independently. We would not treat a shared gateway token as evidence of per-user authorization or tenant isolation.
Our release checks would cover no-new-privileges, configured resource limits, no automatic host-environment inheritance, and bind-mount validation. Host binds default to read-only; writable binds require exact allowlist entries.
We would retain default signature verification for Docker Hub mcp/ images and use digest references while verification is enabled. Third-party images do not gain Docker MCP signature trust merely by appearing in our configuration.
Our deployment response is to inspect actual container settings and reject unexplained differences. We would not disable verification or broaden mount allowlists merely to make a first launch succeed.
For workloads requiring a different isolation boundary, we would revisit the trade-offs in Firecracker Agent Sandboxes.
We have no measured gateway latency, throughput, cold-start distribution, or resident-memory results. We therefore cannot recommend a production concurrency target.
We can identify what needs measurement. The gateway may start a backend when its tool is first requested, so our benchmark must separate cold launch from warm calls. A shared gateway also concentrates operational dependencies: configuration errors, credential resolution, and gateway restarts can affect several clients.
We use 1 CPU and 2 GB per MCP server as the default configured limits in our planning, not as observed resource consumption or reservations.
| Approach | Why we would choose it | Boundary we still own | Main operating cost |
|---|---|---|---|
| Direct client-to-server setup | Small, trusted tool set | Per-client credentials and execution configuration | Repeated onboarding and rotation |
| Local Docker MCP Gateway | Shared local configuration and credential brokering | Trusted endpoint, profiles, mounts, egress | Packaging and policy regression tests |
| Custom MCP proxy and runner | Specialized identity or policy requirements | Routing, lifecycle, secret scoping, isolation | Implementation and security maintenance |
| Docker AI Governance offering | Candidate for centrally managed requirements | Controls requiring separate evaluation | Commercial terms and integration |
We have not evaluated the invite-only offering, and we have no basis for assigning it a price or verified capability advantage.
Our break-even model is operational rather than compute-driven. As an illustrative assumption, suppose 12 developers each use three clients. If consolidating backend configuration saves 15 minutes per client each month, that is:
12 developers × 3 clients × 0.25 hours = 9 hours/month
9 hours × $100/hour = $900/month of engineering time
If gateway maintenance takes four hours monthly at the same loaded rate, the modeled benefit is $500 per month before infrastructure, licensing, and incident costs.
Those are planning inputs, not measured savings. A team with one client and two stable tools may not recover the maintenance cost. A team repeatedly rotating credentials across many clients has a stronger case.
For shared deployment, our load gate would include simultaneous sessions, backend crashes, restart recovery, and p95 cold versus warm latency. We would also measure whether policy checks add meaningful overhead relative to external tool execution. The same separation of routing behavior from backend behavior informs our LiteLLM Proxy Failover review.
We would approve a controlled local pilot—not an unqualified production rollout. The architecture addresses a real problem: reducing per-client credential configuration and putting backend selection behind one gateway. Our remaining uncertainty is enforcement in a pinned release, not whether centralization can be useful.
Deploy a pilot if:
Hold off or choose another boundary if:
Our next step would be a disposable Docker host, two minimal probe servers, and the acceptance matrix above. We would retain versions, container inspection output, and negative-test transcripts as release evidence.
We would start with the open-source security model, follow the gateway installation path, and use the Toolkit guide for the matching Desktop version. Our deployment decision would follow the observed boundary—not the presence of a gateway in the diagram.