mcpserver.lol
registry/docker-mcp-server
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 tools

Read 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.,…
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…
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…
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…
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_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…
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…
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…
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…
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…
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…
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…
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_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…
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…
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.…
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…
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…
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…
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…
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_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…
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…
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.
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…
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,…
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)…
update_container from source
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…
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…
watch_events from source
watch_health from source
Poll a container health status until it becomes healthy or times out. Use check_health for a single probe; use watch_health to wait for readiness. The interval parameter controls p…