SuperAPI AI Directory

docker-mcp

docker-mcp is a server based on the Model Context Protocol (MCP) for managing Docker containers and Compose stacks through Claude AI. It provides capabilities such as container creation and instantiation, Docker Compose stack deployment, container log retrieval, and container listing and status monitoring. Before use, you need to install the UV package manager and Docker Desktop or Docker Engine, and you need to add the corresponding server configuration to the Claude Desktop configuration file. The project is licensed under MIT.

Open website

About this tool

docker-mcp is a Model Context Protocol (MCP) server for Docker operations, designed to let users seamlessly manage containers and Compose stacks through Claude AI.

Purpose

docker-mcp encapsulates common Docker operations as MCP tools, enabling Claude AI to directly call these tools to complete container and stack management tasks.

Main capabilities

According to the project description, this server provides the following features:

  • 🚀 Container creation and instantiation
  • 📦 Docker Compose stack deployment
  • 🔍 Container log retrieval
  • 📊 Container listing and status monitoring

Available tools

The server provides the following tools:

  • create-container: Create a standalone Docker container
  • Deploy a Docker Compose stack
  • Retrieve logs from a specific container
  • list-containers: List all Docker containers

Usage

To use it in the Claude Desktop application, you need to add the server configuration to Claude's configuration file. You can also use Smithery to automatically install Docker MCP into Claude Desktop.

Prerequisites:

  • UV (package manager)
  • Docker Desktop or Docker Engine

Configuration method: Add the server configuration to the Claude Desktop configuration file.

  • MacOS path: ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • Windows path: %APPDATA%/Claude/claude_desktop_config.json

Development and debugging steps:

  1. Clone the repository
  2. Create and activate a virtual environment
  3. Install dependencies
  4. Start MCP Inspector for debugging; Inspector will provide a URL for accessing the debugging interface.

Applicable scenarios

Suitable for scenarios where you need to manage Docker containers, deploy Compose stacks, view logs, and monitor container status through natural language or tool calls in Claude AI.

Limitations

Current limitations include:

  • No built-in container environment variable support
  • No volume management
  • No network management
  • No container health checks
  • No container restart policies
  • No container resource limits

License

This project is licensed under the MIT License; see the LICENSE file for details.

Contributors

  • Alex Andru - Initial work | Core contributor - @QuantGeekDev
  • Ali Sadykov - Initial work | Core contributor - @md-archive