Connection check
local install
docker-mcp-server
MCP server for Docker — containers, health checks, Compose, logs, monitoring for AI agents
Tools
52
GitHub stars
5
Installs / wk
91
Licence
MIT
Transport
stdio
Last checked
never
Tools & capabilities
52 toolsRead from the published package source — this server runs locally, so there is no endpoint to query. Names are taken from the code, not observed at runtime, and descriptions are often absent.
build_image
from source
Build a Docker image from a Dockerfile or build context directory. The path should contain a Dockerfile or point to a directory with one. Use tag to name the resulting image (e.g.,… Build a Docker image from a Dockerfile or build context directory. The path should contain a Dockerfile or point to a directory with one. Use tag to name the resulting image (e.g., myapp:latest). Returns build output log. Use list_images to verify the build succeeded. Returns an error string if the Dockerfile is missing or the build fails.
check_health
from source
Run a health probe against a container by ID or name. Supports HTTP (checks status code), TCP (checks port open), and exec (runs command inside container). Auto-detects probe type… Run a health probe against a container by ID or name. Supports HTTP (checks status code), TCP (checks port open), and exec (runs command inside container). Auto-detects probe type from the container
compose_down
from source
compose_logs
from source
compose_ps
from source
compose_restart
from source
Restart Docker Compose services defined by docker-compose.yml at path. Restart specific services or the entire stack. Unlike stop+start, this preserves container configuration. The… Restart Docker Compose services defined by docker-compose.yml at path. Restart specific services or the entire stack. Unlike stop+start, this preserves container configuration. The timeout parameter controls how long to wait before force-killing (default 10s). Returns a confirmation string. Use compose_ps to verify state after restart. Returns an error string if the Compose file is missing.
compose_up
from source
container_health_status
from source
container_resource_usage
from source
container_stats
from source
Get real-time resource usage statistics for a Docker container by ID or name. Use container_stats for one container; use container_resource_usage (monitoring tools) for fleet-wide… Get real-time resource usage statistics for a Docker container by ID or name. Use container_stats for one container; use container_resource_usage (monitoring tools) for fleet-wide stats. Returns JSON with CPU percent, memory usage/limit/percent, network I/O bytes, and block I/O bytes. Read-only and safe to call repeatedly. Returns an error string if the container does not exist or is not running.
copy_from_container
from source
Copy a file from a Docker container to read its contents. Returns the file content as text along with metadata (size, permissions). Useful for inspecting config files, logs, or app… Copy a file from a Docker container to read its contents. Returns the file content as text along with metadata (size, permissions). Useful for inspecting config files, logs, or application state inside running containers.
copy_to_container
from source
Write file content into a Docker container at the specified path. Overwrites existing files. Useful for injecting configuration files, scripts, or environment files into running or… Write file content into a Docker container at the specified path. Overwrites existing files. Useful for injecting configuration files, scripts, or environment files into running or stopped containers.
create_container
from source
create_volume
from source
Create a Docker volume with optional driver, labels, and options. Returns volume name, driver, and mount point. Use inspect_volume to verify creation; use list_volumes to see all v… Create a Docker volume with optional driver, labels, and options. Returns volume name, driver, and mount point. Use inspect_volume to verify creation; use list_volumes to see all volumes. Returns an error string if the volume name is already in use.
disk_usage
from source
Get Docker disk usage breakdown: space used by images, containers, volumes, and build cache. Shows total and per-item sizes with reclaimable space. Use docker_info for daemon metad… Get Docker disk usage breakdown: space used by images, containers, volumes, and build cache. Shows total and per-item sizes with reclaimable space. Use docker_info for daemon metadata; use list_images/list_containers for item details. Read-only and safe to call repeatedly.
docker_info
from source
Get Docker daemon system information: server version, OS, kernel, CPU count, memory total, storage driver, and runtime. Returns a JSON object with all daemon metadata. Use disk_usa… Get Docker daemon system information: server version, OS, kernel, CPU count, memory total, storage driver, and runtime. Returns a JSON object with all daemon metadata. Use disk_usage for space breakdown. Read-only and safe to call repeatedly.
exec_in_container
from source
Execute a command inside a running Docker container by ID or name. Returns stdout, stderr, and exit code as JSON. Use start_container to ensure the container is running first. The… Execute a command inside a running Docker container by ID or name. Returns stdout, stderr, and exit code as JSON. Use start_container to ensure the container is running first. The command is executed as the container
fleet_status
from source
inspect_container
from source
inspect_context
from source
Get detailed configuration for a Docker context including endpoint type (unix, tcp, ssh), host address, default orchestrator, and any TLS settings. Use this to verify context confi… Get detailed configuration for a Docker context including endpoint type (unix, tcp, ssh), host address, default orchestrator, and any TLS settings. Use this to verify context configuration before switching or to troubleshoot connection issues.
inspect_volume
from source
Inspect a Docker volume by name. Returns detailed info including name, driver, mountpoint, labels, scope, and options. Use list_volumes to find volume names; use remove_volume to d… Inspect a Docker volume by name. Returns detailed info including name, driver, mountpoint, labels, scope, and options. Use list_volumes to find volume names; use remove_volume to delete. Returns an error string if the volume does not exist.
list_containers
from source
list_contexts
from source
List all Docker contexts on the host. Docker contexts allow switching between multiple Docker daemon endpoints (local, remote via SSH, remote via TCP, cloud providers). Each contex… List all Docker contexts on the host. Docker contexts allow switching between multiple Docker daemon endpoints (local, remote via SSH, remote via TCP, cloud providers). Each context has a name, description, and endpoint configuration. Use use_context to switch the active context.
list_images
from source
list_networks
from source
list_volumes
from source
monitor_dashboard
from source
prune_containers
from source
Remove all stopped Docker containers. Returns the number of containers removed and reclaimed disk space. This is a destructive operation — stopped containers and their non-persiste… Remove all stopped Docker containers. Returns the number of containers removed and reclaimed disk space. This is a destructive operation — stopped containers and their non-persisted data will be deleted. Use list_containers first to see what will be removed. Useful for cleanup after deployments or when disk space is low.
prune_images
from source
Remove unused Docker images (dangling and unreferenced). Returns the number of images deleted and reclaimed disk space. Only removes images not used by any container. Use list_imag… Remove unused Docker images (dangling and unreferenced). Returns the number of images deleted and reclaimed disk space. Only removes images not used by any container. Use list_images first to see what will be removed. Useful for reclaiming disk space after builds or when switching base images frequently.
prune_volumes
from source
Remove all unused Docker volumes (not mounted by any container). Returns the number of volumes removed and reclaimed disk space. Use list_volumes to see what exists before pruning.… Remove all unused Docker volumes (not mounted by any container). Returns the number of volumes removed and reclaimed disk space. Use list_volumes to see what exists before pruning. Safe to call repeatedly — no-op when no unused volumes exist.
pull_image
from source
recreate_container
from source
Recreate a Docker container with the same configuration (stop, remove, re-create). Useful for applying config changes without手动编写 run commands. Preserves image, env, ports, volumes… Recreate a Docker container with the same configuration (stop, remove, re-create). Useful for applying config changes without手动编写 run commands. Preserves image, env, ports, volumes, and labels from the original. Returns a confirmation string with the new container ID. Returns an error string if the original container does not exist.
registry_login
from source
Authenticate with a Docker registry (Docker Hub, ECR, ACR, GCR, or private). Stores credentials in Docker config for subsequent push/pull operations. Use registry_search to find im… Authenticate with a Docker registry (Docker Hub, ECR, ACR, GCR, or private). Stores credentials in Docker config for subsequent push/pull operations. Use registry_search to find images before pushing. Returns login confirmation with the registry server address.
registry_push
from source
Push a local Docker image to a registry. The image must be tagged with the registry address first (e.g., myregistry.com/myimage:tag). Use registry_login to authenticate before push… Push a local Docker image to a registry. The image must be tagged with the registry address first (e.g., myregistry.com/myimage:tag). Use registry_login to authenticate before pushing. Use build_image to create the image, then tag it with docker CLI or the Docker API before pushing.
registry_search
from source
Search Docker Hub for available images by keyword. Returns image names, short descriptions, star counts, and official/premium status. Useful for discovering base images or checking… Search Docker Hub for available images by keyword. Returns image names, short descriptions, star counts, and official/premium status. Useful for discovering base images or checking if an image exists before pulling.
remove_container
from source
remove_image
from source
Remove a Docker image by name or ID. Use force=true to remove even if tagged or referenced by stopped containers. Use list_images to find image IDs; use prune_images to remove all… Remove a Docker image by name or ID. Use force=true to remove even if tagged or referenced by stopped containers. Use list_images to find image IDs; use prune_images to remove all unused images. Returns a confirmation string. Returns an error string if the image does not exist or is in use without force.
remove_volume
from source
Remove a Docker volume by name. Requires the volume to be unused unless force=true is set (which removes even if mounted). Use prune_volumes to remove all unused volumes at once. R… Remove a Docker volume by name. Requires the volume to be unused unless force=true is set (which removes even if mounted). Use prune_volumes to remove all unused volumes at once. Returns a confirmation string. Returns an error string if the volume does not exist.
resource_alert_check
from source
Check all running Docker containers against configurable CPU%, memory%, and restart count thresholds. Returns containers that violate thresholds with specific metrics that triggere… Check all running Docker containers against configurable CPU%, memory%, and restart count thresholds. Returns containers that violate thresholds with specific metrics that triggered alerts. Use container_resource_usage for raw metrics; use this tool for automated alerting. Default thresholds: 80% CPU, 80% memory, 5 restarts. Returns { violations: [...], checked: N } or { message:
restart_container
from source
run_container
from source
Create and start a new Docker container with one command. Supports image, env, ports, volumes, restart policy, and command override. Auto-pulls missing images. Create and start a new Docker container with one command. Supports image, env, ports, volumes, restart policy, and command override. Auto-pulls missing images.
scan_image
from source
Scan a Docker image for known vulnerabilities using Trivy. Runs Trivy inside a temporary container to scan the specified image. Returns a summary of critical/high/medium/low vulner… Scan a Docker image for known vulnerabilities using Trivy. Runs Trivy inside a temporary container to scan the specified image. Returns a summary of critical/high/medium/low vulnerabilities with package names and fix availability. Requires Trivy to be available on the Docker host or uses the aquasec/trivy image automatically.
search_logs
from source
set_restart_policy
from source
Change the restart policy of a running container without recreating it. Use restart_container for an immediate restart; use this tool to change the policy (always, unless-stopped,… Change the restart policy of a running container without recreating it. Use restart_container for an immediate restart; use this tool to change the policy (always, unless-stopped, on-failure, no) for future restarts. Returns a confirmation string on success. Idempotent: setting the same policy is a no-op. Returns an error string if the container does not exist.
start_container
from source
stop_container
from source
stream_logs
from source
Get logs from a single Docker container by ID or name. Use stream_logs for one container; use compose_logs for multi-service Compose stacks. Supports tail count (default 100 lines)… Get logs from a single Docker container by ID or name. Use stream_logs for one container; use compose_logs for multi-service Compose stacks. Supports tail count (default 100 lines), since timestamp for filtering, and follow mode. Returns UTF-8 log text with multiplexed stream headers stripped, or
update_container
from source
Update a Docker container Update a Docker container
use_context
from source
Switch the active Docker context to a different endpoint. This changes which Docker daemon subsequent commands target (local, remote SSH, remote TCP, or cloud). Use list_contexts t… Switch the active Docker context to a different endpoint. This changes which Docker daemon subsequent commands target (local, remote SSH, remote TCP, or cloud). Use list_contexts to see available contexts. Changing context affects all subsequent Docker operations in this session.
vulnerability_report
from source
Generate a detailed vulnerability report for a Docker image, including all severities. Returns a structured report with remediation recommendations (which packages to upgrade). Mor… Generate a detailed vulnerability report for a Docker image, including all severities. Returns a structured report with remediation recommendations (which packages to upgrade). More detailed than scan_image — includes full descriptions and fix versions for all vulnerabilities.
watch_events
from source
watch_health
from source