Docker MCP Server
v0.14.0Manage Docker containers, images, networks, volumes and Buildx builds from an LLM.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
docker_list_containers
List all Docker containers (same container set as `docker ps`)
| Parameter | Type | Description |
|---|---|---|
all | boolean | Show all containers (default shows just running) |
filters | Filter containers | |
format | string | Output verbosity. `summary` returns a compact `docker ps`-style row (no health-check logs, labels or image digests); `full` returns the inspect-level object. Defaults to `summary` for listings. |
docker_create_container
Create a new Docker container
| Parameter | Type | Description |
|---|---|---|
image * | string | Docker image name |
auto_remove | boolean | Automatically remove the container |
command | Command to run in container | |
detach | boolean | Run container in the background |
entrypoint | Entrypoint to run in container | |
environment | Environment variables dictionary | |
labels | Container labels | |
name | Container name | |
network | Network to attach the container to | |
ports | Container-to-host port bindings | |
volumes | Volume mappings |
docker_run_container
Run an image in a new Docker container (preferred over `docker_create_container` + `docker_start_container`)
| Parameter | Type | Description |
|---|---|---|
image * | string | Docker image name |
auto_remove | boolean | Automatically remove the container |
command | Command to run in container | |
detach | boolean | Run container in the background |
entrypoint | Entrypoint to run in container | |
environment | Environment variables dictionary | |
labels | Container labels | |
name | Container name | |
network | Network to attach the container to | |
ports | Container-to-host port bindings | |
volumes | Volume mappings |
docker_recreate_container
Stop and remove a container, then run a new container. With preserve_configuration, rebuild from the inspected configuration and restore the original if replacement creation fails.
| Parameter | Type | Description |
|---|---|---|
auto_remove | boolean | Automatically remove the container |
command | Command to run in container | |
container_id | ||
detach | boolean | Run container in the background |
entrypoint | Entrypoint to run in container | |
environment | Environment variables dictionary | |
image | ||
labels | Container labels | |
name | Container name | |
network | Network to attach the container to | |
ports | Container-to-host port bindings | |
preserve_configuration | boolean | Rebuild from the inspected container configuration (environment, mounts/volume identity, networks, ports, labels, healthcheck, restart policy) and restore the original if replacement creation fails. U… |
volumes | Volume mappings |
docker_start_container
Start a Docker container
| Parameter | Type | Description |
|---|---|---|
container_id * | string | Container ID or name |
docker_fetch_container_logs
Fetch logs for a Docker container
| Parameter | Type | Description |
|---|---|---|
container_id * | string | Container ID or name |
tail | Number of lines to show from the end |
docker_stop_container
Stop a Docker container
| Parameter | Type | Description |
|---|---|---|
container_id * | string | Container ID or name |
docker_remove_container
Remove a Docker container
| Parameter | Type | Description |
|---|---|---|
container_id * | string | Container ID or name |
force | boolean | Force remove the container |
docker_container_inspect
Inspect a Docker container with environment values redacted
| Parameter | Type | Description |
|---|---|---|
container_id * | string | Container ID or name |
docker_container_health
Summarise container health, restart count and exit state without environment values
| Parameter | Type | Description |
|---|---|---|
container_id * | string | Container ID or name |
docker_container_processes
List the processes running in a Docker container
| Parameter | Type | Description |
|---|---|---|
container_id * | string | Container ID or name |
docker_container_stats
Show a one-shot CPU, memory, network and block-IO snapshot for a container
| Parameter | Type | Description |
|---|---|---|
container_id * | string | Container ID or name |
docker_container_exec
Execute a command in a running container (argv, no shell, bounded output)
| Parameter | Type | Description |
|---|---|---|
command * | array | Command and arguments to run |
container_id * | string | Container ID or name |
env | Extra environment variables | |
timeout_seconds | integer | Maximum run time in seconds (1-300) |
workdir | Working directory inside the container |
docker_list_images
List Docker images
| Parameter | Type | Description |
|---|---|---|
all | boolean | Show all images (default hides intermediate) |
filters | Filter images | |
format | string | Output verbosity. `summary` returns a compact `docker ps`-style row (no health-check logs, labels or image digests); `full` returns the inspect-level object. Defaults to `summary` for listings. |
name | Filter images by repository name |
docker_pull_image
Pull a Docker image
| Parameter | Type | Description |
|---|---|---|
repository * | string | Image repository |
tag | Image tag | |
timeout_seconds | integer | Maximum pull time in seconds (1-3600) |
docker_push_image
Push a Docker image
| Parameter | Type | Description |
|---|---|---|
repository * | string | Image repository |
tag | Image tag |
docker_build_image
Build a Docker image from a Dockerfile
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to build context |
tag * | string | Image tag |
build_args | Build arguments | |
dockerfile | Path to Dockerfile | |
no_cache | boolean | Do not use cache |
platform | Target platform | |
timeout_seconds | integer | Maximum build time in seconds (1-3600) |
docker_remove_image
Remove a Docker image
| Parameter | Type | Description |
|---|---|---|
image * | string | Image ID or name |
force | boolean | Force remove the image |
docker_image_inspect
Inspect a Docker image with environment values redacted
| Parameter | Type | Description |
|---|---|---|
image * | string | Image ID or name |
docker_image_history
Show the layer history of a Docker image
| Parameter | Type | Description |
|---|---|---|
image * | string | Image ID or name |
docker_buildx_list
List Docker Buildx builder instances
docker_buildx_du
Show Docker Buildx cache usage per builder
| Parameter | Type | Description |
|---|---|---|
builder | Builder instance to query | |
verbose | boolean | Include individual cache records |
docker_buildx_inspect
Inspect a Docker Buildx builder instance
| Parameter | Type | Description |
|---|---|---|
builder | Builder instance to inspect |
docker_buildx_history
List Docker Buildx build records
| Parameter | Type | Description |
|---|---|---|
builder | Builder instance to query |
docker_buildx_logs
Show the logs of a Docker Buildx build record
| Parameter | Type | Description |
|---|---|---|
ref * | string | Build record reference or build ID |
builder | Builder instance to query | |
progress | string | Progress output type |
docker_buildx_build
Build an image with Docker Buildx
| Parameter | Type | Description |
|---|---|---|
context * | string | Build context path or URL |
build_args | Build arguments | |
builder | Builder instance to use | |
cache_from | External cache sources | |
cache_to | Cache export destinations | |
dockerfile | Path to the Dockerfile | |
load | boolean | Load the result into the local image store |
no_cache | boolean | Do not use cache |
platform | Target platforms | |
push | boolean | Push the result to the registry |
tags | Image tags | |
target | Target build stage | |
timeout_seconds | integer | Maximum build time in seconds (1-3600) |
docker_buildx_prune
Prune the Docker Buildx build cache
| Parameter | Type | Description |
|---|---|---|
all | boolean | Include internal/frontend images |
builder | Builder instance to prune |
docker_system_df
Show Docker disk usage, including reclaimable space
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Include detailed per-object usage |
docker_container_prune
Prune stopped Docker containers
docker_image_prune
Prune unused Docker images
docker_volume_prune
Prune unused Docker volumes
docker_system_prune
Prune unused Docker containers, networks, images and build cache
| Parameter | Type | Description |
|---|---|---|
all | boolean | Remove all unused images and build cache, not just dangling ones |
volumes | boolean | Also prune anonymous volumes |
docker_events_list
List recent Docker events for a bounded window, newest first
| Parameter | Type | Description |
|---|---|---|
filters | Filter events | |
limit | integer | Maximum number of events to return (1-1000) |
window_seconds | integer | How far back to look, in seconds (1-86400) |
docker_list_networks
List Docker networks
| Parameter | Type | Description |
|---|---|---|
filters | Filter networks |
docker_create_network
Create a Docker network
| Parameter | Type | Description |
|---|---|---|
name * | string | Network name |
driver | Network driver | |
internal | boolean | Create an internal network |
labels | Network labels |
docker_remove_network
Remove a Docker network
| Parameter | Type | Description |
|---|---|---|
network_id * | string | Network ID or name |
docker_network_inspect
Inspect a Docker network with environment values redacted
| Parameter | Type | Description |
|---|---|---|
network_id * | string | Network ID or name |
docker_list_volumes
List Docker volumes
| Parameter | Type | Description |
|---|---|---|
format | string | Output verbosity. `summary` returns a compact `docker ps`-style row (no health-check logs, labels or image digests); `full` returns the inspect-level object. Defaults to `summary` for listings. |
docker_create_volume
Create a Docker volume
| Parameter | Type | Description |
|---|---|---|
name * | string | Volume name |
driver | Volume driver | |
labels | Volume labels |
docker_remove_volume
Remove a Docker volume
| Parameter | Type | Description |
|---|---|---|
volume_name * | string | Volume name |
force | boolean | Force remove the volume |
docker_volume_inspect
Inspect a Docker volume with environment values redacted
| Parameter | Type | Description |
|---|---|---|
volume_name * | string | Volume name |
docker_version
Show the Docker server version
docker_system_info
Show curated Docker host and storage-driver diagnostics
docker_status
Check Docker daemon reachability and report the MCP server, engine and API versions