Docker MCP security

Docker MCP Toolkit and Gateway ship runtime limits by default: per-tool containers, no host filesystem unless mounted, and signature checks on the Docker MCP namespace. Several of these can be relaxed, and Docker's own FAQ calls its measures best-effort.

On this page

Docker MCP security: do the runtime limits meet our requirement?

The runtime limits in Docker's MCP setup are built into the MCP Toolkit and Gateway themselves, not sold as a separate add-on. The Toolkit docs describe Docker Desktop 4.62 and later, and both the Toolkit and Catalog docs pages are marked Beta, so treat the behavior as moving. The limits you can rely on are the ones in the Gateway security model: containers do not receive the host environment by default, they start with no-new-privileges, they have CPU and memory limits, and host bind mounts default to read-only and cannot target known sensitive system or credential paths. Each MCP tool also runs in its own container limited to 1 CPU and 2 GB of memory, and servers have no host filesystem access until a user selects a mount.

These are defaults, and an operator can weaken them. The same security model says network egress is not denied globally, that servers can request disableNetwork or allowHosts, and that the Gateway can run with --block-network for stricter control. Signature verification is on by default only for images in the Docker Hub mcp namespace, and --verify-signatures=false is an explicit opt-out. Docker also lists prompt injection, tool-description poisoning and misuse of access you granted as out of scope for gateway vulnerability reports, so those risks stay with you to test. Review each server's network and mount settings and any opt-out flags before approving it.

The Gateway is Docker's open source component, but the governance layer built on it, MCP Gateway as part of Docker AI Governance, is invite-only with Docker Sales as the contact. No supplied fact states which plan or edition includes each control, so ask Docker Sales in writing which edition carries the controls you need, and whether the enforcement settings above can be locked by policy rather than left to each user. Docker's own FAQ calls its MCP security measures a best-effort approach that is not yet exhaustive and directs enterprise customers to their account manager for specific requirements. Make that answer part of your approval record, and retest the boundary yourself before staff connect agents to systems that matter.

Runtime limits by component and what the supplied docs confirm

This table lists each runtime control in the Docker MCP Toolkit and Gateway, its default state, whether an operator can change it, and the document that states it. Read the default column first, then the changeable column, to see where the boundary depends on your own settings. Entries marked as not stated need confirmation with Docker before you rely on them.

ControlDefault stateOperator-changeable settingSource
Per-tool container limitsEach MCP tool runs in its own container limited to 1 CPU and 2 GB of memoryNot stated in the supplied docs; confirm whether limits can be raised or loweredMCP Toolkit docs
Host filesystem accessNo access to the host filesystem by defaultUser explicitly selects which servers receive file mountsMCP Toolkit docs
Secret request blockingRequests to and from tools that contain secrets are blockedNot stated in the supplied docs; confirm scope and any overrideMCP Toolkit docs
Host environment isolationContainers do not receive the host environmentNot stated in the supplied docs; confirm how servers receive credentialsMCP Gateway security model
No-new-privileges and resource limitsContainers start with no-new-privileges and CPU and memory limitsNot stated in the supplied docs; confirm whether these can be disabledMCP Gateway security model
Host bind mountsRead-only by default; cannot target known sensitive system or credential pathsMounts can be set; confirm whether writable mounts are permittedMCP Gateway security model
Network egressNot denied globally by defaultServers can request disableNetwork or allowHosts; gateway can run with --block-networkMCP Gateway security model
Image signature verificationOn for Docker MCP images in the Docker Hub mcp namespace only--verify-signatures=false is an explicit opt-out; third-party images are not verifiedMCP Gateway security model
Prompt injection and tool poisoningOut of scope for gateway vulnerability reportsOperator must test and control; not a gateway settingMCP Gateway security model

How the Gateway enforces the runtime boundary for each MCP tool

The runtime boundary for Docker MCP servers is set by three components working together: the MCP Toolkit in Docker Desktop, the MCP Gateway, and one container per MCP tool. The Toolkit is the management interface where servers are set up and connected to agents. The Gateway sits between the client and the servers as a centralized proxy, so every tool call passes through a single point that manages configuration, credentials and access control. Each MCP tool then runs in its own container, limited to 1 CPU and 2 GB of memory according to Docker's Toolkit documentation. Review the Gateway as the place where enforcement happens, not the agent, because the agent's requests are only as constrained as the Gateway allows.

Inside that boundary, the Gateway's security model says containers do not receive the host environment by default, start with no-new-privileges, and carry CPU and memory limits. Host access is limited to bind mounts that a user selects. Those mounts default to read-only and cannot target known sensitive system or credential paths. The same model does not deny network egress globally, so each server's disableNetwork or allowHosts setting and the gateway's --block-network option decide what a tool can reach. Check each server's mounts and network settings individually, and confirm whether any mount is writable.

On Docker Engine without Docker Desktop, the Gateway is not bundled. It is installed separately as the docker-mcp CLI plugin from the GitHub releases page. Do not assume the Desktop defaults carry over. Confirm on that install path that the same container limits, no-new-privileges setting, read-only mount default and network controls are in effect, and record the plugin version you tested. Docker's own FAQ describes its MCP security measures as a best-effort approach that is not yet exhaustive, so plan your own tests of the boundary, including prompt injection and abuse of access you granted, which Docker places outside its gateway vulnerability scope.

Where the boundary sits between an agent, the Gateway and tool containers

The request starts at the AI client, which sends a tool call to the MCP Gateway. The Gateway routes that call to a tool container that runs with its own CPU and memory limits, without the host environment, and with no-new-privileges set. File access is off unless the operator selects a mount, and mounts default to read-only. Network reach is the next decision point: a server can request disableNetwork or allowHosts, and the Gateway can start with --block-network. Signature checks apply when images are pulled, and --verify-signatures=false is the explicit opt-out for those checks. Review each of these settings before staff connect agents.

The request path from AI client through the Gateway to a tool container, with operator decision points.

Settings that decide how far a Docker MCP server can reach

Most of the reach of a Docker MCP server is set by a handful of operator choices, not by the server itself. The cards below cover the choices that change what a server can read, reach and run, and who on the team should own each one. Each one should be decided and written down before staff or agents connect.

File mounts and read-only access

By default, MCP servers have no access to the host filesystem, so every file mount is a decision someone made. Check which servers the team has given a mount, and whether each mount is read-only. The Gateway defaults host bind mounts to read-only and blocks known sensitive system and credential paths, but a writable mount on a project directory still lets a server change code. Platform engineering should approve each mount and review the list when servers change.

Gateway security model

Network policy per server

Network egress is not denied globally by default. A server can request disableNetwork to cut off outbound traffic or allowHosts to limit it to named destinations, and the gateway can run with --block-network for a stricter global stance. Without one of these, a server that reads sensitive data can also send it out. Security engineers should set a per-server network policy for every enabled server and test that an unlisted host is unreachable.

Gateway security model

Signature verification on or off

Signature verification is on by default for Docker MCP images in the Docker Hub mcp namespace. Setting --verify-signatures=false is an explicit opt-out that accepts images without that check. Turning it off is sometimes needed for internal builds, but it removes the one automated check on image provenance. Security leads should keep verification on unless a named exception is approved, and record each exception with its owner and reason.

Gateway security model

Third-party images outside the mcp namespace

Images outside the Docker Hub mcp namespace are not verified with Docker MCP signatures, so they carry the trust of their publisher only. Decide whether these are allowed at all, and if they are, who may add one and how its image is pinned and reviewed before use. An image from a community author can run with the same gateway access as a Docker-built server. Platform owners should keep an allowlist of approved images and block the rest by default.

How many servers and which entries

The Docker MCP Catalog mixes verified servers, partner tools, Docker-built servers and remote services such as GitHub, Notion and Linear. Each enabled entry adds tools that an agent can call and access it can use. Enable only the entries a named team needs, and remove the ones nobody uses. IT should own the enabled list, and each new entry should be reviewed against the access it gets before it is turned on.

Docker MCP Catalog

Resource limits and container defaults

Each MCP tool runs in its own container limited to 1 CPU and 2 GB of memory. Containers do not receive the host environment by default and start with no-new-privileges. Changing these limits, adding host environment variables or granting extra privileges widens what a server can reach. Platform engineering should treat any override as a change request, document it, and retest the server's access after the change.

MCP Toolkit docs

How the answer changes by deployment situation

On a managed laptop, the MCP Toolkit runs inside Docker Desktop 4.62 or later, the version the Toolkit docs describe, and the Gateway starts automatically in the background once the Toolkit is enabled. Each MCP tool runs in its own container limited to 1 CPU and 2 GB of memory, and servers have no access to the host filesystem until a user selects a file mount. Those are defaults, so the core limits apply without action.

  • Default limits: Containers do not receive the host environment, start with no-new-privileges, and host bind mounts default to read-only.
  • Settings that need an explicit choice: File mounts for each server, and any --block-network setting on the Gateway if egress should be stricter than the default.
  • Settings that weaken the boundary: Writable mounts, broad mounts over home or credential directories, and --verify-signatures=false.
  • Network egress: Egress is not denied globally by default, so confirm which servers may reach which hosts through disableNetwork or allowHosts.
  • Verify on the device: Check the installed Docker Desktop version and the mounts each server holds on a sample machine before approving the standard image.

Ask the endpoint team to confirm that the managed configuration matches these checks, since a laptop user can change mounts unless policy blocks it.

Order of work before the runtime boundary is approved

This sequence confirms which Docker MCP features and editions apply, fixes the server and image rules, sets mount and network policy per server, and tests the limits on the real install before any staff member connects an agent. Each step ends with evidence the approver can file.

  1. Confirm edition and Beta status with Docker

    Before any configuration, the IT or security lead asks Docker which edition and support terms apply to each feature in use: the MCP Toolkit, the MCP Catalog and the MCP Gateway, and whether AI Governance features are included. The Toolkit and Catalog docs pages are marked Beta, and the Gateway features that belong to Docker AI Governance are invite-only and handled through Docker Sales. Done when the written answer names each feature, its status and the contact who confirmed it. Keep that email or document with the approval file.

  2. Record the Desktop version and install path

    The platform engineer records the exact Docker Desktop version, the MCP Toolkit state and the install path for each machine or host. Docker Desktop with the Toolkit enabled runs the Gateway automatically in the background. On Docker Engine without Docker Desktop, the docker-mcp CLI plugin is installed separately from the GitHub releases page, so the binary version and source must also be logged. Done when an inventory lists each install, its Desktop or plugin version and how the Gateway was started. Treat any install not on the inventory as out of scope.

  3. Set the server allowlist and image namespace policy

    The security lead decides which catalog servers may run, using the four entry types in the Catalog (verified servers, partner tools, Docker-built servers and remote services) as separate approval categories. The policy also states whether images must come from the Docker Hub mcp namespace. Signature verification is on by default for that namespace, and images from other namespaces are not checked against Docker MCP signatures. Any opt-out of verification must be a named, approved exception. Done when a signed allowlist exists, with each server, its image source and the owner who approved it.

  4. Set file mount and network policy per server

    For each approved server, the reviewer decides whether it needs any host file mount and, if so, which directory and whether it must be read-only. The Toolkit blocks host filesystem access by default and requires the user to select mounts explicitly. Network egress is not denied globally by default, so the reviewer sets disableNetwork or allowHosts for each server, or runs the Gateway with --block-network where stricter control is required. Done when a per-server table lists mounts, mount mode, permitted hosts or network setting, and the reviewer who signed it. Any mount that targets a sensitive path should be rejected and recorded.

  5. Verify the limits on the actual install

    The tester checks each limit on the running install rather than trusting the documentation. Confirm each tool container is capped at 1 CPU and 2 GB of memory, that containers do not receive the host environment, that they start with no-new-privileges, that host bind mounts are read-only by default, that network settings match the policy from the previous step, and that signature verification is enabled for the allowlisted images. Inspect a running container to confirm each setting. Done when a dated checklist shows the observed value for every check, with screenshots or command output stored as evidence.

  6. Test prompt injection and tool abuse before rollout

    The security tester runs prompt injection, tool-description poisoning and misuse of granted access against the connected agent and each approved server. Docker places these risks outside its gateway vulnerability scope, so the organization must test and control them itself. Use illustrative test cases, such as a tool response that asks the agent to read a credential file or send data to an external host, and confirm the policy blocks or logs each attempt. Done when the findings report lists each test, the result, the fix applied and a retest that passes. Keep the report, the test cases and the retest record with the approval file.

What a security reviewer asks to see for the runtime boundary

This table pairs each question a security reviewer asks about the Docker MCP runtime with the evidence to collect and where the setting lives. Read it as a checklist for a test run: confirm each setting on the actual Desktop or Engine install, not only in the docs. The main takeaway is that several protections are defaults that can be widened by a per-server request, so the reviewer should record both the default and any override.

Reviewer questionEvidence to produceWhere the setting lives
What CPU and memory can each MCP tool use?Documented per-tool limit of 1 CPU and 2 GB memory, plus a container inspect output showing the applied limits on a running toolMCP Toolkit container settings; Gateway CPU and memory limits in the Gateway security model
Can servers read the host filesystem?List of servers with file mounts, the mount paths, and confirmation that the default is no host accessMCP Toolkit file mount selection per server; Gateway bind mount policy
Are host bind mounts writable?Mount configuration showing read-only mode, and a test that a write attempt to a mounted path failsGateway host bind mount defaults (read-only) in the Gateway security model
Are sensitive system or credential paths reachable?Negative test results showing mounts to known sensitive system or credential paths are refusedGateway mount validation in the Gateway security model
How are secrets passed to servers?Confirmation that containers do not receive the host environment, and a record of which credentials each server gets and where they are storedGateway container environment defaults; Toolkit secret handling for requests to and from tools
Do servers run with extra privileges?Container inspect output showing no-new-privileges is set on each running serverGateway container defaults in the Gateway security model
Is outbound network access restricted?Per-server network settings (disableNetwork or allowHosts) and the gateway start flags, with a test of an egress request to an unlisted hostPer-server configuration for disableNetwork or allowHosts; gateway --block-network flag. Egress is not denied globally by default
Are images verified before they run?Signature verification status for each image, with a list of any image outside the Docker Hub mcp namespaceGateway signature verification, on by default for the Docker Hub mcp namespace
Has signature verification been turned off?Gateway launch command and configuration showing whether --verify-signatures=false is set, with the approver and reason recordedGateway startup flag --verify-signatures
Which Gateway version and install path are in use?Gateway version output, install method (bundled with Docker Desktop with the Toolkit enabled, or the docker-mcp CLI plugin on Docker Engine), and the release sourceDocker Desktop MCP Toolkit (Desktop 4.62 or later per Docker docs); docker-mcp CLI plugin from the GitHub releases page on Engine

Questions reviewers ask before approving Docker MCP servers

Do the Docker MCP runtime limits cost extra to use?

The runtime limits described in the Docker docs are part of the MCP Toolkit and Gateway design, and the supplied documentation does not list a separate charge for them. Confirm this in writing with your Docker account team, because the answer depends on your Docker Desktop version, your subscription and whether you use the Gateway through Docker AI Governance. Your real cost drivers are internal: the staff time to review each server, the work to write narrower mounts and network rules, and any outside testing you choose to buy. Ask Docker to state in the quote which features are included in your plan and which are add-ons.

Which Docker edition or plan includes the MCP security controls?

The MCP Toolkit docs describe Docker Desktop 4.62 and later and are marked Beta, so the exact feature set can change. The Gateway runs automatically when the Toolkit is enabled in Docker Desktop, while on Docker Engine without Docker Desktop you install the docker-mcp CLI plugin separately from the GitHub releases page. MCP Gateway as part of Docker AI Governance is invite-only, with Docker Sales as the contact. Ask which controls apply to your Docker Desktop version and which need the AI Governance offering, and get that mapping in writing.

Can we verify the Docker MCP limits ourselves?

Yes, and you should. The Gateway security model documents defaults such as no host environment passed to containers, no-new-privileges, CPU and memory limits, read-only host bind mounts and the option to run the Gateway with network blocking. Test each claim in your own environment: start a server, confirm it cannot read a sensitive path, confirm the network is limited to what you allowed and confirm that signature checks are active for the images you use. Record the results as evidence. Docker's own FAQ calls its security measures a best-effort approach that is not yet exhaustive, so treat the documentation as a starting point, not as proof.

What makes the effort to approve Docker MCP servers grow?

Effort rises with four things. The first is the number of servers, since each one needs its own review of image source, mounts, network access and secrets. The second is custom images, which fall outside the Docker Hub mcp namespace, are not verified with Docker MCP signatures and need your own provenance checks. The third is network needs: a server that needs an outbound host list or unrestricted egress takes more testing than one that can run with networking disabled. The fourth is file mounts, because each host path you grant is a permission you must justify and monitor. Ask any partner or internal team to scope these four items before work begins, so the effort is visible in the written scope.

Does Docker cover prompt injection and tool poisoning in its security model?

No. Docker lists prompt injection, tool-description poisoning and abuse of access you intentionally granted to a server as out of scope for gateway vulnerability reports. That means these risks stay with you to test and control. Limit each server to the tools and mounts it needs, review tool descriptions before enabling a server and test how an agent behaves when a web page, file or ticket contains hostile instructions. Document the residual risk and the approval rule your team applies, because the vendor's model will not carry that responsibility for you.

What should we request from the Docker account team before approval?

Ask for a written statement of which MCP Toolkit and Gateway controls apply to your Docker Desktop version and deployment, and whether your plan includes MCP Gateway under AI Governance. Request the list of enterprise requirements Docker will address, the current status of the Beta features you plan to use, the support path for security questions and the change notice process for security defaults. Also ask how signature verification is handled for any images you intend to use outside the Docker Hub mcp namespace, and what audit records the Gateway produces. Keep the answers with your approval record.

When is an outside security test of Docker MCP servers worth scoping?

Scope an outside test before you approve servers that will reach production data, hold credentials, write to systems of record or run on shared hosts. DeployOpen runs security testing that includes AI systems and agents, and an AI agent rollout security review covers prompt injection, tool and file permissions, data exposure, credential handling and admin settings, ending with a findings report and a retest. Such a review is most useful after you have set your defaults and before broad staff access. Agree the scope, deliverables and timeline in writing before work starts, since most engagements are fixed-scope.

How DeployOpen tests the Docker MCP boundary before rollout

DeployOpen plans, implements and security tests self-hosted platforms inside the client's own infrastructure, including AI agent and MCP setups. For Docker MCP security, that means checking the runtime boundary (containers, mounts, network egress, signatures and gateway settings) against the rules your organization has written down, then handing over findings and fixes.

How we scope

  • Agree in writing which Docker MCP servers, Toolkit and Gateway settings, and client tools are in scope before work starts
  • Record which servers need file mounts, network access or Docker Hub images outside the mcp namespace, and why
  • Confirm the Docker Desktop version and Gateway deployment mode (Desktop or Docker Engine with the docker-mcp plugin) under test

How we build

  • Set up a test environment in the client's infrastructure that mirrors the intended Toolkit and Gateway configuration
  • Test prompt injection, tool-description poisoning and misuse of access granted to a server, which Docker places outside gateway vulnerability reports
  • Check mount paths, read-only defaults, disableNetwork and allowHosts settings, and signature verification against the documented defaults

How we hand over

  • Deliver a findings report that rates each boundary weakness and states the setting that caused it
  • Provide written fixes for each finding, including the gateway and server configuration changes to apply
  • Retest the corrected setup and document the evidence your security and compliance reviewers can check

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer when Docker MCP servers or catalog entries change
  • Retest after Docker Desktop upgrades or new servers are approved, so the boundary is checked again before wider use
  • Ask your Docker account manager for any enterprise-specific security requirements, since Docker's FAQ points enterprise customers there

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.