docker-mcp
Provides tools for managing Docker containers, images, volumes, and networks, plus diagnostic and auto-healing capabilities for container failures.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@docker-mcpWhy did my api container crash? Can you fix it?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
docker-mcp
AI-powered Docker management: an MCP server exposing 32 tools for natural-language container/image/volume/network operations, plus an A2A multi-agent layer where specialized agents autonomously diagnose and remediate container failures.
Why
Debugging a crashed container manually:
docker ps -a
docker inspect crashed-api
docker logs --tail 50 crashed-api
# ...squint at exit code 137, google what it means...With docker-mcp you ask an LLM: "Why did my api container crash?" — it calls
diagnose_container and answers: "exit 137 = SIGKILL, OOMKilled=true → the kernel
killed it for exceeding its memory limit." Or ask "fix it" and auto_heal_container
runs the multi-agent pipeline end to end.
Related MCP server: Docker Manager MCP
Architecture
┌──────────┐ ┌─────────────────┐ JSON-RPC 2.0 ┌──────────────────────┐
│ LLM │◄──►│ MCP client │◄──(over stdio)─►│ docker-mcp server │
│ (Claude) │ │ (Claude Desktop)│ │ (32 MCP tools) │
└──────────┘ └─────────────────┘ └──────┬───────┬───────┘
│ │ auto_heal_container
Docker SDK │ │ (A2A JSON-RPC)
(HTTP over │ ┌───▼──────────────┐
unix socket)│ │ diagnosis-agent │
┌──────▼┐ │ │artifact │
│dockerd│ │ remediation-agent│
└───────┘ └──────────────────┘Protocol layer — FastMCP handles the JSON-RPC handshake, advertises tool schemas (auto-derived from type hints + docstrings), dispatches
tools/callrequests.Tool layer — five domain modules (
containers11,images5,volumes5,networks7,diagnostics3) + the A2A bridge (1). Adding a domain = one moduleone
register()call.
Docker layer — one lazy singleton SDK client (
client.py); every SDK exception becomes a structured{"error", "error_type"}result so the LLM can self-correct.A2A layer —
DiagnosisAgent(read-only evidence gathering + root-cause classification) andRemediationAgent(declarative policy table, allowlisted non-destructive actions, dry-run by default), chained by a transport-independentOrchestratorthat discovers agents via their Agent Cards. Seedocs/A2A.md.
Quickstart
Prerequisites: Python 3.10+, Docker running.
pip install -e .Claude Desktop config (claude_desktop_config.json):
{"mcpServers": {"docker": {"command": "docker-mcp"}}}Run the A2A agents as real HTTP services (optional — the MCP bridge runs them in-process by default):
python -m docker_mcp.a2a.serve diagnosis --port 9001
python -m docker_mcp.a2a.serve remediation --port 9002Tests (mocked daemon, no Docker needed):
python -m pytest tests/ -v # 13 testsTools at a glance
Domain | Tools |
Containers (11) | list, inspect, run, start, stop, restart, remove, logs, stats, exec, prune |
Images (5) | list, pull, inspect, remove, prune |
Volumes (5) | list, create, inspect, remove, prune |
Networks (7) | list, inspect, create, remove, connect, disconnect, prune |
Diagnostics (3) | diagnose_container, docker_system_info, docker_disk_usage |
A2A bridge (1) | auto_heal_container |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Create and manage AI agents that collaborate and solve problems through natural language interacti…
Your AI Agent's Infrastructure Layer. Connect Claude, Copilot, Codex, or ChatGPT to 200+ managed open source services. Start databases, pipelines, and applications through natural language.
Build, validate, and deploy multi-agent AI solutions from any AI environment.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables natural language management of Docker containers, images, networks, and volumes with support for both local and remote Docker engines. Features automated container composition, debugging capabilities, and persistent data management through an intuitive conversational interface.GPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Docker containers, deploy stacks, and monitor services across multiple Docker hosts from one centralized location. Supports container lifecycle management, Docker Compose operations, and infrastructure orchestration through natural language commands.6MIT
- FlicenseNot gradedqualityDmaintenanceEnables Docker container management through natural language conversations, including deployment, health monitoring, dependency resolution, auto-redeployment on file changes, and environment snapshots.-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage and analyze containers across Docker and Podman through natural language, providing unified inspection, monitoring, and diagnostics.3-