hetzner

v4.1.0
io.github.lazyants/hetzner Checked 1 hour ago Published 17 days ago

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

Values you need

VariableWhat it is
HETZNER_API_TOKENrequired secret Hetzner Cloud API token.
HETZNER_STORAGE_API_TOKENoptional secret Storage Box API token; falls back to HETZNER_API_TOKEN when omitted.

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add hetzner -e 'HETZNER_API_TOKEN=<HETZNER_API_TOKEN>' -- npx -y @lazyants/hetzner-mcp-server@4.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "hetzner": {
      "args": [
        "-y",
        "@lazyants/hetzner-mcp-server@4.1.0"
      ],
      "command": "npx",
      "env": {
        "HETZNER_API_TOKEN": "<HETZNER_API_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "hetzner": {
      "args": [
        "-y",
        "@lazyants/hetzner-mcp-server@4.1.0"
      ],
      "command": "npx",
      "env": {
        "HETZNER_API_TOKEN": "<HETZNER_API_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "HETZNER_API_TOKEN",
      "id": "hetzner-api-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "hetzner": {
      "args": [
        "-y",
        "@lazyants/hetzner-mcp-server@4.1.0"
      ],
      "command": "npx",
      "env": {
        "HETZNER_API_TOKEN": "${input:hetzner-api-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.hetzner]
command = "npx"
args = ["-y", "@lazyants/hetzner-mcp-server@4.1.0"]
env = { "HETZNER_API_TOKEN" = "<HETZNER_API_TOKEN>" }

For AI agents

  1. Ask the user for: HETZNER_API_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: hetzner_list_servers, hetzner_get_server, hetzner_create_server, hetzner_update_server, hetzner_delete_server, hetzner_power_on, hetzner_power_off, hetzner_reboot, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json