Feedback

Docker MCP Plugin and Docker MCP Gateway

@docker Claim

Basic information

Runtime
go
Version
v0.44.1
License
MIT
Transports
stdio, SSE, http
Author
docker
Submitted by
Community
Quality
85
Stars
1.6K

About Docker MCP Plugin and Docker MCP Gateway Server

Docker's official MCP Gateway and docker mcp CLI plugin: run Docker MCP Catalog servers as isolated containers behind one endpoint for any MCP client.

Docker MCP Plugin and Docker MCP Gateway is a MCP server listed in the AddMCP.net directory, published by docker. It exposes 6 tools, including mcp-find, mcp-add, mcp-config-set, mcp-remove and more. Supported transport: stdio, SSE, http. Runtime: go. License: MIT. The repository has 1,601 GitHub stars. Source code is hosted on github.com. Related topics: containers, docker, gateway, mcp-catalog, mcp-gateway.

Setup

{
    "mcpServers": {
        "MCP_DOCKER": {
            "command": "docker",
            "args": [
                "mcp",
                "gateway",
                "run"
            ]
        }
    }
}

Docker MCP Plugin and Docker MCP Gateway config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "MCP_DOCKER": {
            "command": "docker",
            "args": [
                "mcp",
                "gateway",
                "run"
            ]
        }
    }
}

Docker MCP Plugin and Docker MCP Gateway tools

  • mcp-find — Search for MCP servers in the catalog by name or description
  • mcp-add — Add a new MCP server to the current session
  • mcp-config-set — Configure settings for an MCP server
  • mcp-remove — Remove an MCP server from the session
  • mcp-exec — Execute a tool by name that exists in the current session
  • code-mode — Create a JavaScript-enabled tool that combines multiple MCP server tools (experimental)

Overview

What is Docker MCP Plugin and Docker MCP Gateway?

Docker MCP Toolkit & Gateway (Official) is Docker's own docker mcp stack: the docker mcp CLI plugin and MCP Gateway that run MCP servers from the Docker MCP Catalog as isolated containers behind one endpoint for Claude, Cursor, VS Code and other clients.

The open-source docker/mcp-gateway repo (MIT) holds the CLI plugin behind the MCP Toolkit. The MCP Catalog (hub.docker.com/mcp, OCI image mcp/docker-mcp-catalog) lists containerized servers, the MCP Gateway runs them and routes calls, and the MCP Toolkit is the Docker Desktop UI on top.

How to use Docker MCP Plugin and Docker MCP Gateway?

Prerequisites: Docker Desktop with the MCP Toolkit enabled (Settings → Beta features → Enable Docker MCP Toolkit → Apply). Docker's docs describe the current interface and docker mcp commands for Docker Desktop 4.62 and later.

On Docker CE, WSL2 or in a container, the README says to run:

export DOCKER_MCP_IN_CONTAINER=1
docker mcp feature enable profiles

1. Pick servers from the catalog

docker mcp catalog pull mcp/docker-mcp-catalog
docker mcp catalog server ls mcp/docker-mcp-catalog

Printed names such as github-official are the IDs used in catalog:// references.

2. Create a profile (a named set of servers a client connects to):

docker mcp profile create --name web-dev
docker mcp profile server add web-dev \
  --server catalog://mcp/docker-mcp-catalog/github-official \
  --server catalog://mcp/docker-mcp-catalog/playwright

3. Run the gateway

docker mcp gateway run --profile web-dev

Without --profile it uses the default profile. Usually your client launches this itself over stdio.

4. Connect a client. Supported names for docker mcp client connect include claude-code, claude-desktop, cursor, vscode, codex, gemini, zed, cline, continue, goose, kiro, lmstudio and opencode.

docker mcp client ls
docker mcp client connect <client> --profile web-dev

Claude Code

docker mcp client connect claude-code --profile web-dev --global

Then claude mcp list should show MCP_DOCKER as connected.

Claude Desktop

In Docker Desktop open MCP Toolkit → Clients and select Connect next to Claude Desktop, then restart it. The manual config from Docker's docs:

{
  "mcpServers": {
    "MCP_DOCKER": {
      "command": "docker",
      "args": ["mcp", "gateway", "run", "--profile", "web-dev"]
    }
  }
}

Cursor

docker mcp client connect cursor --profile web-dev

Check Cursor Settings → Tools & MCP for MCP_DOCKER.

VS Code

In your project folder (this writes a user-specific .vscode/mcp.json):

docker mcp client connect vscode --profile web-dev
echo ".vscode/mcp.json" >> .gitignore

Codex

docker mcp client connect codex --profile web-dev
codex mcp list

MCP_DOCKER should appear with an "enabled" status.

Key features of Docker MCP Plugin and Docker MCP Gateway

  • Official Docker project, MIT licensed, bundled with Docker Desktop and usable on its own
  • Each server runs in its own container, limited by default to 1 CPU and 2 GB of memory, with no host filesystem access unless you grant it
  • Images under mcp/ in the Docker MCP Catalog are built and signed by Docker, include an SBOM, and are signature-verified by default
  • Secrets come from Docker Desktop's store (OS keychain), not client env vars, and are scoped to the server that declares them
  • Built-in OAuth flows for servers such as GitHub, Notion and Linear
  • Profiles with per-server config and tool allowlists, shareable through OCI registries or exported files
  • stdio by default, plus sse and streaming HTTP transports protected by a bearer token
  • Also published as the docker/mcp-gateway image for Docker Compose and CI

Docker MCP Plugin and Docker MCP Gateway tools

The gateway exposes the tools of every server in your profile. On top of those, Dynamic MCP (labelled experimental) adds a few management tools:

  • Discovery: mcp-find searches the catalog by name or description.
  • Session management: mcp-add and mcp-remove add or drop a server for the current session, and mcp-config-set configures one. Servers added this way are not saved to your profile.
  • Execution: mcp-exec runs a tool by name, and code-mode composes several servers' tools into a JavaScript tool; Docker says code mode is not yet reliable for general use.

Turn these off with docker mcp feature disable dynamic-tools if you want a fixed tool list. To trim tools inside a profile, use allowlists:

docker mcp profile tools web-dev --disable-all github-official
docker mcp profile tools web-dev --enable github-official.list_issues

Use cases of Docker MCP Plugin and Docker MCP Gateway

  • Run community MCP servers in isolated containers instead of npx or uvx on your host.
  • Let the agent find tools on demand: "What MCP servers can I use for working with SQL databases?" then "Add the postgres mcp server."
  • Give agents in Docker Compose or CI a gateway with --servers, with no Docker Desktop required.
  • Restrict agents to a company catalog: docker mcp gateway run --catalog <oci-reference>.

Docker MCP Toolkit & Gateway (Official) vs alternatives

The phrase "docker mcp" also covers servers that manage Docker itself, which is a different job. mcp-server-docker (ckreiling, community) manages Docker with natural language: composing containers, debugging running ones and handling volumes, and docker-mcp (QuantGeekDev, community) creates containers, deploys Compose stacks and reads container logs. Use one of those to control Docker. Use the official Docker MCP Toolkit when you want to run and secure many MCP servers for your clients. For a full walkthrough, see our Docker MCP Gateway setup guide.

Troubleshooting Docker MCP Toolkit & Gateway (Official)

  • Client shows no tools: run docker mcp gateway run --verbose --dry-run. It prints the enabled servers, pulled images and tool count, which catches wrong server names and missing config or secrets.
  • Test one tool: docker mcp tools call <tool-name> [arguments...] with --verbose.
  • "Docker Desktop is not running" while the daemon is up: export DOCKER_MCP_IN_CONTAINER=1 (WSL2, Docker CE, containers).
  • "unsupported dialect" schema errors: update the gateway; current versions translate draft-04/06/07 tool schemas to JSON Schema 2020-12.
  • Tutorial steps don't match your UI: Docker's docs cover Docker Desktop 4.62+; older versions have a different Toolkit UI.

Frequently asked questions

1 Is the Docker MCP Gateway official?

Yes. Docker develops it in docker/mcp-gateway, and it powers the MCP Toolkit.

2 Is the Docker MCP Toolkit free?

The gateway and CLI plugin are open source under the MIT license. It ships with Docker Desktop and can also run without it.

3 What is the difference between the Docker MCP Toolkit, Gateway and Catalog?

The Catalog lists containerized MCP servers, the Gateway runs them and routes client calls, and the Toolkit is the Docker Desktop interface that manages both.

4 Do I need Docker Desktop?

No. Docker's docs target Docker Desktop 4.62+, but the README explains how to use the CLI on Docker CE, WSL2 or in containers, and the docker/mcp-gateway image runs with Docker Compose.

5 Does it work with Claude Code, Cursor and VS Code?

Yes. docker mcp client connect supports claude-code, cursor, vscode, claude-desktop, codex and more, and any stdio client can run docker mcp gateway run.

6 How do I add API keys for a server?

Use the server's Configuration tab in Docker Desktop or the CLI, for example echo my-secret-password | docker mcp secret set postgres_password. Secret names are defined by each server.

7 Can several clients share one gateway?

Yes: docker mcp gateway run --port 8080 --transport streaming. HTTP transports require a bearer token from MCP_GATEWAY_AUTH_TOKEN (or one the gateway generates).

8 Is it safe to run third-party MCP servers this way?

It reduces risk: containers get no host env, limited CPU and memory, signed mcp/ images, and secret scanning on tool calls. You still choose which servers and tools to enable, so review them like any other dependency.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬