Docker MCP Server

DevOpsstdiov0.3.0
Repository

Official Docker MCP server for container management. Enables AI agents to list, start, stop, and inspect Docker containers, manage images, view logs, and execute commands inside running containers. Supports Docker Compose operations for multi-container applications and provides container health monitoring capabilities.

Bağlan

Bu yapılandırmayı şuraya ekleyin: .claude/mcp.json

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

Araçlar (4)

list_containers

List all Docker containers with their status, ports, and resource usage.

{
  "type": "object",
  "properties": {
    "all": {
      "type": "boolean",
      "description": "Include stopped containers (default false)"
    },
    "filters": {
      "type": "object",
      "description": "Filter containers by label, status, or name"
    }
  }
}

run_container

Create and start a new Docker container from an image.

{
  "type": "object",
  "required": [
    "image"
  ],
  "properties": {
    "env": {
      "type": "object",
      "description": "Environment variables"
    },
    "name": {
      "type": "string",
      "description": "Container name"
    },
    "image": {
      "type": "string",
      "description": "Docker image name and tag"
    },
    "ports": {
      "type": "object",
      "description": "Port mappings (host:container)"
    },
    "volumes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Volume mounts"
    }
  }
}

container_logs

Retrieve logs from a running or stopped container.

{
  "type": "object",
  "required": [
    "container"
  ],
  "properties": {
    "tail": {
      "type": "integer",
      "description": "Number of lines from the end (default 100)"
    },
    "since": {
      "type": "string",
      "description": "Show logs since timestamp or relative time"
    },
    "container": {
      "type": "string",
      "description": "Container name or ID"
    }
  }
}

exec_command

Execute a command inside a running container.

{
  "type": "object",
  "required": [
    "container",
    "command"
  ],
  "properties": {
    "command": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Command and arguments to execute"
    },
    "container": {
      "type": "string",
      "description": "Container name or ID"
    }
  }
}

Kaynaklar

Bu sunucu herhangi bir kaynak sunmuyor.

Prompt'lar

Bu sunucu herhangi bir prompt sunmuyor.

Sunucu bilgileri

Yazar
Docker (@docker)
Repository
https://github.com/docker/mcp-gateway
Lisans
Apache-2.0
Sürüm
0.3.0
Yıldızlar
1,410
Son güncelleme
25 Mayıs 2026