Skip to content

MCP server

Docker MCP server

A community MCP server that lets AI list, run, stop and remove Docker containers and manage images, networks and volumes.

At a glance

Maintained by
ckreiling (community)
Tools exposed
10 listed below
Reviewed
September 24, 2026

Why it matters

What it does and why it matters

Docker runs most modern development environments and many production apps. This community server lets an assistant list containers, read their logs, run and stop them, and manage images, networks and volumes, all in plain English.

For developers, it is a quick way to spin up a database for testing, check why a container keeps restarting or clean up old images.

This is a community server by ckreiling, not by Docker Inc. Docker's own MCP Gateway is a different product that runs other MCP servers. Because this server can create and remove containers and volumes, use it on development machines only, never on production hosts, and review the code before installing.

On a developer laptop it saves real time: no more looking up command flags to start a test database or trace a failing container. The assistant explains what it is about to run, which also helps newer team members learn Docker.

Use cases

Best business use cases

Log checks

Read container logs to find errors.

Test databases

Start a database container for local testing.

Clean-up

Find and remove unused images and containers.

Network setup

Create networks for local multi-container setups.

Learning Docker

Explain what each container does.

Tools

Available tools

Tool names as published by the maintainer at review time. Versions change, so check the repository for the current list.

Read and write: Read and write: lists and inspects Docker objects and can create, run, stop and remove containers, images, networks and volumes.

  • list_containers

    List containers.

  • run_container

    Run a new container.

  • stop_container

    Stop a container.

  • remove_container

    Remove a container.

  • fetch_container_logs

    Get a container's logs.

  • list_images

    List images.

  • pull_image

    Pull an image.

  • build_image

    Build an image.

  • create_network

    Create a network.

  • create_volume

    Create a volume.

Workflows

Example workflows

Debug a restarting container

  1. 1

    Ask why a container keeps restarting.

  2. 2

    The assistant lists containers and their status.

  3. 3

    It reads the logs.

  4. 4

    It explains the error.

  5. 5

    You fix the configuration.

Local test database

  1. 1

    Ask for a Postgres container for testing.

  2. 2

    The assistant pulls the image.

  3. 3

    It runs the container with a volume.

  4. 4

    It returns connection details.

  5. 5

    It stops the container when you are done.

Prompts

Example prompts

  • “Which containers are running, and which have restarted in the last hour?”

  • “Show the last 100 log lines for the api container.”

  • “Start a PostgreSQL container for local testing on port 5433.”

Setup

Installation and configuration

Examples for Claude Desktop and Claude Code. Replace the placeholder values with your own keys, and store secrets outside version control.

Claude Desktop: claude_desktop_config.json

{
    "mcpServers": {
        "mcp-server-docker": {
            "command": "uvx",
            "args": [
                "mcp-server-docker"
            ]
        }
    }
}

Claude Code: terminal

claude mcp add docker -- uvx mcp-server-docker
  • Local server: stdio; mcp-server-docker; uvx mcp-server-docker.
  • Needs: None; uses the local Docker environment (DOCKER_HOST can point to a remote daemon, including ssh://).

Security

Security considerations

  • Development only

    Do not connect it to production Docker hosts.

  • Community code

    Review the code and pin the version.

  • Destructive actions

    Approve removals of containers and volumes.

  • Secrets in env

    Avoid passing secrets through prompts.

Related servers

Servers that pair well with it

Kubernetes

An open-source MCP server that lets AI read Kubernetes cluster state and logs and, if allowed, change resources and Helm releases.

Filesystem

The MCP project's Filesystem reference server lets AI read, write, edit, move and search files, only inside folders you allow.

Coolify

Coolify's official MCP server lets AI see self-hosted infrastructure, find unhealthy resources, review deployments and deploy with the right token.

Keep exploring

FAQ

Questions people ask us

Have a question that is not here? Ask us directly.

Start a project

Want this connected to your own systems? We build AI workflows with MCP.

Send a short brief. We reply with questions, a suggested plan and an estimate you can compare with other offers.

Your privacy choices

We use necessary storage to run this site. With your permission we also use Google Analytics to see which pages help people, and load maps from Google. You can change this at any time. Read the cookie policy.