Docker MCP logo

Docker MCP

Manage Docker containers, images, networks, volumes, registries, Compose services, and daemon operations through MCP.

Install Docker MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "docker-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@alisaitteke/docker-mcp"
      ],
      "env": {
        "DOCKER_HOST": "YOUR_VALUE_HERE",
        "DOCKER_PORT": "YOUR_VALUE_HERE",
        "DOCKER_PROTOCOL": "YOUR_VALUE_HERE",
        "DOCKER_SOCKET_PATH": "YOUR_VALUE_HERE",
        "DOCKER_CERT_PATH": "YOUR_VALUE_HERE",
        "DOCKER_TLS_VERIFY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @alisaitteke/docker-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The docker-mcp MCP server connects MCP-compatible assistants to a local or remote Docker daemon for managing containers, images, networks, volumes, registries, and Compose services. It runs through npx or a local Node.js installation and detects platform-specific Docker sockets, with environment variables available for custom connections. Reach for it when an agent needs to inspect, operate, build, execute commands in, or clean up Docker resources. Destructive actions use confirmation steps and can preview resources before deletion.

Use cases

  • Inspect running containers and stream their logs
  • Build, tag, pull, and push Docker images
  • Execute commands inside running containers
  • Manage Compose services and validate compose files
  • Prune unused Docker resources after confirmation

Key features

  • Container lifecycle and exec operations
  • Image builds and registry management
  • Docker network and volume administration
  • Docker Compose service support
  • Daemon events, inspection, and resource pruning
  • Two-step confirmation for destructive actions

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

22/25 checks healthy over the last 105d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · @alisaitteke/docker-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads515Package downloads in the last 30 days.
Last commit9mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

How Docker MCP works

What the docker-mcp MCP server does

The docker-mcp MCP server exposes Docker administration through the Model Context Protocol. It lets an MCP client work with container lifecycles, image registries and builds, networks, volumes, Docker Compose services, and daemon-level operations without requiring a separate command wrapper for each task.

Container operations include creation, starting, stopping, restarting, killing, removal, pausing, unpausing, inspection, log access, statistics, resource management, and command execution inside running containers. Image operations cover pulling, pushing, tagging, removal, building from Dockerfiles, and inspection of image history, layers, and metadata.

The server also supports network and volume creation, inspection, connection, disconnection, and removal. Docker Hub and GitHub Container Registry are listed as supported registry targets, with search, tag listing, authentication, and image transfer capabilities. Compose support includes service lifecycle actions, logs, status, builds, dependency handling, and compose-file validation.

How it works

An MCP client starts the server as a standard process, typically with npx @alisaitteke/docker-mcp. The server then connects to the Docker daemon using automatically detected platform defaults or explicit connection settings. Linux uses /var/run/docker.sock; macOS checks that path and Docker Desktop’s ~/.docker/run/docker.sock; Windows uses the Docker Desktop named pipe.

Operations that can remove or otherwise damage resources require a two-step confirmation. The default method uses a confirmation parameter, while clients that support MCP Elicitation can present an interactive confirmation form. Deletion previews show the resources targeted by the action before confirmation.

Setup and configuration

The documented prerequisites for local development are Node.js 18 or newer, a running Docker daemon, and npm or Yarn. The recommended launch method is:

Terminal
npx @alisaitteke/docker-mcp

For a local installation, install @alisaitteke/docker-mcp globally or in a project. Cursor and Claude Desktop configurations start it with the npx command and package name. A source checkout can be built with npm run build and started with npm start, npm run dev, or the generated Node.js entry point.

The docker-mcp MCP server accepts Docker connection settings such as DOCKER_HOST, DOCKER_PORT, DOCKER_PROTOCOL, DOCKER_SOCKET_PATH, DOCKER_CERT_PATH, and DOCKER_TLS_VERIFY. These override automatic socket detection and can be used for remote Docker hosts, including TLS-configured connections.

Tools and capabilities

Available capability areas include:

  • Container lifecycle control, inspection, logs, statistics, exec sessions, and streamed output
  • Image pull, push, tag, removal, builds, and metadata inspection
  • Network and volume management, including container connectivity and mount details
  • Docker Hub and GHCR authentication and image operations
  • Compose service control, monitoring, builds, and configuration validation
  • Daemon information, version and capability checks, resource pruning, and event streaming

Limitations and notes

The server requires access to a reachable Docker daemon; starting the MCP process alone does not provide a Docker runtime. Socket permissions, Docker Desktop availability, named-pipe access, and remote TLS settings can prevent connections. Destructive operations are intentionally not single-step actions and require confirmation.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Docker MCP

docker-mcp is an MCP server that connects AI assistants to a Docker daemon. Its main tools manage containers, images, networks, volumes, registries, Compose services, and system operations, including logs, inspection, command execution, builds, pulls, pushes, pruning, and Docker event monitoring.

Run `npx @alisaitteke/docker-mcp` for the recommended setup. You can also install the package globally or locally with npm. Local development requires Node.js 18 or newer, a running Docker daemon, and a build with `npm run build`.

Yes, docker-mcp works with Cursor through a standard MCP configuration. Add a server entry that runs `npx` with `@alisaitteke/docker-mcp` as its argument, then restart Cursor.

Set Docker connection environment variables such as `DOCKER_HOST`, `DOCKER_TLS_VERIFY`, and `DOCKER_CERT_PATH`. These settings take priority over automatic local socket detection and support remote TCP connections with TLS configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDocker MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/docker-mcp?style=directory)](https://allmcps.com/mcp/docker-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/docker-mcp"><img src="https://allmcps.com/api/badge/docker-mcp?style=directory" alt="Docker MCP on AllMCPs" /></a>