Docker MCP server

MCP server for managing Docker in natural language: containers, images, networks and volumes, including remote hosts over SSH

  • 749 ★ on the repository
  • Last commit
  • GPL-3.0
MCP server

Broad access

Why this level

  • Full Docker daemon access, which effectively means host control
  • Can remove containers, images and volumes
  • Can connect to remote hosts over SSH
All reasons and checks

ckreiling/mcp-server-docker

Install

Manual install

"mcpServers": {
  "mcp-server-docker": {
    "command": "uvx",
    "args": [
      "mcp-server-docker"
    ]
  }
}

Install from PyPI via uv.

Access and checks

How we review

Broad accessThe tool can change data, run commands or handle secrets.

  • Full Docker daemon access, which effectively means host control
  • Can remove containers, images and volumes
  • Can connect to remote hosts over SSH

This is third-party code. Review the repository files before installing.

What it does

The server gives the agent tools for Docker containers, images, networks and volumes: create, run, stop, remove, build, pull and push. The docker_compose prompt runs a plan and apply loop: the agent describes which containers it will bring up and acts only after you approve. Container logs and stats are exposed as resources. With an ssh:// DOCKER_HOST the server connects to a remote daemon.

Who it is for. Server admins and developers who want to run and debug containers through an agent.

Good fit when

  • You want a multi-container app brought up from a description
  • You need logs and stats for a running container
  • You want to manage Docker on a remote server without manual SSH

Not a fit when

  • Containers need secrets: the authors explicitly advise against passing them to the model
  • You need privileged containers or --cap-add: the server does not support them

Example request

Deploy WordPress with a MySQL container and expose WordPress on port 9000

MCP

Transport
stdio
Authentication
not required

Environment variables

DOCKER_HOST
Docker daemon address, for example ssh://user@host

Limitations

Docker is not a secure sandbox, so containers created by the model can affect the host. --privileged, --cap-add and --cap-drop are not supported. Resources are templates and do not enumerate running containers.

How to disable. Remove the mcp-server-docker block from your MCP client config.

FAQ

How do I connect to Docker on another server?

Set DOCKER_HOST like ssh://user@host in the server env.

What if I lose the chat for a project?

Starting docker_compose again with the same project name gives the agent the status of created containers, volumes and networks, which helps with cleanup.

Discussion

No questions or reviews yet.

Docker MCP: an agent creates containers, deploys Docker Compose stacks from YAML, reads logs and lists containers. Runs through uvx for Claude Desktop

MCP serverBroad access504Repository stars
Official

Official Docker MCP server: image search, tags, repositories and Docker Hardened Images on Docker Hub

MCP serverExtended access171Repository stars
Official

The docker mcp CLI plugin and gateway: MCP servers from Docker's catalog in isolated containers behind one connection point

MCP serverBroad access1.6KRepository stars

A self-hosted gateway that merges several MCP servers into one endpoint with auth and tool selection

MCP serverBroad access2.7KRepository stars

A secure MCP runtime through which an agent operates local machines, servers and containers

MCP serverBroad access1.3KRepository stars

Comparison with similar tools

Entries that share the main search query, and how they differ.

EntryOfficialAuthenticationRepository starsMain difference
Docker MCP server (this entry)nonot required749
emisaryesOAuth330an agent runs servers through a catalog of declared actions
HomeButlerno312a Go CLI that compares a server with its last snapshot

README in short

Docker MCP server manages Docker in natural language: composing containers, debugging running ones and managing volumes. Installation is described for Claude Desktop via uvx from PyPI or a self-built Docker image with the socket mounted. The README lists tools, resources and the docker_compose prompt. Separate warnings cover secrets and the fact that Docker is not a sandbox.

README badge

Report a problem

Foxx AIDocker MCP server
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.