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.
连接
将此配置添加到 .claude/mcp.json
{
"mcpServers": {
"docker": {
"command": "npx",
"args": [
"-y",
"@docker/mcp-server"
]
}
}
}工具 (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"
}
}
}资源
此服务器未提供任何资源。
提示词
此服务器未提供任何提示词。
服务器信息
- 许可证
- Apache-2.0
- 版本
- 0.3.0
- 星标
- 1,410
- 最后更新
- 2026年5月25日