Skip to content

Docker MCP: How to Set Up the MCP Toolkit and Connect Your Agent

How to set up the Docker MCP Toolkit and connect Claude Code, Cursor, Codex or VS Code.

The words "Docker MCP" in large black type above Docker's documentation page for the MCP Catalog and Toolkit.

How Docker MCP connects your agent

One gateway sits between your AI tool and every server in your profile.

  1. Pick servers from the catalog
  2. Group them in a profile
  3. Connect your AI tool
  4. The gateway runs each server in a container

Better Design

Direct answer

Docker MCP is Docker's way to run MCP servers in containers. Turn on the MCP Toolkit in Docker Desktop and add servers from its catalog to a profile. Then connect Claude Code, Cursor, Codex or VS Code. Each client sees one entry, MCP_DOCKER, which starts Docker's MCP gateway.

Published 26 November 2026 by the Better Design team. Checked that day on docs.docker.com, the Docker Desktop release notes, Docker's pricing page, Docker Hub and the docker/mcp-gateway repository on GitHub.

Summary

What it is
Three parts. The MCP Catalog lists servers, the MCP Toolkit in Docker Desktop manages them, and the MCP Gateway runs them as containers.
Version
Docker Desktop 4.62 or later for the current Toolkit screens. Docker Desktop 4.100.1 shipped on 23 November 2026.
Setup
Settings, Beta features, Enable Docker MCP Toolkit. Then create a profile, add servers and connect a client.
Clients
Claude Code, Claude Desktop, Codex, Cursor, VS Code, Gemini CLI, Zed, Goose, LM Studio, OpenCode and more.
Catalog size
244 image repositories under the mcp namespace on Docker Hub on 26 November 2026, counted through the Docker Hub API.
Cost
The Toolkit has no separate fee. Docker Desktop is free for personal use and small businesses; larger companies need a paid plan from $9 per user a month.
Without Docker Desktop
The gateway is open source (MIT) and runs as a Docker CLI plugin on Docker Engine.

What is Docker MCP?

The name covers Docker's tools that package Model Context Protocol servers as container images. They run each server for your AI agent. Instead of installing every server with npx or uvx, you pick it from a catalog. Docker then starts it in an isolated container when the agent calls a tool. Docker's docs call the first two parts the MCP Catalog and Toolkit.

Catalog
The list of servers, on Docker Hub at hub.docker.com/mcp and in Docker Desktop. It has local servers that Docker builds and signs, and remote servers such as GitHub, Notion and Linear that sign in with OAuth.
Toolkit
The MCP Toolkit page in Docker Desktop, where you build profiles, add servers, enter secrets and connect clients.
Gateway
The program behind both, which handles server management. It starts each server container on demand, injects credentials and routes every tool call.

The gateway is the open source docker/mcp-gateway project. Its latest release was v0.44.3 on 26 October 2026, and Docker Desktop 4.99.0 bundles that MCP CLI version.

New to MCP? Read Better Design's guide to what MCP is.

How do you set up the Docker MCP Toolkit?

Install or update Docker Desktop, turn the Toolkit on, then build one profile. Docker's guide describes the screens in Docker Desktop 4.62 and later; older versions look different.

  1. Open Docker Desktop settings and select Beta features.
  2. Select Enable Docker MCP Toolkit, then Apply.
  3. Open MCP Toolkit, select the Profiles tab and create a profile, for example web-dev.
  4. Open the Catalog tab, tick the servers you want and add them to the profile.
  5. Fill in any server marked Configuration Required, such as an API key or an OAuth sign-in.
  6. Open the Clients tab and select Connect next to your AI tool.

Prefer the terminal? The same setup takes three commands. First run docker mcp profile create --name web-dev. Then add servers with docker mcp profile server add web-dev --server catalog://mcp/docker-mcp-catalog/github-official. Last, run docker mcp client connect claude-code --profile web-dev.

Read Docker's guide to getting started with the MCP Toolkit.

How do you connect Claude Code to Docker MCP?

Use the Connect button for Claude Code in the Clients tab, or run the client connect command above in your project folder. To add it by hand, run claude mcp add MCP_DOCKER -- docker mcp gateway run --profile web-dev.

  • Run claude mcp list. MCP_DOCKER should show as Connected.
  • Test it with a prompt that needs a server in your profile, such as: use the GitHub MCP server to show my open pull requests.
  • Omit --profile and the gateway uses the profile named default.

Setting up more servers? Read Better Design's Claude Code MCP configuration guide.

How do you connect Cursor, Codex, VS Code and Claude Desktop?

Every client runs the same command, docker mcp gateway run, over stdio. Only the place you check it changes.

Cursor
Connect it in the Clients tab, then look for MCP_DOCKER under Cursor Settings, Tools & MCP.
Codex
Run codex mcp list. MCP_DOCKER should be listed as enabled. To add it by hand, run codex mcp add MCP_DOCKER -- docker mcp gateway run --profile web-dev.
VS Code
Docker mcp client connect vscode --profile web-dev writes .vscode/mcp.json in the current folder. Add that file to .gitignore, because it is specific to you.
Claude Desktop
Restart it after you connect, then check the Search and tools menu for MCP_DOCKER. The config entry is mcpServers, MCP_DOCKER, command docker, args mcp gateway run --profile web-dev.
Gemini CLI
Run gemini mcp list and look for MCP_DOCKER as Connected.

If a client gives up before the tools load, raise its start timeout. Docker's own docs say the gateway takes about 15 to 25 seconds to start, and set 60 seconds for Mistral Vibe, whose default is 10.

Read Docker's checks for each client.

Which servers are in the Docker MCP Catalog?

On 26 November 2026 the Docker Hub API listed 244 image repositories under the mcp namespace, the home of the catalog's local servers. Docker builds and signs the servers under mcp/, each with a software bill of materials. Partner servers come from companies such as Stripe, Grafana and New Relic. Remote servers such as GitHub, Notion and Linear run on the vendor's side.

Each server has an ID you use in commands, such as github-official or playwright. Find it in Docker Desktop under MCP Toolkit, Catalog, Server ID. If remote servers are missing from your list, update the catalog from the CLI and refresh the Catalog tab.

Browse the Docker MCP Catalog on Docker Hub.

Can you add your own MCP server?

Yes, from the CLI. A 2026 r/mcp thread asked how to run homemade servers next to the Toolkit. The profile server add command now takes four kinds of address, not only catalog entries.

  • catalog://mcp/docker-mcp-catalog/<server-id> for a catalog server.
  • docker://<image>:<tag> for any server you packaged as a Docker image.
  • file://./my-server.yaml for a local file that names the image, title and description.
  • An https address on the MCP community registry.

Teams can copy the Docker catalog, remove servers they do not approve, add private images, and push it to their own registry. A profile can be exported to .docker/mcp-profile.json and kept in the repository. Docker leaves credentials out of shared profiles.

Read Docker's page on using the MCP Toolkit from the CLI.

Does the gateway cut the tokens your agent spends on tools?

It can, if you load fewer tools. Every tool an agent can see adds its description to the prompt. A Claude Code and Codex user on r/mcp moved servers behind the gateway for that reason. Docker gives you two ways to keep the list short.

Tool allowlists
Docker mcp profile tools web-dev --disable-all github, then --enable github.list_repos for only the tools you need.
Dynamic MCP
The gateway adds tools named mcp-find, mcp-add, mcp-config-set, mcp-remove, mcp-exec and code-mode. With them, the agent can search the catalog and add a server mid-session. Servers added this way last for that session only. Docker marks Dynamic MCP experimental, and it needs Docker Desktop 4.50 or later.

Read Docker's page on Dynamic MCP.

Is Docker MCP free?

The Toolkit and catalog have no separate price; you pay for Docker Desktop only if your company must. Docker Desktop is free for personal use, education and non-commercial open source. It is also free for small businesses with fewer than 250 employees and less than $10 million in annual revenue.

  • Personal: $0, one user.
  • Pro: $9 per user a month billed yearly, or $11 monthly.
  • Team: $15 per user a month billed yearly, or $16 monthly, up to 100 users.
  • Business: $24 per user a month billed yearly.
  • MCP Gateway inside Docker AI Governance, with org-wide MCP policies, is invite-only and priced through sales.

Prices read on docker.com/pricing on 26 November 2026. Recheck them before you buy.

Read Docker's Desktop license terms.

Can you run the gateway without Docker Desktop?

Yes. On Docker Engine, download the docker-mcp binary from the gateway's GitHub releases, put it in ~/.docker/cli-plugins/docker-mcp (on Windows, %USERPROFILE%\.docker\cli-plugins) and make it executable. The same commands then work as on Desktop.

A December 2025 r/mcp thread wanted one gateway on a server for several clients. For that, start it over HTTP: docker mcp gateway run --port 8080 --transport streaming. Put your own authentication in front of it before you expose that port.

Read the docker/mcp-gateway README on GitHub.

Is it safe to run MCP servers through Docker?

It is safer than running servers straight on your machine, but Docker calls its checks best effort. These are the limits Docker documents:

  • Each tool container gets 1 CPU and 2 GB of memory.
  • Servers have no access to your files unless you grant a mount.
  • Requests that carry secrets to and from tools are blocked.
  • docker mcp gateway run --verify-signatures checks image attestations at run time.
  • Credentials stay after you remove a server. Delete them yourself, or revoke OAuth access in the OAuth tab.
  • Docker Desktop shows a warning banner on community servers it has not verified.

Read Docker's MCP Toolkit FAQs on security.

Why does MCP_DOCKER show as connected but give no tools?

Usually the client cannot start the gateway, or the profile is empty. Work through these checks:

  • Check that the profile has servers installed, in the Profiles tab.
  • Fill in every server marked Configuration Required. A server without its key lists no tools.
  • On Windows with Claude Desktop, check the env block that Docker Desktop writes to claude_desktop_config.json. A September 2025 r/docker thread fixed it there, then restarted Claude.
  • On Windows, use the full path to docker.exe when the client splits the command on spaces in C:\Program Files.
  • A server that calls an app on your machine must use host.docker.internal, not localhost, because it runs inside a container.
  • Raise the client's start timeout to 60 seconds.

Read Docker Desktop's release notes for MCP Toolkit fixes.

Is there an MCP server for managing Docker itself?

Docker publishes the Docker Hub MCP server, which gives an agent Docker Hub image data for finding images. For work on your own containers, Docker Desktop has Gordon, its assistant, and Docker publishes Docker Skills for coding agents. A plain Docker CLI in Claude Code or Codex also works, because those agents can run docker commands in the terminal.

Read Docker's page on the Docker Hub MCP server.

Want your agent's UI to look designed, not generated?

The gateway gives your agent tools: GitHub, browsers, databases. It does not give it design rules. Better Design is an MCP server we make. It gives Claude Code, Cursor and Codex a design system and review rules, so the screens they build look consistent. Add it next to your Docker profile in the same client.

See how to install the Better Design MCP server.

Frequently asked questions