Custom Docker Mcp Server — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Custom Docker Mcp Server (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A Model Context Protocol (MCP) server providing Docker management tools for Claude Code.
This MCP server exposes Docker functionality through MCP tools, allowing Claude to interact with Docker containers, images, networks, and volumes.
Tools for Docker operations including:
uv package manager (recommended) or pip# Install dependencies
uv sync
# Or with pip
pip install -e .#### Build and Run with Docker Compose
# Build and start the container
docker-compose up -d
# View logs
docker-compose logs -f
# Stop the container
docker-compose down#### Build and Run with Docker CLI
# Build the image
docker build -t docker-mcp-server .
# Run the container (Linux/macOS)
docker run -it --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
docker-mcp-server
# Run the container (Windows)
docker run -it --rm \
-v //var/run/docker.sock:/var/run/docker.sock \
docker-mcp-serverImportant: The -v flag mounts the Docker socket, allowing the container to manage the host's Docker daemon.
#### Configure with Claude Code (Docker)
# Add the Docker-based server
claude mcp add --transport stdio docker -- docker run -i --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
docker-mcp-serverOr configure in .mcp.json:
{
"mcpServers": {
"docker": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-v", "/var/run/docker.sock:/var/run/docker.sock",
"docker-mcp-server"
]
}
}
}Add the server to your Claude Code configuration:
claude mcp add --transport stdio docker -- python /path/to/custom-docker-mcp-server/server.pyOr configure in .mcp.json:
{
"mcpServers": {
"docker": {
"command": "python",
"args": ["/absolute/path/to/server.py"]
}
}
}Test the server using MCP Inspector:
# With Docker
docker run -i --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
docker-mcp-server | mcp-inspector
# With Python
mcp-inspector -- python server.pylist_containersLists all running Docker containers with detailed information.
Parameters: None
Returns:
Example usage:
User: "Show me all running containers"
Claude: Uses list_containers tool
Result: Displays formatted list of running containerscustom-docker-mcp-server/
├── src/ # Business logic
│ ├── __init__.py # Package initialization
│ └── containers.py # Container operations
├── server.py # Main MCP server implementation
├── pyproject.toml # Project configuration
├── Dockerfile # Docker image definition
├── docker-compose.yml # Docker Compose configuration
├── .dockerignore # Docker build exclusions
├── README.md # This file
└── .gitignore # Git ignore rulesTools are implemented using the FastMCP framework with business logic separated in the src/ directory:
src/ (e.g., src/containers.py)server.py using @mcp.tool() decoratorSee server.py and src/containers.py for examples.
MIT License
Contributions are welcome! Please feel free to submit issues or pull requests.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.