DEV Community

curatedmcp for CuratedMCP

Posted on Originally published at curatedmcp.com

Docker MCP: Control Your Docker Daemon Through Natural Language

Install guide and config at curatedmcp.com

Docker MCP: Control Your Docker Daemon Through Natural Language

Managing Docker containers usually means context-switching to the terminal. Docker MCP flips that: now your AI agent can handle container orchestration directly—starting services, inspecting logs, building images, and running compose stacks—all through conversation.

Built and maintained by Docker, this official MCP server connects to your local Docker socket and exposes the full set of container operations as tools your AI can call. No remote credentials, no API keys—just native access to what's already running on your machine.

What It Does

Docker MCP gives Claude, Cursor, or Windsurf direct control over your Docker environment. You can list and inspect containers, start or stop services, build images from Dockerfiles, manage volumes and networks, and orchestrate multi-service applications with docker-compose.

The server streams container logs in real time, lets you execute commands inside running containers, and surfaces health and resource metrics—meaning you can ask your AI to diagnose performance issues, check CPU or memory usage, or tail logs without leaving your editor or chat interface.

This is especially powerful for local development workflows. Instead of jumping between your IDE, terminal, and Docker Desktop, you keep context in one place and let the agent handle the plumbing.

How to Install

npx -y @docker/mcp-server
Enter fullscreen mode Exit fullscreen mode

Then add it to your Claude Desktop config (or equivalent for Cursor/Windsurf):

{
  "mcpServers": {
    "docker-mcp": {
      "command": "npx -y @docker/mcp-server"
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Real-World Use Cases

  • Spin up your dev stack on demand. "Start the postgres and redis containers from my compose file"—your agent orchestrates the full stack and confirms readiness.
  • Debug with live logs. "Show me logs from the api container in the last 10 minutes"—stream and analyze errors without switching to another tool.
  • Build and ship images programmatically. "Build a new image from the current directory and tag it v2.1, then push it to my registry"—the agent handles the full CI-like workflow.

Full install guides for Claude Desktop, Cursor, Windsurf, and more at CuratedMCP.

Top comments (0)