- Docker Mcp Server
Docker MCP Server
The Docker MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with Docker Desktop on Windows, enabling advanced automation and interaction capabilities for developers and tools.
Prerequisites
-
Install Docker Desktop for Windows from Docker's official download page.
-
In Docker Desktop, go to Settings > General and check the box for
"Expose daemon on tcp://localhost:2375 without TLS".
This is required for the MCP server to communicate with Docker Desktop.💡 Tip: You can verify that the port is exposed successfully by opening
http://localhost:2375/versionin your browser. If the setup is correct,
you should see a JSON response with Docker version information. If you're having trouble, check this discussion for a possible solution: WSL and Docker for Windows: Cannot connect to the Docker daemon
Installation
Usage with Claude Desktop
{
"mcpServers": {
"docker-mcp-stdio": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"freezeolo/docker-mcp-server"
]
}
}
}
Tools
✅ Completed 🛠️ In Progress ❌ Plan
Container Lifecycle Management 🛠️
-
list_containers - Get the list of containers ✅
-
get_container_info - Get details of a specific container ✅
container_id: Container ID (string, required)
-
start_container - Start a container ✅
container_id: Container ID (string, required)
-
restart_container - Restart a container ✅
container_id: Container ID (string, required)
-
stop_container - Stop a container ✅
container_id: Container ID (string, required)
-
remove_container - Remove a container ✅
container_id: Container ID (string, required)
-
create_container
-
Batch container operations management
-
Container health status monitoring
Image Management❌
- Image pull, push, build, and removal
- Image version control and tag management
- Custom image registry integration
Network Management❌
- Create and manage Docker networks
- Network connection configuration
- Port mapping management
Volume Management❌
- Create, mount, and remove data volumes
- Data volume permission management
- Data volume backup and recovery
FAQ
Q: How do I install the project?
A: Follow the steps in the Installation section. Make sure you have the required dependencies.
License
This project is licensed under the terms of the MIT open source license. Please refer to MIT for the full terms.
Server Config
{
"mcpServers": {
"docker-mcp-stdio": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"freezeolo/docker-mcp-server"
]
}
}
}