Back to MCP Servers

Docker Server

Manage Docker containers, images, volumes, and networks through natural language commands

dockercontainersdevopsinfrastructurecommunity

Installation

npm install -g @mcp/docker-server

Configuration

{
  "mcpServers": {
    "docker": {
      "command": "npx",
      "args": ["-y", "@mcp/docker-server"],
      "env": {
        "DOCKER_HOST": "unix:///var/run/docker.sock"
      }
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes