Docker MCP Server
DevOpsstdiov0.3.0
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.
Connect
Add this configuration to .claude/mcp.json
{
"mcpServers": {
"docker": {
"command": "npx",
"args": [
"-y",
"@docker/mcp-server"
]
}
}
}Tools (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"
}
}
}Resources
This server does not expose any resources.
Prompts
This server does not expose any prompts.
Server Information
- Author
- Docker (@docker)
- Repository
- https://github.com/docker/mcp-gateway
- License
- Apache-2.0
- Version
- 0.3.0
- Stars
- 1,410
- Last Updated
- May 25, 2026