The Docker MCP server gives Claude direct access to your Docker daemon. List running containers, inspect their configs, manage images, run compose stacks. For developers running anything containerised, this turns container ops into prompts.
The community server is the de-facto standard. It tracks the Docker Engine API closely, so anything you can do with the Docker CLI, you can do via the MCP server.
Why use it
Container debugging is full of small lookups: “what containers are running?” “What’s in the logs of the api container?” “Why is this image 2GB?” Each one is a CLI command and a tab switch. The MCP server collapses them into prompts.
For Claude Code workflows, this is what makes “deploy and verify” loops feel native. Build the image, push it, restart the container, check the logs, all without leaving the conversation.
What it actually does
Container ops: list, inspect, create, start, stop, restart, remove. Image ops: pull, list, tag, remove, inspect history. Compose: up, down, list services, view logs. Volumes and networks: create, list, inspect, remove. Logs: stream from any container with filters.
Practical patterns:
- “What containers are running and what ports do they expose?”
- “Pull the latest postgres:16 image and start a one-off container with these env vars.”
- “Show me the last 100 lines of logs from the api container, filtered to level=error.”
Gotchas
This server is privileged by definition. Docker access on a typical machine is essentially root. Don’t run untrusted Claude prompts against it, and don’t expose the server to environments where prompts could be injected from external sources.
Container churn confuses the server. If Claude inspects a container that has just been removed, the next call may fail. Most prompts handle this gracefully but it’s worth knowing if you see weird transient errors.
Pair with Filesystem for Dockerfile and compose file edits, and GitHub for committing and pushing changes. Combined, you can iterate on a containerised service end-to-end from a single conversation.
For production cluster management rather than local development, look at the Kubernetes server or your cloud provider’s MCP (AWS, GCP, Azure).