Docker MCP Guardian
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GUARDIAN_LOG_LEVEL | No | Log level (logs go to stderr only) | INFO |
| GUARDIAN_ALLOW_WRITE | No | Must be true for safe_restart_container to do anything | false |
| GUARDIAN_ANOMALY_REGEX | No | Pattern the log scanner flags | |
| GUARDIAN_DOCKER_TIMEOUT | No | Seconds per Docker API call | 5 |
| GUARDIAN_RESTART_DENY_REGEX | No | Containers that can never be restarted (always wins) | ^(prod|db|kube|vault)-.* |
| GUARDIAN_RESTART_ALLOW_REGEX | No | If set, only matching containers can be restarted |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_containersA | List containers (running only unless all=true). Read-only. |
| inspect_containerA | Inspect a container's state, config, and networking. Read-only; env values are redacted. |
| get_container_logsB | Fetch the last |
| container_statsA | One sample of CPU, memory, network, block I/O and PIDs, like |
| container_healthB | A container's health-check status, failing streak and last 5 probe results (output truncated). Read-only. |
| list_imagesA | List local images with tags, size and creation time (up to 500). Read-only. |
| list_compose_projectsB | Containers grouped by Docker Compose project and service, with status counts. Read-only. |
| container_eventsA | Recent container events (start, die, oom, health_status, restart...), newest first, max 200. Read-only. since_minutes is clamped to 1-1440. Exec events report the action only, never the command. |
| safe_restart_containerA | Restart a container only if write mode is enabled and its name passes the deny/allow guard. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Each tool maps to a clearly different observation target: logs, events, health probes, stats sample, inspect state, listings, and the single write action. The only mild overlap is inspect_container versus container_health/container_stats, since inspect also surfaces state and networking, but the descriptions make the boundary (health-check history vs. single resource sample vs. full config) reasonably clear.
Half the set follows verb_noun (safe_restart_container, get_container_logs, inspect_container, list_*), but container_events, container_health and container_stats are bare noun-first names with no verb, and safe_restart_container adds an unusual qualifier prefix. Still readable, but the pattern is mixed rather than predictable.
Nine tools is a well-scoped surface for a guarded Docker monitoring server, and each tool earns its place by covering a distinct observability angle plus one explicitly gated mutation. No tool feels redundant or tacked on.
The read-only diagnostics side (logs, events, health, stats, inspect, listings) is comprehensive, but the write surface is essentially a single restart operation, so an agent cannot stop, start, remove, create, or exec into containers, nor manage images or compose lifecycle. These are notable gaps for a Docker control domain, though the 'guardian' framing suggests a deliberately narrow mutation surface.