Docker MCP Guardian

Official registry Cloud and DevOps

Read-only-by-default Docker MCP server: inspect, logs and gated restarts with secret redaction.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

PYPI package docker-mcp-guardian
Claude Code
claude mcp add docker-mcp-guardian -e 'DOCKER_HOST=<DOCKER_HOST>' -e 'GUARDIAN_ALLOW_WRITE=false' -- uvx docker-mcp-guardian==0.3.0
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "docker-mcp-guardian": {
            "command": "uvx",
            "args": [
                "docker-mcp-guardian==0.3.0"
            ],
            "env": {
                "DOCKER_HOST": "<DOCKER_HOST>",
                "GUARDIAN_ALLOW_WRITE": "false"
            }
        }
    }
}

Environment variables

  • DOCKER_HOST Docker socket, e.g. unix:///run/user/1000/docker.sock (rootless) or unix:///Users/you/.docker/run/docker.sock (Docker Desktop)
  • GUARDIAN_ALLOW_WRITE Set to true to enable safe_restart_container (read-only by default)
OCI package ghcr.io/sivasaikrishnasuryadevara/docker-mcp-guardian:0.3.0
Claude Code
claude mcp add docker-mcp-guardian -e 'DOCKER_HOST=unix:///var/run/docker.sock' -e 'GUARDIAN_ALLOW_WRITE=false' -e 'GUARDIAN_DOCKER_TIMEOUT=5' -- docker run -i --rm ghcr.io/sivasaikrishnasuryadevara/docker-mcp-guardian:0.3.0
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "docker-mcp-guardian": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "ghcr.io/sivasaikrishnasuryadevara/docker-mcp-guardian:0.3.0"
            ],
            "env": {
                "DOCKER_HOST": "unix:///var/run/docker.sock",
                "GUARDIAN_ALLOW_WRITE": "false",
                "GUARDIAN_DOCKER_TIMEOUT": "5"
            }
        }
    }
}

Environment variables

  • DOCKER_HOST Docker endpoint inside the container
  • GUARDIAN_ALLOW_WRITE Set to true to enable safe_restart_container (read-only by default)
  • GUARDIAN_DOCKER_TIMEOUT Seconds before any Docker API call times out

Frequently asked questions

What is Docker MCP Guardian?

Read-only-by-default Docker MCP server: inspect, logs and gated restarts with secret redaction.

How do I install Docker MCP Guardian?

It runs on your machine. In Claude Code: claude mcp add docker-mcp-guardian -e 'DOCKER_HOST=<DOCKER_HOST>' -e 'GUARDIAN_ALLOW_WRITE=false' -- uvx docker-mcp-guardian==0.3.0. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Docker MCP Guardian need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is Docker MCP Guardian open source?

Its code is public on GitHub, but the repository does not declare a standard license.

Who maintains Docker MCP Guardian?

It is published by SivaSaiKrishnaSuryadevara. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.