Docker-MCP-Server
Verified Safeby Carl-312
Overview
Allows AI assistants to securely query Docker container and image information on cloud servers via Model Context Protocol (MCP).
Installation
npx docker-mcp-secureEnvironment Variables
- DOCKER_HOST
- SECURITY_MODE
- SECURITY_AUDIT_LOG
- LOG_LEVEL
- ALLOW_LOCAL_DOCKER
- API_KEY
Security Notes
The server is designed with a strong 'read-only' principle, explicitly whitelisting safe Docker API endpoints and tools. It includes robust parameter validation to prevent command injection and path traversal. Sensitive data is sanitized in audit logs. Direct Docker socket access is blocked by default, requiring explicit `ALLOW_LOCAL_DOCKER=true` for local development. Comprehensive audit logging is implemented for all tool calls and security events. The biggest remaining critical risk is improper external firewall/security group configuration of the Docker TCP port (2375) on the cloud server, which the README explicitly warns against and is outside the server's direct control.
Similar Servers
toolhive-studio
ToolHive is a desktop application (Electron UI) for discovering, deploying, and managing Model Context Protocol (MCP) servers in isolated containers, and connecting them to AI agents and clients.
gh-mcp
A GitHub CLI extension to seamlessly run the github-mcp-server in a Docker container using existing `gh` authentication.
suse-ai-up
A comprehensive, modular Model Context Protocol (MCP) proxy system that enables secure, scalable, and extensible AI model integrations.
docker-mcp-server
A Model Context Protocol (MCP) server for containerized execution and file operations, enabling AI assistants to interact with a Docker environment via HTTP.