docker-mcp

Docker-mcp is a Model Context Protocol (MCP) server that uses Claude AI to manage Docker containers and compose stacks. It enables container creation, deployment, log retrieval, and status monitoring for

244
18

docker-mcp

A Model Context Protocol (MCP) server for Docker operations, enabling container and compose stack management through Claude AI.

✨ Features

  • πŸš€ Container creation and instantiation
  • πŸ“¦ Docker Compose stack deployment
  • πŸ—„οΈ Container logs retrieval
  • πŸ—‚οΈ Container listing and status monitoring

🎭 Demos

Demonstrations showcasing Docker Compose stack deployment and container log analysis.

πŸš€ Quickstart

Integrate with Claude Desktop by adding the provided configuration to your Claude config file.

Installing via Smithery

Install Docker MCP for Claude Desktop automatically using Smithery:

npx @smithery/cli install docker-mcp --client claude

Prerequisites

  • UV (package manager)
  • Python 3.12+
  • Docker Desktop or Docker Engine
  • Claude Desktop

Installation

Configure the server in your Claude Desktop config file. Development and production configurations are provided.

βš™οΈ Development

Local Setup

  1. Clone the repository.
  2. Create and activate a virtual environment.
  3. Install dependencies using uv sync.

πŸ—„οΈ Debugging

Launch the MCP Inspector for debugging:

npx @modelcontextprotocol/inspector uv --directory <path-to-docker-mcp> run docker-mcp

🧰 Available Tools

Provides tools for container creation, Docker Compose deployment, log retrieval, and container listing.

🚧 Current Limitations

Limitations include no built-in environment variable support, volume management, network management, health checks, restart policies, and resource limits.

πŸ™‹ Contributing

Contribute by forking the repository, creating a feature branch, committing changes, pushing to the branch, and opening a pull request.

πŸ“œ License

Licensed under the MIT License.

✨ Authors

Repository

QU
QuantGeekDev

QuantGeekDev/docker-mcp

Created

December 4, 2024

Updated

March 28, 2025

Language

Python

Category

System Tools