Skip to content
VS Code

hetzner for VS Code

io.github.lazyants/hetzner

MCP server for the Hetzner Cloud API — servers, networks, volumes, firewalls, and more.

client:VS Code transport:stdio runtime:npm

Install hetzner in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "hetzner-api-token",
      "description": "HETZNER_API_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hetzner-storage-api-token",
      "description": "HETZNER_STORAGE_API_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "hetzner": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@lazyants/hetzner-mcp-server"
      ],
      "env": {
        "HETZNER_API_TOKEN": "${input:hetzner-api-token}",
        "HETZNER_STORAGE_API_TOKEN": "${input:hetzner-storage-api-token}"
      }
    }
  }
}

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

hetzner in other clients