Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-mguttmann-the-real-hetzner-mcp": {
"command": "npx",
"args": [
"-y",
"@mguttmann/hetzner-cloud-mcp"
],
"env": {
"HETZNER_API_TOKEN": "<YOUR_VALUE>",
"HETZNER_READ_ONLY": "false",
"HETZNER_CONFIRM_WRITES": "false",
"HETZNER_DENY_TOOLS": "<VALUE>",
"LOG_LEVEL": "warn",
"HTTP_TIMEOUT_MS": "<VALUE>",
"HETZNER_API_BASE": "<VALUE>",
"MAX_OUTPUT_BYTES": "<VALUE>",
"PAGINATION_MAX_ITEMS": "<VALUE>",
"PAGINATION_MAX_PAGES": "<VALUE>",
"PAGINATION_TIMEOUT_MS": "<VALUE>",
"ACTION_POLL_TIMEOUT_MS": "<VALUE>",
"ACTION_POLL_INTERVAL_MS": "<VALUE>",
"HTTP_MAX_RETRY_DELAY_MS": "<VALUE>",
"MCP_SERVE_MODERN_PROTOCOL": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-mguttmann-the-real-hetzner-mcp": {
"command": "npx",
"args": [
"-y",
"@mguttmann/hetzner-cloud-mcp"
],
"env": {
"HETZNER_API_TOKEN": "<YOUR_VALUE>",
"HETZNER_READ_ONLY": "false",
"HETZNER_CONFIRM_WRITES": "false",
"HETZNER_DENY_TOOLS": "<VALUE>",
"LOG_LEVEL": "warn",
"HTTP_TIMEOUT_MS": "<VALUE>",
"HETZNER_API_BASE": "<VALUE>",
"MAX_OUTPUT_BYTES": "<VALUE>",
"PAGINATION_MAX_ITEMS": "<VALUE>",
"PAGINATION_MAX_PAGES": "<VALUE>",
"PAGINATION_TIMEOUT_MS": "<VALUE>",
"ACTION_POLL_TIMEOUT_MS": "<VALUE>",
"ACTION_POLL_INTERVAL_MS": "<VALUE>",
"HTTP_MAX_RETRY_DELAY_MS": "<VALUE>",
"MCP_SERVE_MODERN_PROTOCOL": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-mguttmann-the-real-hetzner-mcp": {
"command": "npx",
"args": [
"-y",
"@mguttmann/hetzner-cloud-mcp"
],
"env": {
"HETZNER_API_TOKEN": "<YOUR_VALUE>",
"HETZNER_READ_ONLY": "false",
"HETZNER_CONFIRM_WRITES": "false",
"HETZNER_DENY_TOOLS": "<VALUE>",
"LOG_LEVEL": "warn",
"HTTP_TIMEOUT_MS": "<VALUE>",
"HETZNER_API_BASE": "<VALUE>",
"MAX_OUTPUT_BYTES": "<VALUE>",
"PAGINATION_MAX_ITEMS": "<VALUE>",
"PAGINATION_MAX_PAGES": "<VALUE>",
"PAGINATION_TIMEOUT_MS": "<VALUE>",
"ACTION_POLL_TIMEOUT_MS": "<VALUE>",
"ACTION_POLL_INTERVAL_MS": "<VALUE>",
"HTTP_MAX_RETRY_DELAY_MS": "<VALUE>",
"MCP_SERVE_MODERN_PROTOCOL": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-mguttmann-the-real-hetzner-mcp": {
"command": "npx",
"args": [
"-y",
"@mguttmann/hetzner-cloud-mcp"
],
"env": {
"HETZNER_API_TOKEN": "<YOUR_VALUE>",
"HETZNER_READ_ONLY": "false",
"HETZNER_CONFIRM_WRITES": "false",
"HETZNER_DENY_TOOLS": "<VALUE>",
"LOG_LEVEL": "warn",
"HTTP_TIMEOUT_MS": "<VALUE>",
"HETZNER_API_BASE": "<VALUE>",
"MAX_OUTPUT_BYTES": "<VALUE>",
"PAGINATION_MAX_ITEMS": "<VALUE>",
"PAGINATION_MAX_PAGES": "<VALUE>",
"PAGINATION_TIMEOUT_MS": "<VALUE>",
"ACTION_POLL_TIMEOUT_MS": "<VALUE>",
"ACTION_POLL_INTERVAL_MS": "<VALUE>",
"HTTP_MAX_RETRY_DELAY_MS": "<VALUE>",
"MCP_SERVE_MODERN_PROTOCOL": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-mguttmann-the-real-hetzner-mcp": {
"command": "npx",
"args": [
"-y",
"@mguttmann/hetzner-cloud-mcp"
],
"env": {
"HETZNER_API_TOKEN": "<YOUR_VALUE>",
"HETZNER_READ_ONLY": "false",
"HETZNER_CONFIRM_WRITES": "false",
"HETZNER_DENY_TOOLS": "<VALUE>",
"LOG_LEVEL": "warn",
"HTTP_TIMEOUT_MS": "<VALUE>",
"HETZNER_API_BASE": "<VALUE>",
"MAX_OUTPUT_BYTES": "<VALUE>",
"PAGINATION_MAX_ITEMS": "<VALUE>",
"PAGINATION_MAX_PAGES": "<VALUE>",
"PAGINATION_TIMEOUT_MS": "<VALUE>",
"ACTION_POLL_TIMEOUT_MS": "<VALUE>",
"ACTION_POLL_INTERVAL_MS": "<VALUE>",
"HTTP_MAX_RETRY_DELAY_MS": "<VALUE>",
"MCP_SERVE_MODERN_PROTOCOL": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-mguttmann-the-real-hetzner-mcp": {
"command": "npx",
"args": [
"-y",
"@mguttmann/hetzner-cloud-mcp"
],
"env": {
"HETZNER_API_TOKEN": "<YOUR_VALUE>",
"HETZNER_READ_ONLY": "false",
"HETZNER_CONFIRM_WRITES": "false",
"HETZNER_DENY_TOOLS": "<VALUE>",
"LOG_LEVEL": "warn",
"HTTP_TIMEOUT_MS": "<VALUE>",
"HETZNER_API_BASE": "<VALUE>",
"MAX_OUTPUT_BYTES": "<VALUE>",
"PAGINATION_MAX_ITEMS": "<VALUE>",
"PAGINATION_MAX_PAGES": "<VALUE>",
"PAGINATION_TIMEOUT_MS": "<VALUE>",
"ACTION_POLL_TIMEOUT_MS": "<VALUE>",
"ACTION_POLL_INTERVAL_MS": "<VALUE>",
"HTTP_MAX_RETRY_DELAY_MS": "<VALUE>",
"MCP_SERVE_MODERN_PROTOCOL": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| HETZNER_API_TOKEN secret | Yes | Hetzner Cloud API token, sent as a bearer token on every request. Required. The server can do exactly what this token allows. |
| HETZNER_READ_ONLY | No | true, 1 or yes: every tool that is not annotated read-only, and hcloud_raw_request with a method other than GET, returns isError without sending a request. Any value other than true, 1, yes, false, 0, no or empty stops the server at startup. Default: false Default: false |
| HETZNER_CONFIRM_WRITES | No | true, 1 or yes: every tool that is not read-only returns a preview unless the call carries confirm: "YES". Default: false Default: false |
| HETZNER_DENY_TOOLS | No | Comma-separated tool name globs (* any characters, ? one character, whole name, case-sensitive), for example hcloud_delete_*,hcloud_raw_request. A matching tool returns isError without sending a request. A pattern that matches no tool stops the server at startup. Default: empty |
| LOG_LEVEL | No | debug, info, warn or error. Logs are JSON on stderr; stdout carries the MCP protocol. Default: warn Default: warn |
| HTTP_TIMEOUT_MS | No | Wall-clock budget for one API request, all attempts and retry delays included. Default: 30000 |
| HETZNER_API_BASE | No | API base URL. Must be https; plain http only for localhost, 127.0.0.1 or ::1. Any other value stops the server at startup. Default: https://api.hetzner.cloud/v1 |
| MAX_OUTPUT_BYTES | No | Largest tool result text in bytes, counted as sent (JSON-escaped). A longer result is cut and ends with [output truncated by MAX_OUTPUT_BYTES=...]. Values above the default are lowered to it. Default: 8388608 |
| PAGINATION_MAX_ITEMS | No | Soft cap on the items an auto-paginated list collects; a capped list reports truncated: true. Default: 500 |
| PAGINATION_MAX_PAGES | No | Soft cap on the pages an auto-paginated list requests. Default: 10 |
| PAGINATION_TIMEOUT_MS | No | Wall-clock budget of one auto-paginated list. When it ends, the pages read so far come back with truncated: true and a note. Default: 45000 |
| ACTION_POLL_TIMEOUT_MS | No | Wall-clock budget of a wait: true call, measured from the start of the call. Also the ceiling for the timeout_ms argument of hcloud_wait_action. Default: 45000 |
| ACTION_POLL_INTERVAL_MS | No | Pause between two polls. The interval_ms argument of hcloud_wait_action cannot go below 1000 or this value, whichever is lower. Default: 2000 |
| HTTP_MAX_RETRY_DELAY_MS | No | Longest single retry delay. A 429 whose Retry-After asks for more is returned at once as an error. Default: 10000 |
| MCP_SERVE_MODERN_PROTOCOL | No | true, 1 or yes: also serve the MCP 2026-07-28 revision over stdio. A client that opens with initialize gets the same 2025-era session as with false. Default: false |