docker

v1.0.1
io.github.ofershap/docker Checked 1 hour ago Published 8 months ago

MCP 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.

ParameterTypeDescription
allbooleanInclude stopped containers

container_logs

Get logs from a Docker container.

ParameterTypeDescription
id *stringContainer ID or name
tailnumberNumber of lines from the end

start_container

Start a stopped Docker container.

ParameterTypeDescription
id *stringContainer ID or name

stop_container

Stop a running Docker container.

ParameterTypeDescription
id *stringContainer ID or name

restart_container

Restart a Docker container.

ParameterTypeDescription
id *stringContainer ID or name

remove_container

Remove a Docker container. Use force=true to remove running containers.

ParameterTypeDescription
id *stringContainer ID or name
forcebooleanForce remove running container

exec_command

Execute a command inside a running Docker container.

ParameterTypeDescription
command *arrayCommand and arguments, e.g. ['ls', '-la']
id *stringContainer ID or name

container_stats

Get CPU, memory, and network stats for a running Docker container.

ParameterTypeDescription
id *stringContainer ID or name

list_images

List Docker images on the host.

remove_image

Remove a Docker image. Use force=true to force removal.

ParameterTypeDescription
id *stringImage ID or tag
forcebooleanForce remove