Hetzner Cloud MCP by usefulapi
v1.43.1Servers, volumes, networks, firewalls, load balancers, pricing and safe power operations.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hetzner_list_servers List servers
List the servers in the token's project, optionally filtered by name, status or a label selector. Hetzner Cloud: GET /servers.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label selector, e.g. env=prod or env!=dev — Hetzner's filter idiom. |
name | string | Only the server with this exact name. |
page | integer | 1-based page number. |
per_page | integer | Page size, 1-50. |
status | string | Only servers in this power state. |
hetzner_get_server Get one server
Fetch a single server with its type, image, IPs, volumes, networks and protection flags. Hetzner Cloud: GET /servers/{id}.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | The server's numeric id. |
hetzner_get_server_metrics Get server metrics
Fetch CPU, disk or network time series for one server over a window. Hetzner Cloud: GET /servers/{id}/metrics.
| Parameter | Type | Description |
|---|---|---|
end * | string | ISO-8601 end of the window. |
server_id * | integer | The server's numeric id. |
start * | string | ISO-8601 start of the window. |
type * | string | Which metric family to return. |
step | integer | Resolution in seconds. |
hetzner_list_server_types List server types
List the available server types with their cores, memory, disk and hourly and monthly prices — read this before creating a server. Hetzner Cloud: GET /server_types.
| Parameter | Type | Description |
|---|---|---|
name | string | Only the type with this name, e.g. cx22. |
page | integer | 1-based page number. |
per_page | integer | Page size, 1-50 (default 10). Use page to reach the rest. |
hetzner_list_images List images
List OS images, snapshots and backups you can boot or restore from. Hetzner Cloud: GET /images.
| Parameter | Type | Description |
|---|---|---|
architecture | string | Only images for this CPU architecture. |
label_selector | string | Label selector, e.g. env=prod or env!=dev — Hetzner's filter idiom. |
name | string | Only the image with this name, e.g. ubuntu-24.04. |
page | integer | 1-based page number. |
per_page | integer | Page size, 1-50. |
type | string | Only images of this kind. |
hetzner_list_locations List locations
List the datacentre locations (city, country, network zone) servers can run in. Hetzner Cloud: GET /locations.
| Parameter | Type | Description |
|---|---|---|
name | string | Only the location with this name, e.g. fsn1. |
hetzner_get_pricing Get pricing
Fetch the full price list for the project's currency — server types, volumes, traffic, floating IPs, load balancers and backups. Hetzner Cloud: GET /pricing.
hetzner_get_action Get one action
Fetch the status of one asynchronous action. Every write tool here returns an action id — poll it with this to see whether the operation finished. Hetzner Cloud: GET /actions/{id}.
| Parameter | Type | Description |
|---|---|---|
action_id * | integer | The action's numeric id. |
hetzner_list_volumes List volumes
List block-storage volumes, their size and which server they are attached to. Hetzner Cloud: GET /volumes.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label selector, e.g. env=prod or env!=dev — Hetzner's filter idiom. |
name | string | Only the resource with this exact name. |
page | integer | 1-based page number. |
per_page | integer | Page size, 1-50. |
hetzner_get_volumes Get one volume
Fetch a single resource by id. Hetzner Cloud: GET /volumes/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The resource's numeric id. |
hetzner_list_networks List networks
List private networks, their IP ranges, subnets and routes. Hetzner Cloud: GET /networks.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label selector, e.g. env=prod or env!=dev — Hetzner's filter idiom. |
name | string | Only the resource with this exact name. |
page | integer | 1-based page number. |
per_page | integer | Page size, 1-50. |
hetzner_get_networks Get one network
Fetch a single resource by id. Hetzner Cloud: GET /networks/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The resource's numeric id. |
hetzner_list_firewalls List firewalls
List firewalls, their rules and which resources they are applied to. Hetzner Cloud: GET /firewalls.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label selector, e.g. env=prod or env!=dev — Hetzner's filter idiom. |
name | string | Only the resource with this exact name. |
page | integer | 1-based page number. |
per_page | integer | Page size, 1-50. |
hetzner_get_firewalls Get one firewall
Fetch a single resource by id. Hetzner Cloud: GET /firewalls/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The resource's numeric id. |
hetzner_list_load_balancers List load balancers
List load balancers, their services, targets and health status. Hetzner Cloud: GET /load_balancers.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label selector, e.g. env=prod or env!=dev — Hetzner's filter idiom. |
name | string | Only the resource with this exact name. |
page | integer | 1-based page number. |
per_page | integer | Page size, 1-50. |
hetzner_get_load_balancers Get one load balancer
Fetch a single resource by id. Hetzner Cloud: GET /load_balancers/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The resource's numeric id. |
hetzner_list_ssh_keys List SSH keys
List the SSH public keys available to inject when creating a server. Hetzner Cloud: GET /ssh_keys.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label selector, e.g. env=prod or env!=dev — Hetzner's filter idiom. |
name | string | Only the resource with this exact name. |
page | integer | 1-based page number. |
per_page | integer | Page size, 1-50. |
hetzner_get_ssh_keys Get one SSH key
Fetch a single resource by id. Hetzner Cloud: GET /ssh_keys/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The resource's numeric id. |
hetzner_list_floating_ips List floating IPs
List floating IPs and which server each is assigned to. Hetzner Cloud: GET /floating_ips.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label selector, e.g. env=prod or env!=dev — Hetzner's filter idiom. |
name | string | Only the resource with this exact name. |
page | integer | 1-based page number. |
per_page | integer | Page size, 1-50. |
hetzner_get_floating_ips Get one floating IP
Fetch a single resource by id. Hetzner Cloud: GET /floating_ips/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The resource's numeric id. |
hetzner_list_primary_ips List primary IPs
List primary IPs and their assignments. Hetzner Cloud: GET /primary_ips.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label selector, e.g. env=prod or env!=dev — Hetzner's filter idiom. |
name | string | Only the resource with this exact name. |
page | integer | 1-based page number. |
per_page | integer | Page size, 1-50. |
hetzner_get_primary_ips Get one primary IP
Fetch a single resource by id. Hetzner Cloud: GET /primary_ips/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The resource's numeric id. |
hetzner_list_certificates List certificates
List TLS certificates, managed or uploaded, and their expiry. Hetzner Cloud: GET /certificates.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label selector, e.g. env=prod or env!=dev — Hetzner's filter idiom. |
name | string | Only the resource with this exact name. |
page | integer | 1-based page number. |
per_page | integer | Page size, 1-50. |
hetzner_get_certificates Get one certificate
Fetch a single resource by id. Hetzner Cloud: GET /certificates/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The resource's numeric id. |
hetzner_list_zones List DNS zones
List the DNS zones in the token's project, optionally filtered by name, mode or label. Hetzner Cloud: GET /zones.
| Parameter | Type | Description |
|---|---|---|
label_selector | string | Label selector, e.g. env=prod or env!=dev — Hetzner's filter idiom. |
mode | string | Only zones in this mode. |
name | string | Only the zone with this exact name, e.g. example.com. |
page | integer | 1-based page number. |
per_page | integer | Page size, 1-50. |
hetzner_get_zone Get one DNS zone
Fetch a single DNS zone by name or id. Hetzner Cloud: GET /zones/{id_or_name}.
| Parameter | Type | Description |
|---|---|---|
zone * | The zone's name, e.g. example.com, or its numeric id as returned by hetzner_list_zones. A non-ASCII name must be Punycode (xn--...). |
hetzner_list_zone_rrsets List DNS record sets
List the record sets (A, MX, TXT and so on) of one PRIMARY DNS zone, optionally filtered by name or type (a secondary zone is refused by Hetzner with incorrect_zone_mode). The apex is named @. Hetzner Cloud: GET /zones/{id_or_name}/rrsets.
| Parameter | Type | Description |
|---|---|---|
zone * | The zone's name, e.g. example.com, or its numeric id as returned by hetzner_list_zones. A non-ASCII name must be Punycode (xn--...). | |
label_selector | string | Label selector, e.g. env=prod or env!=dev — Hetzner's filter idiom. |
name | string | Only the record set with this name, e.g. www or @. |
page | integer | 1-based page number. |
per_page | integer | Page size, 1-50. |
type | Only record sets of this type, or of any of these types (a list). |
hetzner_create_server Create a server
Provision a new server. THIS STARTS BILLING: the chosen server type is charged by the hour from the moment it boots. Call hetzner_list_server_types first to see prices, and hetzner_list_images for a bootable image. Hetzner Cloud: POST /servers.
| Parameter | Type | Description |
|---|---|---|
image * | string | Image name or id to boot, e.g. ubuntu-24.04. |
name * | string | A unique name for the server (also its hostname). |
server_type * | string | Server type name, e.g. cx22. See hetzner_list_server_types. |
labels | object | Labels for filtering later. |
location | string | Location name, e.g. fsn1. Defaults to Hetzner's choice. |
ssh_keys | array | SSH key names or ids to authorise. Without one, Hetzner emails a root password. |
start_after_create | boolean | Boot the server immediately. Defaults to true. |
user_data | string | cloud-init user data to run on first boot. |
hetzner_poweron_server Power on a server
Power on a stopped server. Returns an action id — poll it with hetzner_get_action. Hetzner Cloud: POST /servers/{id}/actions/poweron.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | The server to start. |
hetzner_shutdown_server Shut down a server
Ask the guest OS to shut down gracefully via ACPI. Prefer this over a hard power-off. Note that a stopped server still costs money — only deleting it stops the bill. Hetzner Cloud: POST /servers/{id}/actions/shutdown.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | The server to shut down. |
hetzner_reboot_server Reboot a server
Reboot a server gracefully via ACPI. Hetzner Cloud: POST /servers/{id}/actions/reboot.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | The server to reboot. |
hetzner_create_image_from_server Snapshot a server to an image
Create a snapshot image from a server's disk — the safe thing to do BEFORE a risky change. Snapshots are billed for the space they use. Hetzner Cloud: POST /servers/{id}/actions/create_image.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | The server to snapshot. |
description | string | A label for the snapshot. |
type | string | snapshot (kept until deleted) or backup (uses a backup slot). Defaults to snapshot. |
hetzner_enable_server_backup Enable server backups
Turn on automatic backups for a server. This adds roughly 20% to the server's price. Hetzner Cloud: POST /servers/{id}/actions/enable_backup.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | The server to protect. |
hetzner_disable_server_backup Disable server backups
Turn off automatic backups for a server. Existing backups are DELETED. Hetzner Cloud: POST /servers/{id}/actions/disable_backup.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | The server to stop backing up. |
hetzner_change_server_protection Change a server's protection
Turn deletion and rebuild protection on or off for a server. Turning protection ON is the safest write in this server. Hetzner Cloud: POST /servers/{id}/actions/change_protection.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | The server to protect. |
delete | boolean | Protect the server from deletion. |
rebuild | boolean | Protect the server from rebuild. |
hetzner_create_zone_rrset Create a DNS record set
WRITE: Add a NEW record set (for example an A record for api) to a primary DNS zone. This adds a record to live DNS, so ask the user before calling it. It never edits an existing set: call hetzner_list_zone_rrsets first to check the name and type are free. The response holds an action: poll it with hetzner_get_action until its status is success or error. Hetzner Cloud: POST /zones/{id_or_name}/rrsets.
| Parameter | Type | Description |
|---|---|---|
name * | string | Record name without the zone, e.g. www. Use @ for the apex. Non-ASCII names must be Punycode (xn--...). |
records * | array | One to 50 distinct record values. |
type * | string | Record type, e.g. A or MX. |
zone * | The zone's name, e.g. example.com, or its numeric id as returned by hetzner_list_zones. A non-ASCII name must be Punycode (xn--...). | |
labels | object | Labels for filtering later. Values: letters, digits, -, _ or . (63 characters at most). |
ttl | TTL in seconds, 60 or more. Omit or send null for the zone's default TTL. |