Docker MCP Server

Universal Docker MCP server for AI assistants (Cursor, Claude Desktop)

Local serverstdioPython

What is the Docker MCP Server?

Universal Docker MCP server for AI assistants (Cursor, Claude Desktop)

What the server does

Universal Docker MCP server for AI assistants (Cursor, Claude Desktop). Manage Docker containers, execute commands, query databases, and handle environment configurations — all through natural language.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
docker_container_listList all containers (grouped by project)
docker_container_startStart a container
docker_container_stopStop a container
docker_container_restartRestart a container
docker_container_logsView container logs
docker_container_statsGet container resource usage
docker_compose_upStart entire stack
docker_compose_downStop entire stack
docker_resource_listList Docker images, volumes, or networks
docker_db_queryExecute SQL query or database command
docker_db_backupCreate database backup
docker_db_restoreRestore from backup
docker_db_statusShow database status
docker_env_listList environment variables (with secret masking)

How to install the Docker MCP Server

{
  "mcpServers": {
    "docker-1": {
      "command": "npx",
      "args": ["-y", "@hypnosis/docker-mcp-server"],
      "env": {
        "DOCKER_MCP_AUTO_DISCOVER": "your-value",
        "DOCKER_MCP_MASK_SECRETS": "your-value",
        "DOCKER_MCP_PROFILES_FILE": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
DOCKER_MCP_AUTO_DISCOVERConfiguration value read at startup.Optional
DOCKER_MCP_MASK_SECRETSCredential the server authenticates with.Yes
DOCKER_MCP_PROFILES_FILEConfiguration value read at startup.Optional

Example prompts to try

  • “Use Docker to docker container list.”
  • “Use Docker to docker container start.”
  • “Use Docker to docker container stop.”

Frequently asked questions

Universal Docker MCP server for AI assistants (Cursor, Claude Desktop) Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.