Docker MCP Server

Manage Docker containers and compose stacks through natural language with Claude AI.

Local serverstdioPython 497

What is the Docker MCP server?

Manage Docker containers and compose stacks through natural language with Claude AI. Exposed over MCP by the docker mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

What it actually does

A powerful Model Context Protocol (MCP) server for Docker operations, enabling seamless container and compose stack management through Claude AI.

Its toolset

Everything the assistant can do here goes through one of these:

  • Prerequisites — The Prerequisites tool exposed by this server
  • Installation — The Installation tool exposed by this server

Configuration

You will need one environment variable: ENV_VAR. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • UV (package manager) - Python 3.12+ - Docker Desktop or Docker Engine - Claude Desktop

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at @smithery/cli on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

When to reach for it

Among the cloud and infrastructure options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Docker's toolset — Prerequisites, Installation — is a fair guide to whether it matches your workflow. It is maintained by QuantGeekDev; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Docker's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the docker mcp server does with a few real requests.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.
InstallationThe Installation tool exposed by this server.

How to install the Docker MCP server

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

Configuration as documented by the project. Restart the client after saving.

Configuration

  • UV (package manager) - Python 3.12+ - Docker Desktop or Docker Engine - Claude Desktop
VariableDescriptionRequired
ENV_VARConfiguration value read at startup.Optional

Example prompts to try

  • Use Docker to Prerequisites.
  • Use Docker to Installation.

Frequently asked questions

Docker MCP (Model Context Protocol) is a tool that allows you to manage Docker containers and Docker Compose stacks using natural language commands through Claude AI.