hetzner
v4.1.0MCP server for the Hetzner Cloud API — servers, networks, volumes, firewalls, and more.
Values you need
| Variable | What it is | |
|---|---|---|
HETZNER_API_TOKEN | required secret | Hetzner Cloud API token. |
HETZNER_STORAGE_API_TOKEN | optional 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.0Add 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
- Ask the user for: HETZNER_API_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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