Docker MCP Server
A comprehensive Model Context Protocol (MCP) server that provides advanced Docker operations through a unified interface, combining 16 powerful Docker MCP tools with 25+ convenient CLI aliases for complete Docker workflow management.
Get this MCP server
A comprehensive Model Context Protocol (MCP) server that provides advanced Docker operations through a unified interface, combining 16 powerful Docker MCP tools with 25+ convenient CLI aliases for complete Docker workflow management.
Installation
NPM Global
npm install -g @0xshariq/docker-mcp-server
PNPM Global
pnpm add -g @0xshariq/docker-mcp-server
From Source
git clone https://github.com/0xshariq/docker-mcp-server.git
cd docker-mcp-server
npm install
npm run build
npm link
Configuration
Claude Desktop
{
"mcpServers": {
"docker": {
"command": "node",
"args": ["/path/to/docker-mcp-server/dist/index.js"]
}
}
}
Features
- 16 powerful Docker MCP tools with 25+ CLI aliases
- Complete container lifecycle management from build to publish
- Multi-container Docker Compose integration with service orchestration
- Secure registry operations for Docker Hub, AWS ECR, Azure ACR, Google GCR
- Advanced network and volume management
- Intelligent system cleanup with multiple security levels
- Cross-platform support for Linux, macOS, and Windows
- Security-first design with Docker-managed password operations
- Zero password disclosure in command history or process lists
- Token-based authentication support for CI/CD pipelines
Usage Examples
List all running containers
List Docker images
Run an interactive Ubuntu container
Start Docker Compose services
Login to Docker registries
Notes
Requires Node.js 18+ and Docker installed. The server provides both MCP protocol integration for compatible tools and standalone CLI commands. A universal launcher script is available for automatic setup with any MCP client. Compatible with Claude Desktop, Cursor IDE, Continue (VS Code), Open WebUI, and others.
