Docker

io.github.rog0xPublished by GitHub account rog0xv1.0.1Updated Oct 24, 2026

Docker container management and Dockerfile analysis

VerifiedSTDIODesktop onlyCloud & InfrastructureDeveloper Tools

Overview

AI-generated overview

Local MCP server that lets an assistant inspect Docker containers, images and logs, and review Dockerfiles and Compose files for best practices.

What you can do
  • List running or all containers with status, ports, image, created time and CPU/memory/network/block I/O usage
  • List Docker images with size, tags, created date and layer count
  • Read container logs with tail, keyword filter, time range and timestamps
  • Analyze a Dockerfile for multi-stage builds, non-root user, layer caching, image size and security
  • Analyze a docker-compose.yml for services, ports, volumes, networks, health checks, dependencies and improvement suggestions
When to use it
Useful when you work with Docker locally and want an assistant to check what is running, dig through container logs, or review Dockerfiles and Compose files before committing or deploying. It is read-only inspection and static analysis, not a way to start, stop or change containers.
Requirements
Runs as a local stdio process on the desktop. Needs Node.js 18 or newer and the Docker CLI on PATH, with the Docker daemon running for the container and image tools. No accounts, API keys or environment variables are declared.
Before you install
Container logs and container/image listings are sent to the model, so they may expose secrets, tokens or internal hostnames found in output. The README's configuration examples point at a local build path, so you must build the package yourself before use.

Installation

In SourceWeft

  1. Open Docker in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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

bash
git clone <repo-url>cd mcp-docker-toolsnpm installnpm run build

Usage with Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

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

Usage with Claude Code

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

Or add to .claude/settings.json:

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

Tool Examples

List running containers

json
{ "tool": "docker_container_list" }

List all containers including stopped

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

List images filtered by name

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

Analyze a Dockerfile

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

Analyze docker-compose.yml

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

Get container logs

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

License

MIT

Source: README.md at commit 8a0b02a

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts