A comprehensive Model Context Protocol (MCP) server that provides advanced Docker operations through a unified interface. This server combines 16 powerful Docker MCP tools with 25+ convenient CLI aliases to create a complete Docker workflow solution for developers, DevOps engineers, and system administrators.
A comprehensive Model Context Protocol (MCP) server that provides advanced Docker operations through a unified interface. This server combines 16 powerful Docker MCP tools with 25+ convenient CLI aliases to create a complete Docker workflow solution for developers, DevOps engineers, and system administrators.
🌟 What Makes Docker MCP Server Special
Docker MCP Server is not just another Docker wrapper - it's a complete Docker workflow enhancement system designed to make Docker operations more intuitive, secure, and efficient:
🎯 Unified Interface
MCP Protocol Integration: Seamlessly works with MCP-compatible tools and IDEs
CLI Convenience: 25+ carefully crafted aliases for common Docker workflows
Consistent API: All operations follow the same patterns and conventions
Cross-Platform: Full support for Linux, macOS, and Windows environments
🔒 Security-First Design
Docker-Managed Security: All password operations handled by Docker daemon for maximum security
Zero Password Exposure: Passwords never appear in command history, process lists, or arguments
Token Authentication Support: Full support for Personal Access Tokens and service accounts
Registry Flexibility: Secure login to Docker Hub, AWS ECR, Azure ACR, Google GCR, and custom registries
CI/CD Security: Secure stdin password input for automated deployment pipelines
Permission Management: Proper handling of Docker daemon permissions and credential storage
🚀 Developer Experience
Comprehensive Help System: Every command includes detailed documentation with --help
Smart Defaults: Sensible default configurations for common use cases
Error Prevention: Built-in safety checks and confirmation prompts for destructive operations
Rich Output: Formatted, colored output with clear status indicators
📊 Advanced Operations
Complete Container Lifecycle: From build to publish with comprehensive registry support
Multi-Container Management: Docker Compose integration with service orchestration
Registry Publishing: Advanced image publishing with multi-platform support and automated workflows
Network & Volume Management: Advanced networking and storage operations
System Maintenance: Intelligent cleanup tools with multiple safety levels
Development Workflows: Specialized commands for development environments
📦 Installation
Quick Setup for MCP Clients
Add this configuration to your MCP client settings:
Other MCP Clients: Check your client's configuration documentation
Simple Installation (Recommended)
Install Docker MCP Server globally to use it anywhere on your system:
# Install with npm
npm install -g @0xshariq/docker-mcp-server
# Or install with pnpm (faster)
pnpm add -g @0xshariq/docker-mcp-server
# Verify installation works
docker-mcp-server --version
dlist # List all available commands
That's it! All 25 CLI aliases are now available system-wide.
For Developers
If you want to contribute or customize the server:
# Clone and setup
git clone https://github.com/0xshariq/docker-mcp-server.git
cd docker-mcp-server
npm install
npm run build
# Test locally
npm link # Makes commands available globally
dlist # Verify it works
📖 See detailed documentation: Use dlist command or check the README files linked above.
🔧 Development
For Contributors
# Setup development environment
git clone https://github.com/0xshariq/docker-mcp-server.git
cd docker-mcp-server
npm install
# Development commands
npm run dev # Build and watch for changes
npm run build # Build TypeScript
npm run start # Start MCP server
npm run clean # Clean build files
🧪 Testing
Quick Test
# After installation, test these commands
dlist # Should show all 25 commands
dps # Should list containers
dimages # Should list images
Test MCP Integration
./start-mcp.sh # Should start without errors
🆘 Common Issues
"Command not found"
# Make sure npm global bin is in your PATH
echo $PATH | grep $(npm config get prefix)
# If not found, add this to ~/.bashrc or ~/.zshrc:
export PATH="$(npm config get prefix)/bin:$PATH"
"Docker daemon not running"
# Check Docker status
docker info
# Start Docker (Linux)
sudo systemctl start docker
# Start Docker Desktop (macOS/Windows)
# Launch the Docker Desktop app
"Permission denied"
# Add yourself to docker group (Linux)
sudo usermod -aG docker $USER
# Then logout and login again
✨ Docker MCP Server - Making Docker workflows simple and powerful for everyone!
D
Docker
0xshariq·15 顆星·
A comprehensive Model Context Protocol (MCP) server that provides advanced Docker operations through a unified interface. This server combines 16 powerful Docker MCP tools with 25+ convenient CLI alia
A comprehensive Model Context Protocol (MCP) server that provides advanced Docker operations through a unified interface. This server combines 16 powerful Docker MCP tools with 25+ convenient CLI aliases to create a complete Docker workflow solution for developers, DevOps engineers, and system administrators.
上次檢查時間:2026-10-26。 A comprehensive Model Context Protocol (MCP) server that provides advanced Docker operations through a unified interface. This server combines 16 powerful Docker MCP tools with 25+ convenient CLI aliases to create a complete Docker workflow solution for developers, DevOps engineers, and system administrators.