mcp-server-docker
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.
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/version
in 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
{ "mcpServers": { "docker-mcp-stdio": { "command": "docker", "args": [ "run", "-i", "--rm", "freezeolo/docker-mcp-server" ] } } }
ā Completed š ļø In Progress ā Plan
container_id
: Container ID (string, required)container_id
: Container ID (string, required)container_id
: Container ID (string, required)container_id
: Container ID (string, required)container_id
: Container ID (string, required)imageName
: Image name (string, required)containerName
: Container name (string, required)command
: Command to run (string, optional)env
: Environment variables (string[], optional)ports
: Port bindings (string[], optional)volumes
: Volume bindings (string[], optional)network
: Network name (string, optional)restartPolicy
: Restart policy (string, optional)networkId
: Network ID (string, required)networkName
: Network name (string, required)driver
: Network driver (string, required)subnet
: Subnet CIDR (string, required)gateway
: Gateway IP (string, required)containerId
: Container ID (string, required)networkId
: Network ID (string, required)containerId
: Container ID (string, required)networkId
: Network ID (string, required)networkId
: Network ID (string, required)networkId
: Network ID (string, required)imageName
: Image name with tag (string, required)imageName
: Image name with tag (string, required)imageId
: Image ID (string, required)force
: Force removal (boolean, optional)imageId
: Image ID (string, required)repository
: Repository name (string, required)tags
: Array of tags (string[], required)dockerfilePath
: Path to Dockerfile (string, required)repository
: Repository name (string, required)tags
: Array of tags (string[], required)imageId
: Image ID (string, required)containerId
: Container ID (string, required)follow
: Follow log output (boolean, optional, default: false)stdout
: Show stdout (boolean, optional, default: true)stderr
: Show stderr (boolean, optional, default: true)since
: Show logs since timestamp (string, optional)until
: Show logs until timestamp (string, optional)tail
: Number of lines to show from the end (integer, optional)timestamps
: Show timestamps (boolean, optional, default: false)A: Follow the steps in the Installation section. Make sure you have the required dependencies.
This project is licensed under the terms of the MIT open source license. Please refer to MIT for the full terms.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!