hetzner-mcp-server
# Hetzner MCP Server
Manage Hetzner Cloud servers, networks, storage, DNS and load balancers from an MCP client.
Requires **Node.js 22.12 or newer**.
## Setup
Create an API token in the [Hetzner Cloud Console](https://console.hetzner.cloud/).
Use a read-only token for inspection; write operations can create billable resources.
For [Claude Code](https://code.claude.com/docs/en/mcp#option-3-add-a-local-stdio-server):
```bash
claude mcp add --env HETZNER_API_TOKEN=your-token --transport stdio \
hetzner -- npx -y @lazyants/hetzner-mcp-server
```
For Claude Desktop and clients that accept `mcpServers` JSON:
```json
{
"mcpServers": {
"hetzner": {
"command": "npx",
"args": ["-y", "@lazyants/hetzner-mcp-server"],
"env": { "HETZNER_API_TOKEN": "your-token" }
}
}
}
```
For a separate Storage Box token, also set `HETZNER_STORAGE_API_TOKEN`.
Otherwise, Storage Box tools use `HETZNER_API_TOKEN`.
## Smaller servers
The default command exposes all tools. To load only one resource group, run a split command:
```bash
npx -y -p @lazyants/hetzner-mcp-server hetzner-mcp-networking
```
In a client configuration, replace `args` with:
```json
["-y", "-p", "@lazyants/hetzner-mcp-server", "hetzner-mcp-networking"]
```
Other groups: `servers`, `load-balancers`, `ips`, `storage`, `storage-boxes`, `config` and `dns`.
Use the same `hetzner-mcp-` command prefix and token configuration.
Every server exposes the API reference at `reference://hetzner/api`.
See [CHANGELOG.md](CHANGELOG.md) for release changes.
## Releasing
Maintainer instructions: [release guide](https://github.com/lazyants/hetzner-mcp-server/blob/main/docs/releasing.md).
## License
[FSL-1.1-MIT](LICENSE). Versions 1.1.1 and earlier remain MIT-licensed.
TDQS
Scored across 185 tools
Most tools follow a distinct resource+action shape (e.g. hetzner_get_volume vs hetzner_resize_volume), but at 185 tools there are several genuinely confusable pairs: hetzner_reset (hard reset) vs hetzner_reset_server_password, hetzner_update_zone_rrset (labels only) vs hetzner_update_zone_rrset_records, and hetzner_remove_firewall (detach) vs hetzner_delete_firewall. The dns-ptr family is also unevenly named (hetzner_change_dns_ptr vs hetzner_change_primary_ip_rdns vs hetzner_change_floating_ip_rdns), making the right choice non-obvious without close reading.
The dominant pattern is a clean, predictable hetzner_verb_noun form with a small verb vocabulary (list/get/create/update/delete/change/attach/detach/enable/disable). Deviations are minor but real: unqualified verbs in hetzner_power_on, hetzner_reboot, hetzner_reset, hetzner_shutdown, plus mixed suffix conventions (dns_ptr vs rdns) and set/add/update record variants.
185 tools is far beyond any reasonable agent-facing surface, even for a large cloud API; the rubric treats 50+ as an extreme mismatch. There are no aggregate or batch helpers (e.g. no generic list/describe across resources), so the agent must reason over the entire namespace on every task. Each tool maps to an API endpoint, but that endpoint-level granularity is not the right unit for tool selection.
Coverage is genuinely broad and lifecycle-complete: servers, volumes, networks/subnets/routes, firewalls, load balancers, DNS zones and RRSets, Storage Boxes with snapshots and subaccounts, images, SSH keys, certificates, primary/floating IPs, placement groups, action polling, metrics, and pricing. The main gaps are Storage Box file operations (only folder listing, no upload/download) and the lack of any cross-resource summary or bulk-operation tools.