Docker MCP Server

Control Docker containers, images, and services from your AI coding assistant. List, start, stop, read logs, run commands inside containers, and check resource usage.

Local serverstdioMIT

What is the Docker MCP Server?

Mcp Server Docker is an MCP project maintained in the ofershap/mcp-server-docker repository. The maintainer describes its purpose as “Control Docker containers, images, and services from your AI coding assistant. List, start, stop, read logs, run commands inside containers, and check resource usage”. Read the project documentation for the complete scope.

Installation

The documented npm package is mcp-docker-server. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_containersList running (or all) containers with status, ports, and image info
container_logsGet recent logs from a container
start_containerStart a stopped container
stop_containerStop a running container
restart_containerRestart a container
remove_containerRemove a container (with optional force)
exec_commandExecute a command inside a running container
container_statsGet live CPU, memory, and network stats
list_imagesList all Docker images on the host
remove_imageRemove a Docker image

How to install the Docker MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.