rog0x/mcp-docker-tools
MCP server for Docker: list containers/images, analyze Dockerfiles and docker-compose, view container logs
Platform-specific configuration:
{
"mcpServers": {
"mcp-docker-tools": {
"command": "npx",
"args": [
"-y",
"mcp-docker-tools"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
Docker management tools for AI agents, built on the Model Context Protocol.
Provides five tools for inspecting containers, images, Dockerfiles, and Compose configurations — all accessible to LLMs through MCP.
| Tool | Description | |------|-------------| | docker_container_list | List running or all containers with status, ports, image, created time, and resource usage (CPU, memory, network/block I/O) | | docker_image_list | List Docker images with size, tags, created date, and layer count | | docker_dockerfile_analyze | Analyze a Dockerfile for best practices: multi-stage builds, non-root user, layer caching, image size, security | | docker_compose_analyze | Analyze docker-compose.yml: services, ports, volumes, networks, health checks, dependencies, and improvement suggestions | | docker_container_logs | Get container logs with tail, keyword filter, time range, and timestamp support |
git clone <repo-url>
cd mcp-docker-tools
npm install
npm run buildAdd to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"docker-tools": {
"command": "node",
"args": ["D:/products/mcp-servers/mcp-docker-tools/dist/index.js"]
}
}
}claude mcp add docker-tools node D:/products/mcp-servers/mcp-docker-tools/dist/index.jsOr add to .claude/settings.json:
{
"mcpServers": {
"docker-tools": {
"command": "node",
"args": ["D:/products/mcp-servers/mcp-docker-tools/dist/index.js"]
}
}
}{ "tool": "docker_container_list" }{ "tool": "docker_container_list", "args":Loading reviews...