Manage Docker containers and images
npx -y @modelcontextprotocol/server-docker-mcp-server
Paste this into your MCP client configuration (Cursor, Windsurf, etc).
Manage Docker containers and images.
{
"mcpServers": {
"docker": {
"command": "npx",
"args": ["-y", "@docker/mcp-server"],
"env": {
"DOCKER_HOST": "unix:///var/run/docker.sock"
}
}
}
}
list_containers: List running containersrun_container: Start a containerstop_container: Stop a containerbuild_image: Build an imagelogs: Get container logsMCP (Model Context Protocol) servers extend your AI assistant with external tools and data sources. Follow these steps to install Docker MCP Server in your preferred AI coding tool.
claude_desktop_config.json