docker
v1.0.1MCP server for Docker — manage containers, images, volumes, and compose services from your IDE
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_containers
List Docker containers. Set all=true to include stopped containers.
| Parameter | Type | Description |
|---|---|---|
all | boolean | Include stopped containers |
container_logs
Get logs from a Docker container.
| Parameter | Type | Description |
|---|---|---|
id * | string | Container ID or name |
tail | number | Number of lines from the end |
start_container
Start a stopped Docker container.
| Parameter | Type | Description |
|---|---|---|
id * | string | Container ID or name |
stop_container
Stop a running Docker container.
| Parameter | Type | Description |
|---|---|---|
id * | string | Container ID or name |
restart_container
Restart a Docker container.
| Parameter | Type | Description |
|---|---|---|
id * | string | Container ID or name |
remove_container
Remove a Docker container. Use force=true to remove running containers.
| Parameter | Type | Description |
|---|---|---|
id * | string | Container ID or name |
force | boolean | Force remove running container |
exec_command
Execute a command inside a running Docker container.
| Parameter | Type | Description |
|---|---|---|
command * | array | Command and arguments, e.g. ['ls', '-la'] |
id * | string | Container ID or name |
container_stats
Get CPU, memory, and network stats for a running Docker container.
| Parameter | Type | Description |
|---|---|---|
id * | string | Container ID or name |
list_images
List Docker images on the host.
remove_image
Remove a Docker image. Use force=true to force removal.
| Parameter | Type | Description |
|---|---|---|
id * | string | Image ID or tag |
force | boolean | Force remove |