Docker MCP Server
Der Docker MCP Server implementiert das Model Context Protocol (MCP) und ermöglicht es KI-Assistenten (z.B. GitHub Copilot, Claude), Docker-Operationen direkt auszuführen.
Installation
Der Docker MCP Server ist als Docker Extension verfügbar:
docker extension install docker/labs-ai-tools-for-devs
Alternativ als MCP-Server-Konfiguration für VS Code / Claude Desktop:
{
"mcpServers": {
"docker": {
"command": "docker",
"args": ["run", "--rm", "-i",
"-v", "/var/run/docker.sock:/var/run/docker.sock",
"docker/mcp-docker"
]
}
}
}
Funktionen
Der Docker MCP Server stellt folgende Werkzeuge bereit:
- Container starten, stoppen, auflisten
- Images bauen und pushen
- Logs abrufen
docker composeausführen- Docker Scout CVE-Analysen
Sicherheitshinweis
Der MCP Server benötigt Zugriff auf /var/run/docker.sock. Dies entspricht Root-Zugriff auf den Host. Nur in vertrauenswürdigen Umgebungen verwenden.
Weitere Informationen
- https://github.com/docker/mcp-docker
- https://modelcontextprotocol.io/