Docker
Docker MCP Server
Manage Docker containers, images, and builds directly from your AI coding assistant.
Last reviewed Mar 2, 2026
Install
claude mcp add docker --transport stdio -- docker run -i --rm ghcr.io/docker/docker-mcp --transport stdioAvailable tools
| Tool | Description |
|---|---|
| list_containers | List running and stopped Docker containers |
| run_container | Start a new container from an image |
| stop_container | Stop a running container |
| build_image | Build a Docker image from a Dockerfile |
| get_logs | Retrieve logs from a container |
What it does
The Docker MCP Server connects your AI coding assistant to your local Docker daemon, enabling it to manage containers, build images, inspect logs, and orchestrate development environments. This is invaluable for developers who use Docker for local development, testing, and deployment workflows.
The server runs as a Docker container itself, connecting to your Docker socket to control the local daemon. It provides a high-level interface for common Docker operations, letting your assistant help with container management without requiring you to remember complex Docker CLI commands.
Use cases
- Manage development containers by starting, stopping, and inspecting them from your editor
- Build Docker images for your application as part of your development workflow
- Inspect container logs to debug issues in containerized services
- Set up multi-container development environments quickly
- Debug Dockerfile issues by building and testing iteratively with AI assistance
Getting started
- Ensure Docker Desktop or Docker Engine is installed and running on your machine.
- The MCP server runs as a Docker container that connects to your local Docker daemon via the Docker socket.
- No API keys or additional authentication are needed -- the server uses your local Docker daemon permissions.
- For Docker Desktop users, ensure the Docker socket is accessible. On macOS and Windows, Docker Desktop handles this automatically. On Linux, your user may need to be in the
dockergroup.
Compatibility
Related MCP servers
AWS MCP Server
Interact with AWS services including S3, Lambda, CloudWatch, and ECS from your AI coding assistant.
Context7 MCP Server
Fetch up-to-date library documentation and code examples directly into your AI coding assistant.
Figma MCP Server
Access Figma designs, extract design tokens, and generate code from your design files.