Docker MCP Server logo

Docker MCP Server

by nideil

The Docker MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with Docker Desktop on Windows. It enables advanced automation and interaction capabilities for developers and tools.

View on GitHub

Last updated: N/A

What is Docker MCP Server?

The Docker MCP Server is a server implementing the Model Context Protocol (MCP) to interact with Docker Desktop on Windows. It allows tools and applications to manage and automate Docker containers, networks, and images programmatically.

How to use Docker MCP Server?

  1. Install Docker Desktop for Windows and enable exposing the daemon on tcp://localhost:2375 without TLS. 2. Use a client like Claude Desktop, configured with the provided JSON snippet, to interact with the server. 3. Utilize the exposed methods for container, network, and image management as documented in the 'Tools' section.

Key features of Docker MCP Server

  • Container Lifecycle Management

  • Network Management

  • Image Management

  • Logs Management

  • MCP Protocol Support

Use cases of Docker MCP Server

  • Automated container deployment

  • Programmatic Docker management

  • Integration with development tools

  • Continuous Integration/Continuous Deployment (CI/CD) pipelines

  • Remote Docker control

FAQ from Docker MCP Server

How do I install the project?

Follow the steps in the Installation section. Make sure you have the required dependencies.

What is MCP?

MCP stands for Model Context Protocol. Please refer to https://modelcontextprotocol.io/introduction for more information.

Why do I need to expose the Docker daemon?

Exposing the Docker daemon on tcp://localhost:2375 without TLS is required for the MCP server to communicate with Docker Desktop.

How can I verify the port is exposed successfully?

Open http://localhost:2375/version in your browser. If the setup is correct, you should see a JSON response with Docker version information.

I'm having trouble connecting to the Docker daemon. What should I do?

Check the discussion at WSL and Docker for Windows: Cannot connect to the Docker daemon for a possible solution.