Skip to content
VS Code

Docker MCP Server for VS Code

io.github.hypnosis/docker-mcp-server

Docker for AI agents — containers, compose stacks, logs and databases, locally or over SSH.

client:VS Code transport:stdio runtime:npm

Install Docker MCP Server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "docker-mcp-profiles-file",
      "description": "DOCKER_MCP_PROFILES_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docker-profiles",
      "description": "DOCKER_PROFILES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docker-mcp-allow-ssh-fallback",
      "description": "DOCKER_MCP_ALLOW_SSH_FALLBACK",
      "password": true
    },
    {
      "type": "promptString",
      "id": "log-level",
      "description": "LOG_LEVEL",
      "password": true
    }
  ],
  "servers": {
    "docker-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@hypnosis/docker-mcp-server"
      ],
      "env": {
        "DOCKER_MCP_PROFILES_FILE": "${input:docker-mcp-profiles-file}",
        "DOCKER_PROFILES": "${input:docker-profiles}",
        "DOCKER_MCP_ALLOW_SSH_FALLBACK": "${input:docker-mcp-allow-ssh-fallback}",
        "LOG_LEVEL": "${input:log-level}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Docker MCP Server in other clients