Purpose: This project is an MCP server that lets AI coding assistants directly manage local Docker. It is suitable for developers who use Docker daily, handing operations such as viewing containers, reading logs, and restarting services to an AI assistant, reducing repeated switching in the terminal.
Main capabilities: list running containers; view logs of a specified container; start, stop, and restart containers; execute commands inside a container (such as running ls -la /app); view a container's CPU and memory usage; list images and their sizes; manage volumes and Compose services. Supports any MCP-compatible client such as Claude Desktop, Cursor, and VS Code Copilot.
Usage: Local Docker must be running, and the server connects via /var/run/docker.sock (Linux/macOS) or a Windows named pipe, with no API key or token required. Integration methods include configuring in .cursor/mcp.json, claude_desktop_config.json, VS Code user settings, or .vscode/mcp.json, with the core command being npx -y mcp-docker-server stdio. This repository is also an Agent Plugins 1.0.0 package, containing plugin.json, a portable mcp.json, and skills; in Cursor, you can clone the repository and copy or symlink it to ~/.cursor/plugins/local/mcp-server-docker, then reload the window, and the plugin and MCP will appear under Customize > Plugins.
Limitations: The Docker daemon must be running and the MCP process must be able to access docker.sock; stopping, deleting, and restarting are destructive operations, and for production workloads you should confirm with the user first; apart from local Docker access, no other authentication or remote management capabilities are currently provided.