Docker MCP Server Configuration & Usage Guide

📦
Installationnpx
⚠️
Risk LevelHigh Risk
🔑
API KeyNot Required
💻
Clients2 supported

Docker 容器管理,支持列出容器、View日志、执行命令和管理镜像

High Risk Category: Deploy & Operations Verified: 2026-05-18 Status: Verified

Supported Clients

Installation Command

npx -y @docker/mcp-server-docker

Configuration Example

{
  "mcpServers": {
    "docker": {
      "command": "npx",
      "args": [
        "-y",
        "@docker/mcp-server-docker"
      ]
    }
  }
}

Permission Scope & Security Notes

可管理 Docker 容器,包括启停和执行命令,Required Docker 运行中

Risk Score:7/10

Common Errors

Docker daemon 未运行
启动 Docker Desktop 或 dockerd 服务
permission denied
确认当前用户在 docker 组中

Sources

Recently Verified:2026-05-18。Client versions and configuration formats may change. Please refer to official documentation before use.

Related Tools