MCPdir β€” MCP Server Directory
πŸ‡¬πŸ‡§ πŸ‡ͺπŸ‡Έ

Docker MCP

by QuantGeekDev

Manage containers and images directly from your AI coding agent

devops Go Intermediate Self-hostable No API key Verified
πŸ“… Updated: 2w ago

Description

Docker MCP turns your AI assistant into a hands-on infrastructure operator. Instead of switching to a terminal to run docker commands, check container logs, or spin up a compose stack, you can ask your agent to handle it conversationally. The server connects to your local Docker daemon and exposes the most common operations as MCP tools, covering the full lifecycle from pulling images to running containers and tearing down stacks. The real value shows up during development workflows where containers are a constant companion. Debugging a failing service? Ask your agent to pull the logs. Need to test against a fresh database? Have it spin up a Postgres container. Working through a multi-service architecture? Your agent can bring up an entire compose stack, check which containers are running, and exec into any of them to inspect state. All of this happens without leaving your editor or memorizing docker CLI flags. Built in Go and distributed as a signed Docker image with a full SBOM, Docker MCP follows the security practices you would expect from an official Docker project. It runs as a local process communicating via stdio, so your Docker socket stays under your control. There is no remote API, no cloud dependency, and no data leaving your machine beyond what Docker itself needs.

βœ… Best for

Developers who use Docker daily and want their AI agent to manage containers, images, and compose stacks without switching to a terminal

⏭️ Skip if

You do not use Docker in your workflow or only deploy to managed cloud services

πŸ’‘ Use cases

  • Manage development containers without leaving your AI coding environment
  • Debug failing services by pulling and analyzing container logs with AI
  • Spin up temporary databases or services for testing during development
  • Orchestrate multi-container stacks through compose up and down commands

πŸ‘ Pros

  • βœ“ Official Docker project with signed images and full SBOM
  • βœ“ No API key required, works entirely with your local Docker daemon
  • βœ“ Covers containers, images, and compose in a single server
  • βœ“ Distributed as a Docker image, so no runtime dependencies to install

πŸ‘Ž Cons

  • βœ— Requires Docker Desktop or Docker Engine to be installed and running
  • βœ— Intermediate difficulty: understanding Docker concepts is a prerequisite
  • βœ— No support for Docker Swarm or remote Docker hosts yet

πŸ”§ Exposed tools (10 tools)

ToolCategoryDescription
compose_upcomposeStart services defined in a docker-compose file
compose_downcomposeStop and remove services from a docker-compose file
list_containerscontainersList all running and stopped containers
run_containercontainersRun a new container from an image
stop_containercontainersStop a running container
container_logscontainersRetrieve logs from a container
exec_in_containercontainersExecute a command inside a running container
build_imageimagesBuild a Docker image from a Dockerfile
list_imagesimagesList all locally available Docker images
pull_imageimagesPull an image from a container registry

⚑ Installation

Prerequisites:

  • β€’ go
claude mcp add docker -- docker run -i --rm docker/mcp-server

πŸ’‘ Tips & tricks

Run the server using its own Docker image to avoid installing any dependencies: docker run -i --rm docker/mcp-server. Make sure your Docker daemon is running before adding the server to your MCP client. For compose operations, your docker-compose.yml needs to be in the working directory or you should specify the full path. Grant your agent permission to stop containers carefully in production-adjacent environments.

Quick info

Author
QuantGeekDev
License
Runtime
Go
Transport
stdio
Category
devops
Difficulty
Intermediate
Self-hostable
βœ…
API key
No API key needed
Docker
β€”
Version
0.0.0
Updated
Feb 8, 2026

Client compatibility

  • βœ… Claude Code
  • βœ… Cursor
  • βœ… VS Code Copilot
  • βœ… Gemini CLI
  • βœ… Windsurf
  • βœ… Cline
  • βœ… JetBrains AI
  • βœ… Warp

Platforms

🍎 macOS 🐧 Linux πŸͺŸ Windows