Hetzner Cloud MCP by usefulapi

v1.43.1
io.usefulapi/hetzner-cloud Checked 3 days ago Published 7 hours ago

Servers, 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.

ParameterTypeDescription
label_selectorstringLabel selector, e.g. env=prod or env!=dev — Hetzner's filter idiom.
namestringOnly the server with this exact name.
pageinteger1-based page number.
per_pageintegerPage size, 1-50.
statusstringOnly 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}.

ParameterTypeDescription
server_id *integerThe 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.

ParameterTypeDescription
end *stringISO-8601 end of the window.
server_id *integerThe server's numeric id.
start *stringISO-8601 start of the window.
type *stringWhich metric family to return.
stepintegerResolution 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.

ParameterTypeDescription
namestringOnly the type with this name, e.g. cx22.
pageinteger1-based page number.
per_pageintegerPage 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.

ParameterTypeDescription
architecturestringOnly images for this CPU architecture.
label_selectorstringLabel selector, e.g. env=prod or env!=dev — Hetzner's filter idiom.
namestringOnly the image with this name, e.g. ubuntu-24.04.
pageinteger1-based page number.
per_pageintegerPage size, 1-50.
typestringOnly 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.

ParameterTypeDescription
namestringOnly 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}.

ParameterTypeDescription
action_id *integerThe 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.

ParameterTypeDescription
label_selectorstringLabel selector, e.g. env=prod or env!=dev — Hetzner's filter idiom.
namestringOnly the resource with this exact name.
pageinteger1-based page number.
per_pageintegerPage size, 1-50.

hetzner_get_volumes Get one volume

Fetch a single resource by id. Hetzner Cloud: GET /volumes/{id}.

ParameterTypeDescription
id *integerThe resource's numeric id.

hetzner_list_networks List networks

List private networks, their IP ranges, subnets and routes. Hetzner Cloud: GET /networks.

ParameterTypeDescription
label_selectorstringLabel selector, e.g. env=prod or env!=dev — Hetzner's filter idiom.
namestringOnly the resource with this exact name.
pageinteger1-based page number.
per_pageintegerPage size, 1-50.

hetzner_get_networks Get one network

Fetch a single resource by id. Hetzner Cloud: GET /networks/{id}.

ParameterTypeDescription
id *integerThe resource's numeric id.

hetzner_list_firewalls List firewalls

List firewalls, their rules and which resources they are applied to. Hetzner Cloud: GET /firewalls.

ParameterTypeDescription
label_selectorstringLabel selector, e.g. env=prod or env!=dev — Hetzner's filter idiom.
namestringOnly the resource with this exact name.
pageinteger1-based page number.
per_pageintegerPage size, 1-50.

hetzner_get_firewalls Get one firewall

Fetch a single resource by id. Hetzner Cloud: GET /firewalls/{id}.

ParameterTypeDescription
id *integerThe 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.

ParameterTypeDescription
label_selectorstringLabel selector, e.g. env=prod or env!=dev — Hetzner's filter idiom.
namestringOnly the resource with this exact name.
pageinteger1-based page number.
per_pageintegerPage size, 1-50.

hetzner_get_load_balancers Get one load balancer

Fetch a single resource by id. Hetzner Cloud: GET /load_balancers/{id}.

ParameterTypeDescription
id *integerThe 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.

ParameterTypeDescription
label_selectorstringLabel selector, e.g. env=prod or env!=dev — Hetzner's filter idiom.
namestringOnly the resource with this exact name.
pageinteger1-based page number.
per_pageintegerPage size, 1-50.

hetzner_get_ssh_keys Get one SSH key

Fetch a single resource by id. Hetzner Cloud: GET /ssh_keys/{id}.

ParameterTypeDescription
id *integerThe 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.

ParameterTypeDescription
label_selectorstringLabel selector, e.g. env=prod or env!=dev — Hetzner's filter idiom.
namestringOnly the resource with this exact name.
pageinteger1-based page number.
per_pageintegerPage size, 1-50.

hetzner_get_floating_ips Get one floating IP

Fetch a single resource by id. Hetzner Cloud: GET /floating_ips/{id}.

ParameterTypeDescription
id *integerThe resource's numeric id.

hetzner_list_primary_ips List primary IPs

List primary IPs and their assignments. Hetzner Cloud: GET /primary_ips.

ParameterTypeDescription
label_selectorstringLabel selector, e.g. env=prod or env!=dev — Hetzner's filter idiom.
namestringOnly the resource with this exact name.
pageinteger1-based page number.
per_pageintegerPage size, 1-50.

hetzner_get_primary_ips Get one primary IP

Fetch a single resource by id. Hetzner Cloud: GET /primary_ips/{id}.

ParameterTypeDescription
id *integerThe resource's numeric id.

hetzner_list_certificates List certificates

List TLS certificates, managed or uploaded, and their expiry. Hetzner Cloud: GET /certificates.

ParameterTypeDescription
label_selectorstringLabel selector, e.g. env=prod or env!=dev — Hetzner's filter idiom.
namestringOnly the resource with this exact name.
pageinteger1-based page number.
per_pageintegerPage size, 1-50.

hetzner_get_certificates Get one certificate

Fetch a single resource by id. Hetzner Cloud: GET /certificates/{id}.

ParameterTypeDescription
id *integerThe 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.

ParameterTypeDescription
label_selectorstringLabel selector, e.g. env=prod or env!=dev — Hetzner's filter idiom.
modestringOnly zones in this mode.
namestringOnly the zone with this exact name, e.g. example.com.
pageinteger1-based page number.
per_pageintegerPage 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}.

ParameterTypeDescription
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.

ParameterTypeDescription
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_selectorstringLabel selector, e.g. env=prod or env!=dev — Hetzner's filter idiom.
namestringOnly the record set with this name, e.g. www or @.
pageinteger1-based page number.
per_pageintegerPage size, 1-50.
typeOnly 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.

ParameterTypeDescription
image *stringImage name or id to boot, e.g. ubuntu-24.04.
name *stringA unique name for the server (also its hostname).
server_type *stringServer type name, e.g. cx22. See hetzner_list_server_types.
labelsobjectLabels for filtering later.
locationstringLocation name, e.g. fsn1. Defaults to Hetzner's choice.
ssh_keysarraySSH key names or ids to authorise. Without one, Hetzner emails a root password.
start_after_createbooleanBoot the server immediately. Defaults to true.
user_datastringcloud-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.

ParameterTypeDescription
server_id *integerThe 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.

ParameterTypeDescription
server_id *integerThe server to shut down.

hetzner_reboot_server Reboot a server

Reboot a server gracefully via ACPI. Hetzner Cloud: POST /servers/{id}/actions/reboot.

ParameterTypeDescription
server_id *integerThe 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.

ParameterTypeDescription
server_id *integerThe server to snapshot.
descriptionstringA label for the snapshot.
typestringsnapshot (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.

ParameterTypeDescription
server_id *integerThe 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.

ParameterTypeDescription
server_id *integerThe 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.

ParameterTypeDescription
server_id *integerThe server to protect.
deletebooleanProtect the server from deletion.
rebuildbooleanProtect 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.

ParameterTypeDescription
name *stringRecord name without the zone, e.g. www. Use @ for the apex. Non-ASCII names must be Punycode (xn--...).
records *arrayOne to 50 distinct record values.
type *stringRecord 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--...).
labelsobjectLabels for filtering later. Values: letters, digits, -, _ or . (63 characters at most).
ttlTTL in seconds, 60 or more. Omit or send null for the zone's default TTL.