Manage Docker containers, images, networks, and volumes via AI assistants
Docker MCP Server
A comprehensive, production-ready, industry-standard compliant MCP (Model Context Protocol) Server that enables full Docker management capabilities for AI assistants like GitHub Copilot and Claude. Featuring 37 powerful tools covering containers, images, networks, volumes, and system operations.
📋 Table of Contents
- About
- Quick Start
- Features
- Installation
- Usage
- Available Tools
- Testing Your Connection
- Development
- Troubleshooting
- Contributing
- Documentation
- License
About
Docker MCP Server is a Model Context Protocol server that bridges AI assistants with Docker, enabling natural language Docker operations. Built with TypeScript and following industry best practices, it provides a complete Docker management solution for AI-powered development workflows.
Why Docker MCP Server?
- 🤖 AI-Native: Designed specifically for AI assistants (GitHub Copilot, Claude)
- 🔧 Complete Coverage: 37 tools covering all essential Docker operations
- 🌐 Remote Support: Connect to Docker on any host via TCP, HTTPS, or SSH tunnel
- 🔒 Security First: Full TLS/SSL support with certificate authentication
- 📦 Production Ready: Comprehensive error handling, type safety, and testing
- 📚 Well Documented: Extensive documentation with examples for every feature
- 🚀 Easy to Use: Simple installation and configuration
Use Cases
- AI-Assisted DevOps: Let AI assistants manage your Docker infrastructure
- Container Orchestration: Create, manage, and monitor containers through natural language
- Development Automation: Automate Docker workflows with AI assistance
- Remote Management: Securely manage Docker on remote hosts
- Learning & Exploration: Explore Docker capabilities with AI guidance
Quick Start
For npm Users (Recommended)
# Install globally
npm install -g @swartdraak/docker-mcp-server
# Or use with npx (no installation needed)
npx @swartdraak/docker-mcp-server
For Developers
# Clone the repository
git clone https://github.com/Swartdraak/Docker-MCP.git
cd Docker-MCP
# Install dependencies
npm install
# Build the project
npm run build
# Start the server
npm start
✨ Features
Core Capabilities
- ✅ 37 Docker Tools: Complete coverage of Docker operations including connection validation
- ✅ Remote Docker Support: Connect to Docker on remote hosts via TCP, HTTP, HTTPS, or SSH tunnel
- ✅ Secure Connections: Full TLS/SSL support for secure remote Docker management
- ✅ Container Management: Create, run, start, stop, restart, pause, unpause, rename, remove, exec, stats, logs
- ✅ Image Operations: List, pull, build, push, tag, remove, prune
- ✅ Network Management: List, create, remove, inspect, connect, disconnect
- ✅ Volume Management: List, create, remove, inspect, prune
- ✅ System Operations: Info, version, connection validation, prune (containers, images, volumes, networks)
- ✅ Proper Array Handling: Correctly handles command, entrypoint, and environment variables
- ✅ VS Code Integration: Works seamlessly with GitHub Copilot
- ✅ Industry Standard: Uses MCP SDK and Docker best practices
- ✅ TypeScript: Full type safety and modern JavaScript features
Recent Enhancements
- 🌐 Remote Docker Host Support: Connect to Docker on any remote host
- 🔒 TLS/HTTPS Support: Secure connections with certificate authentication
- 🔑 Environment-based Configuration: Easy setup via DOCKER_HOST, DOCKER_TLS_VERIFY, DOCKER_CERT_PATH
- 🚇 SSH Tunnel Support: Secure remote access without exposing Docker API
What's New in v2.0
- 🚀 **25 N
Tools (5)
docker_container_listList all Docker containersdocker_container_runRun a new Docker containerdocker_image_listList all Docker imagesdocker_network_listList all Docker networksdocker_volume_listList all Docker volumesEnvironment Variables
DOCKER_HOSTThe URL of the Docker daemon socketDOCKER_TLS_VERIFYEnable TLS verification for remote Docker connectionsDOCKER_CERT_PATHPath to the directory containing TLS certificatesConfiguration
{"mcpServers": {"docker": {"command": "npx", "args": ["-y", "@swartdraak/docker-mcp-server"]}}}