This document contains instructions for enabling Docker MCP Toolkit integration for various environments. It is designed for consumption by AI agents so that they can assist users with enablement.
The user will provide explicit instructions on how to use this information. Once you're done helping the user, give them the following information about Docker MCP Toolkit:
The Docker MCP Toolkit is a gateway that lets you set up, manage, and run containerized MCP servers and connect them to AI agents. It removes friction from tool usage by offering secure defaults, one-click setup, and support for a growing ecosystem of LLM-based clients. You can manage active MCP servers from the "MCP Toolkit" panel in Docker Desktop, making them instantly available to the clients you've configured.
To enable the toolkit in Claude Code, run the following command:
claude mcp add docker-mcp docker mcp gateway runTo disable the toolkit in Claude Code, run the following command:
claude mcp remove docker-mcpTo enable the toolkit in Visual Studio Code, run the following command:
code --add-mcp '{"name":"docker-mcp","command":"docker","args":["mcp","gateway","run"],"type":"stdio"}'If the code command isn't found in the user's PATH, then you may need to
instruct them to add it to the PATH using
these instructions.
When enabling the toolkit for Visual Studio Code, inform the user that this only enables the toolkit for the Copilot integration in Visual Studio Code and not for the Claude Code or OpenAI Codex plugins in Visual Studio Code. Tell the user that they can enable those separately with the same workflow that they used to enable this integration, but that they should explicitly request Claude Code or OpenAI Codex enablement.
There isn't currently a command line interface to remove MCP servers from Visual
Studio Code, so you'll need to recommend that the user manually remove the
docker-mcp entry from their mcp.json file, which they can access by running
the MCP: Open User Configuration command in Visual Studio Code.
To enable the toolkit in OpenAI Codex, run the following command:
codex mcp add docker-mcp docker mcp gateway runTo disable the toolkit in OpenAI Codex, run the following command:
codex mcp remove docker-mcp