Back to Home
Carl-312 icon

Docker-MCP-Server

Verified Safe

by Carl-312

Overview

Allows AI assistants to securely query Docker container and image information on cloud servers via Model Context Protocol (MCP).

Installation

Run Command
npx docker-mcp-secure

Environment 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

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens2000
Stars0
Forks0
Last Update2025-12-07

Tags

DockerContainer ManagementMCPAI Agent ToolCloud DevOps