Docker MCP Server

v0.14.0
io.github.dboeckli/mcp-server-docker Checked 16 hours ago Published 4 days ago

Manage 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`)

ParameterTypeDescription
allbooleanShow all containers (default shows just running)
filtersFilter containers
formatstringOutput 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

ParameterTypeDescription
image *stringDocker image name
auto_removebooleanAutomatically remove the container
commandCommand to run in container
detachbooleanRun container in the background
entrypointEntrypoint to run in container
environmentEnvironment variables dictionary
labelsContainer labels
nameContainer name
networkNetwork to attach the container to
portsContainer-to-host port bindings
volumesVolume mappings

docker_run_container

Run an image in a new Docker container (preferred over `docker_create_container` + `docker_start_container`)

ParameterTypeDescription
image *stringDocker image name
auto_removebooleanAutomatically remove the container
commandCommand to run in container
detachbooleanRun container in the background
entrypointEntrypoint to run in container
environmentEnvironment variables dictionary
labelsContainer labels
nameContainer name
networkNetwork to attach the container to
portsContainer-to-host port bindings
volumesVolume 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.

ParameterTypeDescription
auto_removebooleanAutomatically remove the container
commandCommand to run in container
container_id
detachbooleanRun container in the background
entrypointEntrypoint to run in container
environmentEnvironment variables dictionary
image
labelsContainer labels
nameContainer name
networkNetwork to attach the container to
portsContainer-to-host port bindings
preserve_configurationbooleanRebuild from the inspected container configuration (environment, mounts/volume identity, networks, ports, labels, healthcheck, restart policy) and restore the original if replacement creation fails. U…
volumesVolume mappings

docker_start_container

Start a Docker container

ParameterTypeDescription
container_id *stringContainer ID or name

docker_fetch_container_logs

Fetch logs for a Docker container

ParameterTypeDescription
container_id *stringContainer ID or name
tailNumber of lines to show from the end

docker_stop_container

Stop a Docker container

ParameterTypeDescription
container_id *stringContainer ID or name

docker_remove_container

Remove a Docker container

ParameterTypeDescription
container_id *stringContainer ID or name
forcebooleanForce remove the container

docker_container_inspect

Inspect a Docker container with environment values redacted

ParameterTypeDescription
container_id *stringContainer ID or name

docker_container_health

Summarise container health, restart count and exit state without environment values

ParameterTypeDescription
container_id *stringContainer ID or name

docker_container_processes

List the processes running in a Docker container

ParameterTypeDescription
container_id *stringContainer ID or name

docker_container_stats

Show a one-shot CPU, memory, network and block-IO snapshot for a container

ParameterTypeDescription
container_id *stringContainer ID or name

docker_container_exec

Execute a command in a running container (argv, no shell, bounded output)

ParameterTypeDescription
command *arrayCommand and arguments to run
container_id *stringContainer ID or name
envExtra environment variables
timeout_secondsintegerMaximum run time in seconds (1-300)
workdirWorking directory inside the container

docker_list_images

List Docker images

ParameterTypeDescription
allbooleanShow all images (default hides intermediate)
filtersFilter images
formatstringOutput 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.
nameFilter images by repository name

docker_pull_image

Pull a Docker image

ParameterTypeDescription
repository *stringImage repository
tagImage tag
timeout_secondsintegerMaximum pull time in seconds (1-3600)

docker_push_image

Push a Docker image

ParameterTypeDescription
repository *stringImage repository
tagImage tag

docker_build_image

Build a Docker image from a Dockerfile

ParameterTypeDescription
path *stringPath to build context
tag *stringImage tag
build_argsBuild arguments
dockerfilePath to Dockerfile
no_cachebooleanDo not use cache
platformTarget platform
timeout_secondsintegerMaximum build time in seconds (1-3600)

docker_remove_image

Remove a Docker image

ParameterTypeDescription
image *stringImage ID or name
forcebooleanForce remove the image

docker_image_inspect

Inspect a Docker image with environment values redacted

ParameterTypeDescription
image *stringImage ID or name

docker_image_history

Show the layer history of a Docker image

ParameterTypeDescription
image *stringImage ID or name

docker_buildx_list

List Docker Buildx builder instances

docker_buildx_du

Show Docker Buildx cache usage per builder

ParameterTypeDescription
builderBuilder instance to query
verbosebooleanInclude individual cache records

docker_buildx_inspect

Inspect a Docker Buildx builder instance

ParameterTypeDescription
builderBuilder instance to inspect

docker_buildx_history

List Docker Buildx build records

ParameterTypeDescription
builderBuilder instance to query

docker_buildx_logs

Show the logs of a Docker Buildx build record

ParameterTypeDescription
ref *stringBuild record reference or build ID
builderBuilder instance to query
progressstringProgress output type

docker_buildx_build

Build an image with Docker Buildx

ParameterTypeDescription
context *stringBuild context path or URL
build_argsBuild arguments
builderBuilder instance to use
cache_fromExternal cache sources
cache_toCache export destinations
dockerfilePath to the Dockerfile
loadbooleanLoad the result into the local image store
no_cachebooleanDo not use cache
platformTarget platforms
pushbooleanPush the result to the registry
tagsImage tags
targetTarget build stage
timeout_secondsintegerMaximum build time in seconds (1-3600)

docker_buildx_prune

Prune the Docker Buildx build cache

ParameterTypeDescription
allbooleanInclude internal/frontend images
builderBuilder instance to prune

docker_system_df

Show Docker disk usage, including reclaimable space

ParameterTypeDescription
verbosebooleanInclude 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

ParameterTypeDescription
allbooleanRemove all unused images and build cache, not just dangling ones
volumesbooleanAlso prune anonymous volumes

docker_events_list

List recent Docker events for a bounded window, newest first

ParameterTypeDescription
filtersFilter events
limitintegerMaximum number of events to return (1-1000)
window_secondsintegerHow far back to look, in seconds (1-86400)

docker_list_networks

List Docker networks

ParameterTypeDescription
filtersFilter networks

docker_create_network

Create a Docker network

ParameterTypeDescription
name *stringNetwork name
driverNetwork driver
internalbooleanCreate an internal network
labelsNetwork labels

docker_remove_network

Remove a Docker network

ParameterTypeDescription
network_id *stringNetwork ID or name

docker_network_inspect

Inspect a Docker network with environment values redacted

ParameterTypeDescription
network_id *stringNetwork ID or name

docker_list_volumes

List Docker volumes

ParameterTypeDescription
formatstringOutput 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

ParameterTypeDescription
name *stringVolume name
driverVolume driver
labelsVolume labels

docker_remove_volume

Remove a Docker volume

ParameterTypeDescription
volume_name *stringVolume name
forcebooleanForce remove the volume

docker_volume_inspect

Inspect a Docker volume with environment values redacted

ParameterTypeDescription
volume_name *stringVolume 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