← Back to MCP servers

Docker

Docker MCP Server

Manage Docker containers, images, and builds directly from your AI coding assistant.

No auth required

Last reviewed Mar 2, 2026

Install

claude mcp add docker --transport stdio -- docker run -i --rm ghcr.io/docker/docker-mcp --transport stdio
Scope: project

Available tools

ToolDescription
list_containersList running and stopped Docker containers
run_containerStart a new container from an image
stop_containerStop a running container
build_imageBuild a Docker image from a Dockerfile
get_logsRetrieve 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

  1. Ensure Docker Desktop or Docker Engine is installed and running on your machine.
  2. The MCP server runs as a Docker container that connects to your local Docker daemon via the Docker socket.
  3. No API keys or additional authentication are needed -- the server uses your local Docker daemon permissions.
  4. 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 docker group.