MCP Server Docker logo

MCP Server Docker

by ckreiling

Manage Docker containers, images, networks, and volumes through MCP tools, prompts, and resource templates.

Install MCP Server Docker

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ckreiling-mcp-server-docker": {
      "command": "uvx",
      "args": [
        "mcp-server-docker"
      ],
      "env": {
        "DOCKER_HOST": "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.

uvx mcp-server-docker

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 1mo ago.

Overview

The ckreiling/mcp-server-docker MCP server exposes Docker management through MCP tools, prompts, and resource templates. It uses the Python Docker SDK to connect to the local daemon by default and can target a remote daemon over SSH with DOCKER_HOST. Reach for it when an agent needs to create, inspect, start, stop, or remove Docker resources using natural language. Review generated operations carefully because Docker access can affect the host system.

Use cases

  • Deploy containers from a reviewed natural-language plan
  • Inspect logs and runtime statistics for containers
  • Manage Docker images, networks, and volumes
  • Connect an agent to a remote Docker engine over SSH

Key features

  • Natural-language container composition prompt
  • Container lifecycle management
  • Image build, pull, push, and removal
  • Docker network and volume management
  • Container logs and statistics resources
  • SSH-based remote Docker connection

Security & health

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

ActiveLast checked 1d ago

Recent health check succeeded.

13/13 checks healthy over the last 91d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · mcp-server-docker (PyPI)

Adoption & maintenance

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

GitHub stars754Stargazers on the source repository.
Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Server Docker works

What ckreiling/mcp-server-docker MCP server does

The ckreiling/mcp-server-docker MCP server lets an MCP-compatible client manage Docker resources through an agent interface. Its supported scope includes containers, images, networks, and volumes. It is suitable for local Docker experimentation, administration of a Docker engine, and conversational deployment workflows such as bringing up a WordPress and MySQL arrangement.

The included docker_compose prompt accepts a project name and a natural-language description of the desired containers. It guides the model through a plan-and-apply process, allowing the user to review a proposed plan or provide feedback before applying it. A later conversation can use the named project to inspect containers, volumes, and networks associated with that work.

How it works

The ckreiling/mcp-server-docker MCP server uses the Python Docker SDK's environment-based client setup. Local connections use the Docker environment available to the process, while a remote engine can be selected by setting DOCKER_HOST to an ssh:// host URL.

In addition to callable tools, the server provides resource templates for container logs and statistics. Clients can read docker://containers/{container_id}/logs as plain text and docker://containers/{container_id}/stats as JSON, substituting a container ID or name.

Setup and configuration

Claude Desktop can run the package through uvx using the mcp-server-docker package. The README identifies the Claude Desktop configuration paths for macOS and Windows. The server can also run inside a Docker container after building the repository image; that setup mounts /var/run/docker.sock so the server can reach the local Docker daemon.

For remote Docker access, add DOCKER_HOST to the MCP server definition with a value such as an SSH host URL. The Docker SDK documentation provides the remaining connection configuration details.

Tools and capabilities

The ckreiling/mcp-server-docker MCP server exposes these container operations:

  • List, create, run, recreate, start, stop, and remove containers
  • Fetch container logs

Image operations include listing, pulling, pushing, building, and removing images. Network operations cover listing, creating, and removing networks. Volume operations cover listing, creating, and removing volumes.

The Docker Compose-style prompt is intended for conversational deployment and cleanup. Resource templates provide access to logs and runtime statistics without requiring the server to enumerate all running containers as resources.

Limitations and notes

Do not pass API keys, database passwords, or other sensitive values through containers configured by the model. The README warns that information exchanged with the LLM should be treated as compromised unless the LLM runs locally.

Docker is not a secure sandbox. Review containers and their requested configuration before applying changes because the server may affect the host through Docker access. For safety, the server does not support sensitive Docker options such as --privileged or --cap-add and --cap-drop.

The material documents Claude Desktop setup, but does not provide compatibility details for other MCP clients. The Docker-socket installation also grants the server access to the local Docker daemon, so it should be used only in an environment where that level of control is acceptable.

Reviews

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

Frequently Asked Questions about MCP Server Docker

Add a Claude Desktop MCP entry that runs `uvx` with the `mcp-server-docker` package.

Yes. The README provides Claude Desktop configuration paths and example MCP server entries for macOS and Windows.

Yes. Set `DOCKER_HOST` to an `ssh://` host URL in the MCP server definition.

It provides tools for containers, images, networks, and volumes, plus resource templates for container logs and statistics.

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 PreviewMCP Server Docker AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ckreiling-mcp-server-docker?style=directory)](https://allmcps.com/mcp/ckreiling-mcp-server-docker)
HTML Embed
<a href="https://allmcps.com/mcp/ckreiling-mcp-server-docker"><img src="https://allmcps.com/api/badge/ckreiling-mcp-server-docker?style=directory" alt="MCP Server Docker on AllMCPs" /></a>