# docker-mcp [Health: Active]

**Category:** ☁️ Cloud Platforms  
**Repository:** https://github.com/alisaitteke/docker-mcp  
**GitHub Stars:** 2  
**npm Downloads (last month):** 515  
**Views:** 8  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/docker-mcp

## Description
MCP server for managing Docker containers, images, networks, volumes, and registries

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "docker-mcp": {
    "command": "npx",
    "args": ["-y","@alisaitteke/docker-mcp"],
    "env": {
      "DOCKER_HOST": "",
      "DOCKER_PORT": "",
      "DOCKER_PROTOCOL": "",
      "DOCKER_SOCKET_PATH": "",
      "DOCKER_CERT_PATH": "",
      "DOCKER_TLS_VERIFY": ""
    }
  }
}
```

**Requires environment variables:** `DOCKER_HOST`, `DOCKER_PORT`, `DOCKER_PROTOCOL`, `DOCKER_SOCKET_PATH`, `DOCKER_CERT_PATH`, `DOCKER_TLS_VERIFY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/docker-mcp/readme_

