mcp-server-docker

This repository provides an MCP server that uses natural language to manage Docker containers. It allows users to compose, introspect, debug, and manage persistent data with Docker volumes.

348
24

Docker MCP Server

An MCP server that manages Docker using natural language.

What can it do?

  • Compose containers with natural language.
  • Introspect and debug running containers.
  • Manage persistent data with Docker volumes.

Who is this for?

  • Server administrators: Connect to remote Docker engines for managing public-facing websites.
  • Tinkerers: Spin up containers locally without manual commands.

Quickstart

Installation instructions are provided using uv or Docker.

Prompts

docker_compose

Compose containers using natural language. Provide a project name and container descriptions, and the LLM will generate a plan for you to apply. The LLM will enter a plan+apply loop, where you can provide feedback to refine the plan.

Resources

The server provides resources for each container, including stats (CPU, memory) and logs.

Tools

Provides tools for managing containers, images, networks, and volumes.

Disclaimers

Avoid configuring containers with sensitive data. Review created containers carefully, as Docker is not a secure sandbox. The server doesn't support sensitive Docker options like --privileged.

Configuration

Uses the Python Docker SDK's from_env method for configuration.

Development

Devbox is recommended for configuring the development environment.

Repository

CK
ckreiling

ckreiling/mcp-server-docker

Created

December 7, 2024

Updated

March 28, 2025

Language

Python

Category

System Tools