A powerful Model Context Protocol (MCP) server for Docker operations, enabling seamless container and compose stack management through Claude AI. - ๐ Container creation and instantiation - ๐ฆ Docker Compose stack deployment - ๐ Container logs retrieval - ๐ Container listing and status monitoring To try this in Claude Desktop app, add this to your claude config files: To install Docker MCP for C
Add this skill
npx mdskills install QuantGeekDev/docker-mcpWell-documented MCP server with useful Docker tools, clear setup, and good examples
1# ๐ณ docker-mcp23[](https://www.python.org/downloads/release/python-3120/)4[](https://opensource.org/licenses/MIT)5[](https://github.com/psf/black)6[](https://smithery.ai/protocol/docker-mcp)78A powerful Model Context Protocol (MCP) server for Docker operations, enabling seamless container and compose stack management through Claude AI.910## โจ Features1112- ๐ Container creation and instantiation13- ๐ฆ Docker Compose stack deployment14- ๐ Container logs retrieval15- ๐ Container listing and status monitoring1617### ๐ฌ Demos18#### Deploying a Docker Compose Stack192021https://github.com/user-attachments/assets/b5f6e40a-542b-4a39-ba12-7fdf803ee27822232425#### Analyzing Container Logs26272829https://github.com/user-attachments/assets/da386eea-2fab-4835-82ae-896de955d93430313233## ๐ Quickstart3435To try this in Claude Desktop app, add this to your claude config files:36```json37{38 "mcpServers": {39 "docker-mcp": {40 "command": "uvx",41 "args": [42 "docker-mcp"43 ]44 }45 }46}47```4849### Installing via Smithery5051To install Docker MCP for Claude Desktop automatically via [Smithery](https://smithery.ai/protocol/docker-mcp):5253```bash54npx @smithery/cli install docker-mcp --client claude55```5657### Prerequisites5859- UV (package manager)60- Python 3.12+61- Docker Desktop or Docker Engine62- Claude Desktop6364### Installation6566#### Claude Desktop Configuration6768Add the server configuration to your Claude Desktop config file:6970**MacOS**: `~/Library/Application\ Support/Claude/claude_desktop_config.json`71**Windows**: `%APPDATA%/Claude/claude_desktop_config.json`7273<details>74 <summary>๐ป Development Configuration</summary>7576```json77{78 "mcpServers": {79 "docker-mcp": {80 "command": "uv",81 "args": [82 "--directory",83 "<path-to-docker-mcp>",84 "run",85 "docker-mcp"86 ]87 }88 }89}90```91</details>9293<details>94 <summary>๐ Production Configuration</summary>9596```json97{98 "mcpServers": {99 "docker-mcp": {100 "command": "uvx",101 "args": [102 "docker-mcp"103 ]104 }105 }106}107```108</details>109110## ๐ ๏ธ Development111112### Local Setup1131141. Clone the repository:115```bash116git clone https://github.com/QuantGeekDev/docker-mcp.git117cd docker-mcp118```1191202. Create and activate a virtual environment:121```bash122python -m venv venv123source venv/bin/activate # On Windows: venv\Scripts\activate124```1251263. Install dependencies:127```bash128uv sync129```130131### ๐ Debugging132133Launch the MCP Inspector for debugging:134135```bash136npx @modelcontextprotocol/inspector uv --directory <path-to-docker-mcp> run docker-mcp137```138139The Inspector will provide a URL to access the debugging interface.140141## ๐ Available Tools142143The server provides the following tools:144145### create-container146Creates a standalone Docker container147```json148{149 "image": "image-name",150 "name": "container-name",151 "ports": {"80": "80"},152 "environment": {"ENV_VAR": "value"}153}154```155156### deploy-compose157Deploys a Docker Compose stack158```json159{160 "project_name": "example-stack",161 "compose_yaml": "version: '3.8'\nservices:\n service1:\n image: image1:latest\n ports:\n - '8080:80'"162}163```164165### get-logs166Retrieves logs from a specific container167```json168{169 "container_name": "my-container"170}171```172173### list-containers174Lists all Docker containers175```json176{}177```178179## ๐ง Current Limitations180181- No built-in environment variable support for containers182- No volume management183- No network management184- No container health checks185- No container restart policies186- No container resource limits187188## ๐ค Contributing1891901. Fork the repository from [docker-mcp](https://github.com/QuantGeekDev/docker-mcp)1912. Create your feature branch1923. Commit your changes1934. Push to the branch1945. Open a Pull Request195196## ๐ License197198This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.199200## โจ Authors201202- **Alex Andru** - *Initial work | Core contributor* - [@QuantGeekDev](https://github.com/QuantGeekDev)203- **Ali Sadykov** - *Initial work | Core contributor* - [@md-archive](https://github.com/md-archive)204205---206Made with โค๏ธ207
Full transparency โ inspect the skill content before installing.