Skip to main content
mcpFirst-partyLow risk Safety Privacy
Docker logo

Docker MCP Server for Claude

Manage Docker containers, images, and services directly through Claude with comprehensive Docker API integration

HarnessClaude CodeCodexCursorClaude Desktop

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://docs.docker.com/ai/mcp-catalog-and-toolkit/, https://github.com/JSONbored/awesome-claude/blob/main/content/mcp/docker-mcp-server.mdx
Brand
Docker
Brand domain
docker.com
Brand asset source
brandfetch
Package URL
/downloads/mcp/docker-mcp-server.mcpb
Package SHA256
b426e4d04a6da772ba591f1326d26e4da80e4903e9095ef1d822178889e82b5e
Safety notes
Restrict Docker daemon access because container operations can start, stop, delete, or expose workloads and host-mounted paths.
Privacy notes
Image names, container logs, environment variables, volume paths, compose files, and registry metadata may be exposed through tool calls.
Author
JSONbored
Claim status
unclaimed
Last verified
2025-09-16

Decision playbook

Ready to evaluate for your workflow

Signals are comparatively strong, but you should still validate source, privacy posture, and package provenance for your environment.

Compare context
Selected

0

Current score

96

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Complete

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as first-party.

    Done
  • Metadata reviewed

    Registry metadata indicates a reviewed listing.

    Done

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Complete

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    Package marked verified.

    Done
  • Checksum metadata

    SHA-256 hash is present.

    Done

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

Package install

Copy-ready — paste the snippet to get started.

2 minutes

Install command

Provided

Config snippet

Provided

Copy snippet

Provided

Prerequisites

10 to clear

Platforms

4 listed

Difficulty

5/100

Adoption plan

Balanced adoption plan

Current risk score 0/100. Use staged verification before broader rollout.

Risk 0

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    Listing has review metadata.

    Done
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    Package verification/checksum metadata is available.

    Done

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Required evidence gates are covered (6/6 signals complete).

Risk 0

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Present

Review metadata is present.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Present

Package integrity metadata is present.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required evidence gates are covered for this preset.

Decision timeline

Decision timeline · balanced

6/6 steps complete with no blocking gaps for this preset.

Risk 0

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is available.

Done

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is available.

Done

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

No required blockers for this timeline preset.

Prerequisite readiness

Prerequisite readiness

10 prerequisites to line up before setup. Have accounts and credentials ready first.

0/10 ready
Account & credentials1Install & runtime5Permissions & scopes2Network & hosting22 minutes

Safety & privacy surface

Safety & privacy surface

1 safety and 1 privacy notes across 1 risk area.

1 area
  • SafetyLocal filesRestrict Docker daemon access because container operations can start, stop, delete, or expose workloads and host-mounted paths.
  • PrivacyLocal filesImage names, container logs, environment variables, volume paths, compose files, and registry metadata may be exposed through tool calls.

Safety notes

  • Restrict Docker daemon access because container operations can start, stop, delete, or expose workloads and host-mounted paths.

Privacy notes

  • Image names, container logs, environment variables, volume paths, compose files, and registry metadata may be exposed through tool calls.

Prerequisites

  • Docker installed and running (Docker Desktop for Mac/Windows, Docker Engine for Linux)
  • Docker daemon accessible (via Unix socket /var/run/docker.sock or TCP connection)
  • User permissions to access Docker daemon socket (user in docker group on Linux: sudo usermod -aG docker $USER)
  • Docker MCP Toolkit enabled in Docker Desktop (Settings > Beta features > MCP Toolkit), which provides the `docker mcp` CLI plugin and the MCP Gateway
  • Internet connection for pulling MCP server images from the Docker MCP Catalog (Docker Hub mcp/ namespace)
  • Claude Desktop 0.7.0+ or Claude Code with MCP support
  • Understanding of Docker concepts (containers, images, volumes, networks, Docker Compose)
  • Understanding of the Docker MCP Gateway model (a single gateway runs catalog MCP servers as containers)
  • Registry authentication (for private registries - run docker login to authenticate)
  • Understanding of Docker socket security (Unix socket permissions, TLS for remote connections)

Schema details

Install type
package
Reading time
1 min
Difficulty score
5
Troubleshooting
Yes
Breaking changes
No
Package metadata
Package verified
Yes
SHA-256
b426e4d04a6da772ba591f1326d26e4da80e4903e9095ef1d822178889e82b5e
Skill and platform metadata
Retrieval sources
https://docs.docker.com/ai/mcp-catalog-and-toolkit/https://docs.docker.com/ai/mcp-catalog-and-toolkit/toolkit/
Collection metadata
Estimated setup
2 minutes
Difficulty
beginner
Full copyable content
{
  "MCP_DOCKER": {
    "command": "docker",
    "args": [
      "mcp",
      "gateway",
      "run"
    ],
    "type": "stdio"
  }
}

About this resource

Content

Connect Claude to Docker through the Docker MCP Catalog & Toolkit. Rather than a standalone npm package, Docker ships an docker mcp CLI plugin (in Docker Desktop) and an MCP Gateway that runs catalog MCP servers as containers and exposes them to MCP clients. Connecting the gateway gives Claude container lifecycle management, image operations, and Docker Compose orchestration, plus any other servers you enable from the catalog — all through natural language commands.

Features

  • Container lifecycle management (start, stop, restart)
  • Image operations (pull, build, push, tag)
  • Docker Compose service management
  • Volume and network administration
  • Real-time container logs and monitoring
  • Registry operations and authentication
  • Advanced Docker container and image management with orchestration support, volume management, and network configuration
  • Batch operations support for efficient bulk container operations, image builds, and deployment workflows with automatic retry logic

Use Cases

  • Deploy and manage containerized applications
  • Build and optimize Docker images
  • Monitor container performance and logs
  • Orchestrate multi-container applications with Compose
  • Manage Docker registry operations
  • Build automated container deployment workflows that sync external systems with Docker for real-time infrastructure management and scaling

Installation

Claude Code

  1. Enable the MCP Toolkit in Docker Desktop (Settings > Beta features > MCP Toolkit)
  2. Connect the client: docker mcp client connect claude-code (or add it manually: claude mcp add MCP_DOCKER -- docker mcp gateway run)
  3. Verify installation: claude mcp list
  4. Test connection: claude mcp status MCP_DOCKER

Claude Desktop

  1. Ensure Docker Desktop is installed and running, with the MCP Toolkit enabled
  2. Connect the client: docker mcp client connect claude-desktop (this writes the MCP_DOCKER gateway entry into the Claude Desktop config)
  3. Restart Claude Desktop
  4. Confirm the Docker tools appear in Claude Desktop

Requirements

  • Docker installed and running (Docker Desktop for Mac/Windows, Docker Engine for Linux)
  • Docker daemon accessible (via Unix socket /var/run/docker.sock or TCP connection)
  • User permissions to access Docker daemon socket (user in docker group on Linux: sudo usermod -aG docker $USER)
  • Docker MCP Toolkit enabled in Docker Desktop (provides the docker mcp CLI plugin and the MCP Gateway)
  • Internet connection for pulling MCP server images from the Docker MCP Catalog (Docker Hub mcp/ namespace)
  • Claude Desktop 0.7.0+ or Claude Code with MCP support
  • Understanding of Docker concepts (containers, images, volumes, networks, Docker Compose)
  • Understanding of the Docker MCP Gateway model (one gateway runs catalog MCP servers as containers)
  • Registry authentication (for private registries - run docker login to authenticate)
  • Understanding of Docker socket security (Unix socket permissions, TLS for remote connections)

Configuration

{
  "mcpServers": {
    "MCP_DOCKER": {
      "command": "docker",
      "args": ["mcp", "gateway", "run"],
      "type": "stdio"
    }
  }
}

Examples

List all running containers and their status

Common usage pattern for this MCP server

Ask Claude: "List all running containers and their status"

Build a Docker image from a Dockerfile

Common usage pattern for this MCP server

Ask Claude: "Build a Docker image from a Dockerfile"

Start a new container with custom configuration

Common usage pattern for this MCP server

Ask Claude: "Start a new container with custom configuration"

View real-time logs from a specific container

Common usage pattern for this MCP server

Ask Claude: "View real-time logs from a specific container"

Deploy a multi-service application using Docker Co...

Common usage pattern for this MCP server

Ask Claude: "Deploy a multi-service application using Docker Compose"

Run Container with Environment Variables

Create and start a Docker container with environment variables, port mapping, and volume mounts

// Run Docker container with environment variables
const container = await docker.containers.create({
  image: "node:18",
  env: ["NODE_ENV=production", "PORT=3000"],
  ports: [{ host: 8080, container: 3000 }],
  volumes: [{ host: "./data", container: "/app/data" }],
});
await container.start();

Security

  • Secure Docker daemon socket access
  • TLS certificate validation for remote connections
  • Registry authentication management
  • Container resource limits and isolation
  • Network security controls
  • Docker socket access grants full system control - ensure Docker socket permissions are restricted and only accessible to trusted processes
  • Docker API credentials and TLS certificates must be securely stored and never exposed in client-side code or public repositories - use environment variables and secure credential management
  • Docker container IDs and image names may expose infrastructure architecture and deployment patterns - ensure Docker resource identifiers are kept private and not shared in public configurations
  • Rate limiting and API quota management are critical for Docker MCP servers - implement proper rate limit handling, retry logic, and quota monitoring to prevent service disruption
  • Docker webhook configurations and payloads may contain sensitive container and image metadata - ensure webhook endpoints are properly secured with authentication and HTTPS encryption

Troubleshooting

Permission denied connecting to Docker daemon socket

Add your user to docker group: sudo usermod -a -G docker $USER, then log out and back in. Alternatively, run sudo systemctl start docker to ensure daemon is running.

Cannot connect to Docker daemon - connection refused

Start Docker daemon: sudo systemctl start docker (Linux) or launch Docker Desktop (Mac/Windows). Verify daemon is running: docker ps. Check DOCKER_HOST environment variable points to correct socket.

Error: /var/run/docker.sock has wrong permissions

Run sudo chmod 666 /var/run/docker.sock (temporary fix) or add user to docker group (permanent). Verify socket file exists: ls -l /var/run/docker.sock.

docker mcp command not found

The docker mcp CLI plugin ships with the MCP Toolkit. Update Docker Desktop and enable the MCP Toolkit (Settings > Beta features > MCP Toolkit), then re-run docker mcp gateway run. Verify with docker mcp version.

Container operations fail with authentication errors

Run docker login to authenticate with registry. Verify registry credentials are correct. For private registries, ensure network access and check firewall rules don't block Docker registry ports.

Docker MCP server authentication errors with Docker API

Verify Docker API credentials are valid. Check TLS certificate configuration for remote Docker daemon. Ensure Docker socket permissions allow access. For remote connections, verify network connectivity and firewall settings.

Docker container creation or start failures

Check container resource limits (CPU, memory). Verify image exists and is accessible. Ensure port mappings do not conflict. Check Docker daemon logs for detailed error messages. Verify disk space is available.

Docker MCP server connection timeouts or network errors

Check network connectivity to Docker daemon. Verify Docker socket is accessible. Increase request timeout values. Implement connection pooling and retry mechanisms with exponential backoff.

Source citations

Add this badge to your README

Show that Docker MCP Server for Claude is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/mcp/docker-mcp-server.svg)](https://heyclau.de/entry/mcp/docker-mcp-server)

How it compares

Docker MCP Server for Claude side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

3 trust signals differ across this comparison (Package trust, Source provenance, Submitter).

Field

Manage Docker containers, images, and services directly through Claude with comprehensive Docker API integration

Open dossier

Docker's MCP CLI plugin and gateway for running catalog, OCI, registry, or local-file MCP servers in containers and exposing them to Claude, Cursor, VS Code, and other MCP clients through a shared gateway profile.

Open dossier

Kubernetes cluster management and container orchestration through MCP integration

Open dossier

Manage deployments, analyze logs, and control Vercel projects

Open dossier
Next steps
Trust
Review statusReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewed
Package trustDiffersPackage verifiedPackage not verifiedPackage verifiedPackage verified
Source provenanceDiffersSource-backedSource-backedNo submission linkNo submission link
SubmitterDiffersoktofeesh1
Install riskLow riskReview firstLow riskLow risk
Notes Safety Privacy Safety Privacy Safety Privacy Safety Privacy
BrandDocker logoDockerDocker MCP Gateway logoDocker MCP GatewayKubernetes logoKubernetesVercel logoVercel
Categorymcpmcpmcpmcp
Sourcefirst-partysource-backedfirst-partyfirst-party
AuthorJSONboreddockerfeiskyerVercel
Added2025-09-162026-06-062025-09-202025-09-18
Platforms
Claude CodeCodexCursorClaude Desktop
Claude CodeClaude Desktop
Claude CodeClaude Desktop
Claude CodeClaude Desktop
Source repo
Safety notesRestrict Docker daemon access because container operations can start, stop, delete, or expose workloads and host-mounted paths.Docker MCP Gateway can start and route multiple MCP servers, so each connected client inherits the permissions of every enabled server and tool. Container isolation reduces host exposure, but Docker Engine or Docker socket access is still highly privileged and should be limited to trusted users. The gateway supports tool allowlists, CPU limits, memory limits, network blocking, secret blocking, image signature verification, and interceptors; review defaults before production use. Catalog, profile, local-file, and registry references can change which servers run behind the gateway, especially when watch mode or shared profiles are enabled. Tool-call logging is enabled by default in the documented flags, so avoid routing secrets or sensitive payloads unless logging and retention are controlled.Use a least-privilege kubeconfig and selected context because cluster operations can affect production workloads and infrastructure.Scope Vercel team and project permissions because deployments, environment variables, and domain changes can affect production apps.
Privacy notesImage names, container logs, environment variables, volume paths, compose files, and registry metadata may be exposed through tool calls.Docker MCP Gateway may process MCP server definitions, catalog entries, profile exports, local server files, secrets, OAuth tokens, tool names, tool arguments, tool outputs, logs, container metadata, and Docker Engine metadata. Secrets may come from Docker Desktop secrets or `.env` fallback files; keep those stores out of version control and restrict filesystem permissions. Tool outputs can include local files, API responses, credentials, account data, or infrastructure details depending on the enabled downstream MCP servers. Exported profiles and catalogs can reveal internal server names, image references, allowed tools, configuration values, and service endpoints.Resource specs, pod logs, namespaces, environment variables, secret names or values, and cluster metadata may be exposed.Deployment logs, project metadata, environment variable names, domains, team details, and runtime errors may be exposed.
Prerequisites
  • Docker installed and running (Docker Desktop for Mac/Windows, Docker Engine for Linux)
  • Docker daemon accessible (via Unix socket /var/run/docker.sock or TCP connection)
  • User permissions to access Docker daemon socket (user in docker group on Linux: sudo usermod -aG docker $USER)
  • Docker MCP Toolkit enabled in Docker Desktop (Settings > Beta features > MCP Toolkit), which provides the `docker mcp` CLI plugin and the MCP Gateway
  • Docker Desktop `4.59+` with the MCP Toolkit feature enabled, or the Docker MCP CLI plugin built and installed independently.
  • Docker Engine access for running containerized MCP servers and the gateway.
  • MCP server sources prepared from Docker MCP Catalog entries, OCI images, MCP Registry entries, or local YAML/JSON server files.
  • Profiles feature enabled when using `docker mcp profile` and profile-based gateway runs outside Docker Desktop.
  • Kubernetes cluster access (local, cloud, or remote cluster)
  • kubectl installed and configured (version within ±1 minor version of cluster)
  • kubeconfig file configured at ~/.kube/config (or custom path via KUBECONFIG environment variable)
  • uvx package manager installed (for uvx installation method) or Docker (for Docker installation method)
  • Vercel account (free or paid plan)
  • OAuth/Bearer token authentication (for mcp.vercel.com MCP connection)
  • Vercel Access Token (created in Dashboard Settings > Tokens)
  • Network access to mcp.vercel.com (HTTPS required, HTTP transport)
Install
docker mcp client connect claude-code && claude mcp list
docker mcp gateway run
claude mcp add kubernetes --env KUBECONFIG=/path/to/your/kubeconfig -- uvx mcp-kubernetes-server && claude mcp list
claude mcp add --transport http vercel https://mcp.vercel.com && claude mcp list
Config
{
  "mcpServers": {
    "MCP_DOCKER": {
      "command": "docker",
      "args": [
        "mcp",
        "gateway",
        "run"
      ],
      "type": "stdio"
    }
  }
}
{
  "mcpServers": {
    "MCP_DOCKER": {
      "command": "docker",
      "args": [
        "mcp",
        "gateway",
        "run"
      ]
    }
  }
}
{
  "mcpServers": {
    "kubernetes": {
      "env": {
        "KUBECONFIG": "${KUBECONFIG:-~/.kube/config}"
      },
      "args": [
        "mcp-kubernetes-server"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
{
  "mcpServers": {
    "vercel": {
      "url": "https://mcp.vercel.com",
      "type": "http"
    }
  }
}
Citations
ClaimUnclaimedUnclaimedUnclaimedUnclaimed
Open 4 picks in the interactive comparison tool

Related guides

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.