Back to Browse

Docker Tools MCP Server

by Rog0x
Cloud & DevOpsModerate7.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Docker container management and Dockerfile analysis

About

Docker container management and Dockerfile analysis

Security Report

7.0
Moderate7.0Low Risk

Valid MCP server (2 strong, 4 medium validity signals). 3 known CVEs in dependencies (0 critical, 3 high severity) Package registry verified. Imported from the Official MCP Registry.

8 files analyzed · 4 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

Shell Command Execution

Runs commands on your machine. Be cautious — only use if you trust this plugin.

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-rog0x-docker": {
      "args": [
        "-y",
        "@rog0x/mcp-docker-tools"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

mcp-docker-tools

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.

Tools

ToolDescription
docker_container_listList running or all containers with status, ports, image, created time, and resource usage (CPU, memory, network/block I/O)
docker_image_listList Docker images with size, tags, created date, and layer count
docker_dockerfile_analyzeAnalyze a Dockerfile for best practices: multi-stage builds, non-root user, layer caching, image size, security
docker_compose_analyzeAnalyze docker-compose.yml: services, ports, volumes, networks, health checks, dependencies, and improvement suggestions
docker_container_logsGet container logs with tail, keyword filter, time range, and timestamp support

Prerequisites

  • Node.js >= 18
  • Docker CLI installed and accessible in PATH
  • Docker daemon running (for container/image tools)

Installation

git clone <repo-url>
cd mcp-docker-tools
npm install
npm run build

Usage with Claude Desktop

Add 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"]
    }
  }
}

Usage with Claude Code

claude mcp add docker-tools node D:/products/mcp-servers/mcp-docker-tools/dist/index.js

Or add to .claude/settings.json:

{
  "mcpServers": {
    "docker-tools": {
      "command": "node",
      "args": ["D:/products/mcp-servers/mcp-docker-tools/dist/index.js"]
    }
  }
}

Tool Examples

List running containers

{ "tool": "docker_container_list" }

List all containers including stopped

{ "tool": "docker_container_list", "args": { "all": true, "format": "table" } }

List images filtered by name

{ "tool": "docker_image_list", "args": { "filter": "node" } }

Analyze a Dockerfile

{
  "tool": "docker_dockerfile_analyze",
  "args": {
    "content": "FROM node:20\nCOPY . .\nRUN npm install\nCMD [\"node\", \"index.js\"]"
  }
}

Analyze docker-compose.yml

{
  "tool": "docker_compose_analyze",
  "args": {
    "content": "services:\n  web:\n    image: nginx\n    ports:\n      - 80:80"
  }
}

Get container logs

{
  "tool": "docker_container_logs",
  "args": { "container": "my-app", "tail": 50, "filter": "error" }
}

License

MIT

Reviews

No reviews yet

Be the first to review this server!

Docker Tools MCP Server - Docker container management and Dockerfile analysis | MCP Marketplace