Lists all Docker containers
Creates a new Docker container
Creates and starts a Docker container
Recreates an existing Docker container
Starts a stopped Docker container
Retrieves logs from a Docker container
Stops a running Docker container
Removes a Docker container
Lists all Docker images
Pulls a Docker image from a registry
Pushes a Docker image to a registry
Builds a Docker image from a Dockerfile
Removes a Docker image
Lists all Docker networks
Creates a Docker network
Removes a Docker network
Lists all Docker volumes
Creates a Docker volume
Removes a Docker volume
Docker Management is a powerful tool that allows you to control Docker containers, images, networks, and volumes using natural language commands. It enables server administrators, tinkerers, and AI enthusiasts to compose containers, introspect running containers, and manage persistent data with simple conversational instructions. With this MCP, you can deploy complex container setups like WordPress with MySQL backends, configure networking, and manage the entire Docker lifecycle without needing to remember specific Docker commands or syntax. The server implements a plan-and-apply workflow that lets you review changes before they're executed, ensuring safety and control.
Docker Management allows you to interact with Docker using natural language. You can create, manage, and monitor Docker containers, images, networks, and volumes through simple conversational commands.
There are two ways to install the Docker Management MCP:
First, install uv
if you don't have it already. Follow the installation instructions for your system at the uv documentation.
Add the following to your MCP servers configuration file:
For Claude Desktop on MacOS (~/Library/Application\ Support/Claude/claude_desktop_config.json
):
"mcpServers": {
"mcp-server-docker": {
"command": "uvx",
"args": [
"mcp-server-docker"
]
}
}
For Claude Desktop on Windows (%APPDATA%/Claude/claude_desktop_config.json
), use the same configuration.
git clone https://github.com/ckreiling/mcp-server-docker.git
docker build -t mcp-server-docker .
"mcpServers": {
"mcp-server-docker": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"/var/run/docker.sock:/var/run/docker.sock",
"mcp-server-docker:latest"
]
}
}
Note: The Docker socket is mounted as a volume to allow the MCP server to connect to and control the local Docker daemon.
The docker_compose
prompt allows you to create and manage container setups using natural language. The workflow follows a plan-and-apply pattern:
Example prompts:
When starting a new chat with this prompt, the system will receive the status of any containers, volumes, and networks created with the given project name, allowing you to manage or clean up existing deployments.
The server provides access to container resources:
Important security notes:
--privileged
or --cap-add/--cap-drop