Skip to main content
Glama
hcloud-mcp
by Xodus-CO

HCloud MCP

Hcloud MCP server

Standalone MCP (Model Context Protocol) server for the Hetzner Cloud API: servers, networking, load balancers, volumes, DNS, certificates, snapshots and Storage Boxes. It has 162 tools, and every tool tells the client whether it is read-only or destructive. Use it with any MCP client: Cursor, Claude Desktop, Claude Code, CLI tools, smithery.ai, or custom agents.


Requirements

  • Node.js 18+

  • A Hetzner Cloud API token. Generate one in the console (project → Security → API Tokens). Set it as HCLOUD_TOKEN in the environment or in your MCP client config. A token gives access to the whole project. If the agent only needs to look things up, create a Read token instead of Read & Write.

The server runs locally over stdio. Your token is only sent to Hetzner: api.hetzner.cloud for Cloud and DNS (DNS is part of the Cloud API), and api.hetzner.com for Storage Boxes. The legacy DNS Console API at dns.hetzner.com is not used.

Related MCP server: mcp-proxmox

Installation

npm install -g hcloud-mcp

Or use npx to run without a global install.

From source

git clone https://github.com/Xodus-CO/hcloud-mcp
cd hcloud-mcp
npm install
npm run build

Configuration

Add the server to your MCP client config. It uses MCP over stdio and requires HCLOUD_TOKEN in the environment.

Example — mcp.json (or your client’s equivalent) using the npm binary:

{
  "mcpServers": {
    "hetzner-cloud": {
      "command": "npx",
      "args": ["-y", "hcloud-mcp@latest"],
      "env": {
        "HCLOUD_TOKEN": "your_hetzner_cloud_api_token"
      }
    }
  }
}

If you installed from source, use an absolute path to run.js in args so the server runs from the project directory (e.g. when the MCP client’s CWD is different, as in dev containers):

"command": "node",
"args": ["/path/to/hcloud-mcp/run.js"]

Replace /path/to/hcloud-mcp with your actual project path (e.g. /home/<username>/hcloud-mcp).

Tools

The server exposes Hetzner Cloud API operations as MCP tools:

Area

Tools

Servers

list_servers, get_server, create_server, delete_server, update_server, change_server_type; power: power_on_server, power_off_server, reboot_server, shutdown_server, reset_server; attach_iso, detach_iso; attach_server_to_network, detach_server_from_network; rebuild_server; reverse DNS: change_dns_ptr (also Primary/Floating IPs, LBs)

Load Balancers

list_load_balancers, get_load_balancer, create_load_balancer, update_load_balancer, delete_load_balancer; add_load_balancer_target, remove_load_balancer_target; add_load_balancer_service, update_load_balancer_service, delete_load_balancer_service; list_load_balancer_types. create_load_balancer can set an existing Primary IP (public_net), a private network, services and targets in one call. update_load_balancer_service supports http.timeout_idle

Networks

list_networks, get_network, create_network, update_network, delete_network; add_network_subnet, delete_network_subnet; list_network_members

Volumes

list_volumes, get_volume, create_volume, update_volume, delete_volume; attach_volume, detach_volume

Firewalls

list_firewalls, get_firewall, create_firewall, update_firewall, delete_firewall; apply_firewall_to_resources, remove_firewall_from_resources, set_firewall_rules

Floating IPs

list_floating_ips, create_floating_ip, update_floating_ip, delete_floating_ip; assign_floating_ip, unassign_floating_ip

Primary IPs

list_primary_ips, create_primary_ip, get_primary_ip, update_primary_ip, delete_primary_ip; assign_primary_ip, unassign_primary_ip (server must be off)

SSH Keys

list_ssh_keys, create_ssh_key, update_ssh_key, delete_ssh_key

Placement Groups

list_placement_groups, create_placement_group, update_placement_group, delete_placement_group

DNS

list_zones, get_zone, create_zone, update_zone, delete_zone; export_zonefile, import_zonefile; change_zone_ttl, change_zone_primary_nameservers, change_zone_protection; list_rrsets, get_rrset, create_rrset, update_rrset, delete_rrset; set_rrset_records, add_rrset_records, remove_rrset_records, update_rrset_records, change_rrset_ttl, change_rrset_protection

Snapshots & backups

create_snapshot, list_snapshots, get_image, update_image, delete_image; enable_server_backups, disable_server_backups

Protection

change_protection (servers, volumes, floating/primary IPs, LBs, networks, images)

Rescue & console

enable_rescue, disable_rescue, reset_root_password, request_console

Metrics

get_server_metrics, get_load_balancer_metrics (with min/avg/max summary; last_minutes shortcut)

More actions

add_server_to_placement_group, remove_server_from_placement_group, change_server_alias_ips; attach_load_balancer_to_network, detach_load_balancer_from_network, change_load_balancer_algorithm, change_load_balancer_type, enable_load_balancer_public_interface, disable_load_balancer_public_interface; add_network_route, delete_network_route, change_network_ip_range; list_isos

Certificates

list_certificates, get_certificate, create_certificate (uploaded or managed Let's Encrypt), update_certificate, delete_certificate, retry_certificate

Storage Boxes

boxes: list_storage_boxes, get_storage_box, create_storage_box, update_storage_box, delete_storage_box, list_storage_box_folders, list_storage_box_types, get_storage_box_type; actions: change_storage_box_type, change_storage_box_protection, reset_storage_box_password, update_storage_box_access_settings, enable_storage_box_snapshot_plan, disable_storage_box_snapshot_plan, rollback_storage_box_snapshot, list_storage_box_actions, get_storage_box_action; subaccounts (*_storage_box_subaccount*) and snapshots (*_storage_box_snapshot*)

Metadata & actions

list_locations, list_images, list_server_types, list_load_balancer_types, get_pricing; list_actions, get_action (poll async operations)

Note: Subnets (not networks) are scoped to a network_zone (e.g., eu-central). Each Subnet has a network_zone; all Subnets within a Network share the same network_zone. Servers must be created in locations that match the Subnet's network_zone, so resources in the Network are constrained by the shared subnet network_zone.

Limiting tools (HCLOUD_TOOLSETS)

The server exposes 162 tools. Some MCP clients cap the total number of tools, or slow down with very many. Set HCLOUD_TOOLSETS to load only the groups you need. The core group is always loaded.

Toolset

Contents

core

Servers, networks, firewalls, volumes, LBs, IPs, SSH keys, placement groups, reverse DNS, metadata, and extra actions

dns

DNS zones and RRSets

images

Snapshots, backups, image management, change_protection

ops

Rescue, console, root password, metrics

certificates

TLS certificates

storage_boxes

Storage Boxes, subaccounts, snapshots

Example: "env": { "HCLOUD_TOKEN": "...", "HCLOUD_TOOLSETS": "dns,images" }. If you leave it unset, or set it to all, everything loads. core alone is 91 tools; core plus dns is 112.

Tool annotations

Every tool declares MCP tool annotations, which clients can use to decide when to ask for confirmation:

Annotation

Tools

Examples

readOnlyHint

46

Every list_*, get_* and export_* tool

destructiveHint

57

Deletes, rebuild_server, power_off_server, import_zonefile, rollback_storage_box_snapshot, disable_server_backups

idempotentHint

92

Changes that are safe to repeat, such as deletes, power_off_server, set_firewall_rules and set_rrset_records

All tools also set openWorldHint, because they call an external API. These are hints, not guarantees. Keep confirmation turned on for destructive tools.

Server instructions and agent skill

The server sends instructions to the client when it connects. Most MCP clients add them to the model's context. They cover using locations instead of datacenters, polling Actions, the order to detach resources before deleting them, firewall CIDR rules, and deprecation checks. See src/instructions.ts.

For deeper guidance, install the bundled skill hetzner-cloud (skills/hetzner-cloud/SKILL.md). It covers argument shapes, the required order for Primary IP swaps and teardowns, and fixes for common errors.

# Claude Code (personal skills)
mkdir -p ~/.claude/skills && cp -r skills/hetzner-cloud ~/.claude/skills/
# or from an npm install:
cp -r "$(npm root -g)/hcloud-mcp/skills/hetzner-cloud" ~/.claude/skills/

The skill is also included in the npm package.

API compatibility

The tools follow the Hetzner API as of November 2026 (Hetzner changelog):

  • Locations, not datacenters. list_datacenters is gone, because the endpoint returns 410 Gone. create_server and create_primary_ip take location.

  • Volumes: create_volume and attach_volume send assignee: {type: "server", id}, because Hetzner removes the old server field on 2027-10-27. Read assignee in volume responses.

  • List tools return every page, not just the first 25 items.

  • list_actions requires id, because Hetzner removed project-wide action listing. Use get_action to poll an Action.

  • Unassign before deleting. Floating IPs and Primary IPs must be unassigned before you delete them.

  • Errors come back as code (status): message, for example not_found (404): server not found.

Hetzner Robot (dedicated servers) is not covered yet; see #21.

Changelog

See GitHub Releases for full notes.

  • 0.4.1: README update only (no code changes).

  • 0.4.0: Removed the Hetzner SDK dependency; every tool now calls the API through one small fetch client. Every tool declares MCP annotations. create_load_balancer accepts an existing Primary IP, a network, services and targets.

  • 0.3.1: Volumes use assignee. CI added. (Not published to npm separately; included in 0.4.0.)

  • 0.3.0: Added DNS, Storage Boxes, certificates, snapshots and backups, rescue and console, metrics, and the remaining server, network and load balancer actions. Added HCLOUD_TOOLSETS.

  • 0.2.0: Updated for 2026 Hetzner API changes (above). Added server instructions and the hetzner-cloud skill.

Usage examples

With the MCP client connected, you can ask the agent to run tools using natural language.

Simple

  • List my servers in Nuremberg

  • Create the cheapest available server in fsn1 with Ubuntu 24.04

  • Create a small Ubuntu 24.04 server using my SSH key 'macbook'

  • Attach a 10GB volume to web-01

  • Set up a load balancer for my web servers

  • List load balancer types

  • Show current pricing for cpx31 servers

  • Get status of action 12345

  • Add an A record for www.example.com pointing to my web-01 server

  • Export the zone file for example.com

Complex

  • Create a private network 10.0.0.0/16 in eu-central, add a subnet, then create two servers in that zone (e.g. fsn1 and nbg1) and attach them

  • Create a firewall for SSH and HTTP, attach to my web servers, then create a load balancer and add those servers as targets

  • Create a Primary IP in ash, power off web-01, assign the IP, power back on

  • Create a 20GB volume and a small server in nbg1, attach the volume to the server, and show me the device path

  • Power off server 12345, change its type to cpx31, then power it back on

  • Add server web-02 as a target to my load balancer prod-lb

  • Create a Primary IP in fsn1 and a load balancer that uses it, then add web-01 and web-02 as targets on port 80

  • Snapshot web-01 before I rebuild it with Debian 12

  • Create a Storage Box subaccount for backups with its own password and SSH access only

  • Tear down: detach/delete volumes, delete LB and firewall, unassign/delete floating IPs, delete servers web-01 and web-02

Development

File

Purpose

src/index.ts

Entry point, stdio transport, HCLOUD_TOKEN check, HCLOUD_TOOLSETS

src/tool-helpers.ts

Shared helpers: annotation presets, pagination (listAll), error formatting

src/register-tools.ts

Core tools: servers, LBs, networks, volumes, firewalls, IPs, SSH keys, info

src/extra-tools.ts

Newer Cloud API endpoints (reverse DNS, rebuild, network members)

src/dns-tools.ts

DNS zone/RRSet tools

src/hcloud-api.ts

Minimal fetch client for the Hetzner APIs (no SDK dependency)

src/action-gap-tools.ts

Placement groups, alias IPs, LB network/type/algorithm/public interface, routes, ISOs

src/image-tools.ts

Snapshots, backups, image management, change_protection

src/server-ops-tools.ts

Rescue, console, root password, server/LB metrics

src/certificate-tools.ts

TLS certificates

src/storage-box-tools.ts

Storage Boxes (api.hetzner.com, same token)

src/instructions.ts

Server instructions sent to MCP clients at initialize

skills/hetzner-cloud/

Agent skill (SKILL.md) for driving this server safely

Scripts:

npm run build   # compile
npm run start   # run (requires HCLOUD_TOKEN)
npm run dev     # watch and recompile
npm run test:smoke # offline: server starts, 162 tools register with annotations, toolsets work (runs in CI)
npm run test:api   # read-only checks of the API client: pagination, error format (requires HCLOUD_TOKEN, run build first)
npm run test:mcp   # integration test: MCP client calls list_locations (requires HCLOUD_TOKEN)
npm run test:live:dns  # DNS create→teardown on a throwaway zone (free)
npm run test:live:images    # snapshots, backups, protection (costs cents)
npm run test:live:ops       # rescue, console, root password, metrics (costs cents)
npm run test:live:actions   # placement groups, alias IPs, LB/network actions, ISOs (costs cents)
npm run test:live:certs     # uploaded self-signed certificate lifecycle (free)
npm run test:live:storage   # Storage Box lifecycle on a new bx11 (fractions of a cent; never touches existing boxes)
npm run test:live  # full create→teardown cycle via MCP (COSTS a few cents; resources get a unique per-run hcloud-mcp-test label, auto-cleaned)

License

MIT

Available Tools

162 tools
add_load_balancer_serviceC
Idempotent

Add a service to a load balancer

Inputs: id (required), protocol (required), listen_port (required), proxyprotocol (required), +3 more.

add_load_balancer_targetC
Idempotent

Add a target to a load balancer

Inputs: id (required), type (required), ip, server, +2 more.

add_network_routeA
Idempotent

Add a route to a network: traffic for destination is sent to gateway. destination must be an RFC1918 range or 0.0.0.0/0 and must not overlap subnets or other routes; gateway must be an IP inside the network (not its first IP, not 172.31.1.1). Returns an Action

Inputs: id (required), gateway (required), destination (required).

add_network_subnetB

Add a subnet to a network (e.g. for private networking 10.0.0.0/16 in a zone)

Inputs: id (required), type (required), network_zone (required), ip_range, +1 more.

add_rrset_recordsB
Idempotent

Add records to an RRSet, creating the RRSet if it does not exist. Returns an Action

Inputs: name (required), type (required), zone (required), records (required), +1 more.

add_server_to_placement_groupA
Idempotent

Add a server to a placement group. The server must be powered off (422 server_not_stopped) and not already in a placement group (422 already_in_placement_group). Returns an Action

Inputs: id (required), placement_group (required).

apply_firewall_to_resourcesB
DestructiveIdempotent

Apply a firewall to servers or a label selector. Pass apply_to: [{ type: 'server', server: { id: 123 } }] or [{ type: 'label_selector', label_selector: { selector: 'env=web' } }].

Inputs: id (required), apply_to (required).

assign_floating_ipC
DestructiveIdempotent

Assign a floating IP to a server

Inputs: id (required), server (required).

assign_primary_ipB
Idempotent

Assign a Primary IP to a server (server must be powered off)

Inputs: id (required), server (required).

attach_isoC
Idempotent

Attach an ISO to a server

Inputs: id (required), iso (required).

attach_load_balancer_to_networkA
Idempotent

Attach a load balancer to a network (one network per load balancer). Optionally request a specific private ip, or ip_range to auto-assign from a specific subnet; ip must lie within ip_range if both are given. Returns an Action

Inputs: id (required), network (required), ip, ip_range.

attach_server_to_networkC
Idempotent

Attach a server to a network

Inputs: id (required), network (required), ip, alias_ips.

attach_volumeB
Idempotent

Attach a volume to a server (must be in the same location). Returns an Action

Inputs: id (required), server (required), automount.

change_dns_ptrA
Idempotent

Set or reset reverse DNS (PTR) for a public IP of a server, Primary IP, Floating IP, or load balancer. dns_ptr is always required: pass a hostname to set it, or null to reset it to the Hetzner default. Returns an Action

Inputs: id (required), ip (required), dns_ptr (required), resource (required).

change_load_balancer_algorithmB
Idempotent

Change how a load balancer distributes new requests across targets. Returns an Action

Inputs: id (required), type (required).

change_load_balancer_typeA
DestructiveIdempotent

Change a load balancer's type (max services / targets / connections; price changes accordingly — check get_pricing). Fails with invalid_load_balancer_type if the current config exceeds the new type's limits. Returns an Action

Inputs: id (required), load_balancer_type (required).

change_network_ip_rangeA
Idempotent

Change a network's IP range. Can only be extended by shortening the netmask with the same base address (10.0.0.0/16 -> 10.0.0.0/15), never shrunk. The network must have NO attached servers or load balancers (detach them first). Returns an Action

Inputs: id (required), ip_range (required).

change_protectionA
DestructiveIdempotent

Enable/disable protection on a server, volume, floating_ip, primary_ip, load_balancer, network or image (snapshot/backup). Protected resources cannot be deleted (servers: nor rebuilt). delete applies to all; rebuild only to servers, and the API currently requires a server's delete and rebuild to be equal, so passing just one for a server sets both. For DNS use change_zone_protection / change_rrset_protection; certificates have no protection. Returns an Action

Inputs: id (required), resource (required), delete, rebuild.

change_rrset_protectionA
DestructiveIdempotent

Enable/disable change protection on an RRSet (protected RRSets cannot be modified or deleted). Returns an Action

Inputs: name (required), type (required), zone (required), change (required).

change_rrset_ttlB
Idempotent

Change an RRSet's TTL. ttl is required: a number of seconds, or null to fall back to the zone default. Returns an Action

Inputs: ttl (required), name (required), type (required), zone (required).

change_server_alias_ipsA
DestructiveIdempotent

Set the alias IPs of a server on a network it is already attached to. REPLACES the existing alias list for that network: to add one, pass the current alias_ips (get_server private_net) plus the new IP; pass [] to remove all. Returns an Action

Inputs: id (required), network (required), alias_ips (required).

change_server_typeA
DestructiveIdempotent

Change the type of a server (scales resources). Server must be powered off.

Inputs: id (required), server_type (required), upgrade_disk.

change_storage_box_protectionA
DestructiveIdempotent

Enable/disable delete protection for a Storage Box. Returns an Action; poll get_storage_box_action until status is success

Inputs: id (required), delete (required).

change_storage_box_subaccount_home_directoryA
Idempotent

Change a subaccount's home directory (created if missing). Returns an Action; poll get_storage_box_action until status is success

Inputs: id (required), subaccount_id (required), home_directory (required).

change_storage_box_typeA
DestructiveIdempotent

Upgrade/downgrade a Storage Box to another type (changes billing). Cannot downgrade below current usage. Returns an Action; poll get_storage_box_action until status is success

Inputs: id (required), storage_box_type (required).

change_zone_primary_nameserversA
DestructiveIdempotent

Set the primary nameservers a secondary zone transfers from (replaces the list). Returns an Action

Inputs: zone (required), primary_nameservers (required).

change_zone_protectionC
DestructiveIdempotent

Enable/disable delete protection on a zone. Returns an Action

Inputs: zone (required), delete (required).

change_zone_ttlA
Idempotent

Change a zone's default TTL (applies to RRSets without their own TTL). Returns an Action

Inputs: ttl (required), zone (required).

create_certificateA

Create a TLS certificate. type "uploaded" (default): provide certificate (PEM, leaf first then chain) and private_key (PEM); supported keys RSA 2048/3072/4096 or ECDSA P-256/P-384; you must renew it yourself before not_valid_after. type "managed": provide domain_names; Hetzner requests and auto-renews a Let's Encrypt cert. Managed (Let's Encrypt) certificates are validated via DNS: every domain must be in a PRIMARY Hetzner DNS zone (create_zone) that is delegated to Hetzner's nameservers at the registrar, and any CAA record must allow Let's Encrypt. Typical failures: dns_zone_not_found, dns_zone_is_secondary_zone, could_not_verify_domain_delegated_to_zone, caa_record_does_not_allow_ca, ca_dns_validation_failed, Let's Encrypt rate limits. Returns {certificate, action}: action tracks managed issuance (poll get_action), null for uploaded. Certificates are referenced by ID in Load Balancer HTTPS services: http.certificates in add_load_balancer_service / update_load_balancer_service

Inputs: name (required), type, labels, certificate, +2 more.

create_firewallA

Create a new firewall. Rules: direction 'in'|'out', protocol 'tcp'|'udp'|'icmp'|'esp'|'gre'; use source_ips for in, destination_ips for out (CIDRs, e.g. 0.0.0.0/0); port optional for tcp/udp. Optionally apply_to servers or label_selector at creation.

Inputs: name (required), rules, labels, apply_to.

create_floating_ipD

Create a floating IP

Inputs: type (required), labels, server, description, +1 more.

create_load_balancerA

Create a load balancer in a location or network_zone. Optionally attach existing Primary IPs (public_net), join a private network, and define services/targets in one call. Returns load_balancer + Action. Primary IPs on an LB cannot be changed after creation and stay assigned for its lifetime

Inputs: name (required), load_balancer_type (required), labels, network, +7 more.

create_networkD

Create a new network

Inputs: name (required), ip_range (required), labels, routes, +1 more.

create_placement_groupD

Create a new placement group

Inputs: name (required), type (required), labels.

create_primary_ipB

Create a Primary IP (location-scoped; server must be off to assign). Provide location OR assignee_id (server).

Inputs: name (required), type (required), labels, location, +2 more.

create_rrsetA

Create an RRSet (all records sharing one name+type). Fails if it already exists; use add_rrset_records or set_rrset_records to change an existing one. Returns rrset + Action

Inputs: name (required), type (required), zone (required), records (required), +2 more.

create_serverD

Create a new server

Inputs: name (required), image (required), server_type (required), labels, +9 more.

create_snapshotA

Create an image from a server's disk. type snapshot (default) is independent of the server and survives its deletion; billed per GB-month. type backup needs backups enabled and is deleted with the server. Shut the server down first for a consistent disk. Returns the image (status creating) and an Action; the server is locked until it finishes

Inputs: id (required), type, labels, description.

create_ssh_keyC

Create a new SSH key (public_key is trimmed; the API rejects leading whitespace)

Inputs: name (required), public_key (required), labels.

create_storage_boxA

Create a Storage Box (billed hourly, capped at the monthly price; see list_storage_box_types for prices). Returns an Action; poll get_storage_box_action until status is success; provisioning can take several minutes and username/server stay null until status is active

Inputs: name (required), location (required), password (required), storage_box_type (required), +3 more.

create_storage_box_snapshotA

Create a manual snapshot (limited by the type's snapshot_limit). Returns {snapshot: {id, storage_box}, action}; Returns an Action; poll get_storage_box_action until status is success, then get_storage_box_snapshot for details

Inputs: id (required), labels, description.

create_storage_box_subaccountA

Create a subaccount: a separate login restricted to home_directory inside the box (shares the box's quota). Username is assigned by Hetzner (-subN). Returns {subaccount: {id, storage_box}, action}; Returns an Action; poll get_storage_box_action until status is success, then get_storage_box_subaccount for details

Inputs: id (required), password (required), home_directory (required), name, +3 more.

create_volumeA

Create a new volume (size in GB, min 10). Give location, or server to create it in the server's location and attach it right away. In responses, read assignee ({type, id}); the old server field goes away on 2027-10-27

Inputs: name (required), size (required), format, labels, +3 more.

create_zoneA

Create a DNS zone. mode "primary" = Hetzner hosts the records (optionally seed with rrsets or a zonefile); "secondary" = Hetzner pulls from primary_nameservers via AXFR. Returns zone + Action. After creating, delegate the domain to the zone's authoritative_nameservers at your registrar

Inputs: name (required), ttl, mode, labels, +3 more.

delete_certificateA
DestructiveIdempotent

Delete a certificate. Irreversible; confirm with the user first. Check used_by (get_certificate) first: load balancer HTTPS services referencing it should be switched to another certificate

Inputs: id (required).

delete_firewallB
DestructiveIdempotent

Delete a firewall (must not be in use)

Inputs: id (required).

delete_floating_ipA
DestructiveIdempotent

Delete a floating IP. Must be unassigned first (unassign_floating_ip), else fails with must_be_unassigned

Inputs: id (required).

delete_imageA
DestructiveIdempotent

Delete a snapshot or backup image (system/app images cannot be deleted). Fails if delete protection is on. Irreversible; confirm with the user first

Inputs: id (required).

delete_load_balancerA
DestructiveIdempotent

Delete a load balancer. Returns a delete_load_balancer Action; poll get_action until it finishes

Inputs: id (required).

delete_load_balancer_serviceC
DestructiveIdempotent

Delete a service from a load balancer

Inputs: id (required), listen_port (required).

delete_networkC
DestructiveIdempotent

Delete a network

Inputs: id (required).

delete_network_routeA
DestructiveIdempotent

Delete a route from a network. destination and gateway must match the existing route exactly (see get_network routes). Returns an Action

Inputs: id (required), gateway (required), destination (required).

delete_network_subnetA
DestructiveIdempotent

Delete a subnet from a network (detach servers from it first)

Inputs: id (required), ip_range (required).

delete_placement_groupC
DestructiveIdempotent

Delete a placement group

Inputs: id (required).

delete_primary_ipA
DestructiveIdempotent

Delete a Primary IP. Must be unassigned first (unassign_primary_ip, server powered off), else fails with must_be_unassigned

Inputs: id (required).

delete_rrsetB
DestructiveIdempotent

Delete an RRSet and all its records. Returns an Action

Inputs: name (required), type (required), zone (required).

delete_serverD
DestructiveIdempotent

Delete a server

Inputs: id (required).

delete_ssh_keyC
DestructiveIdempotent

Delete an SSH key

Inputs: id (required).

delete_storage_boxA
DestructiveIdempotent

Delete a Storage Box and ALL its data, subaccounts and snapshots. Irreversible; confirm with the user first. Fails if delete protection is enabled. Returns an Action; poll get_storage_box_action until status is success

Inputs: id (required).

delete_storage_box_snapshotA
DestructiveIdempotent

Delete a snapshot. Irreversible; confirm with the user first. Returns an Action; poll get_storage_box_action until status is success

Inputs: id (required), snapshot_id (required).

delete_storage_box_subaccountA
DestructiveIdempotent

Delete a subaccount (its login stops working; files in its home directory remain in the main account). Irreversible; confirm with the user first. Returns an Action; poll get_storage_box_action until status is success

Inputs: id (required), subaccount_id (required).

delete_volumeA
DestructiveIdempotent

Delete a volume (must be detached; all data destroyed)

Inputs: id (required).

delete_zoneA
DestructiveIdempotent

Delete a DNS zone and ALL its records. Irreversible; confirm with the user first. Returns an Action

Inputs: zone (required).

detach_isoC
DestructiveIdempotent

Detach an ISO from a server

Inputs: id (required).

detach_load_balancer_from_networkA
DestructiveIdempotent

Detach a load balancer from a network. Re-enable the public interface first if it was disabled, or the load balancer becomes unreachable. Returns an Action

Inputs: id (required), network (required).

detach_server_from_networkC
DestructiveIdempotent

Detach a server from a network

Inputs: id (required), network (required).

detach_volumeC
DestructiveIdempotent

Detach a volume

Inputs: id (required).

disable_load_balancer_public_interfaceA
DestructiveIdempotent

Disable a load balancer's public interface (private-network only). Requires the load balancer to be attached to a network (load_balancer_not_attached_to_network) and all targets to use_private_ip (targets_without_use_private_ip). Returns an Action

Inputs: id (required).

disable_rescueA
Idempotent

Disable the Hetzner Rescue System so the server boots from its own disk next time. Does NOT reboot the server. Usually not needed: rescue disables itself after the first boot into it or after 60 minutes unused. Returns an Action

Inputs: id (required).

disable_server_backupsA
DestructiveIdempotent

Disable automatic backups for a server. IMMEDIATELY DELETES ALL EXISTING BACKUPS of the server; convert any you need to snapshots first (update_image type snapshot). Confirm with the user first. Returns an Action

Inputs: id (required).

disable_storage_box_snapshot_planA
Idempotent

Disable the automatic snapshot plan. Existing automatic snapshots are kept (delete them manually). Returns an Action; poll get_storage_box_action until status is success

Inputs: id (required).

enable_load_balancer_public_interfaceA
Idempotent

Enable a load balancer's public interface so it is reachable from the internet via its public IPs. Returns an Action

Inputs: id (required).

enable_rescueA

Enable the Hetzner Rescue System (minimal Linux for repair/reinstall) on a server. Does NOT reboot: rescue only takes effect at the next boot, so follow with reset_server (or reboot) once the Action succeeds. Rescue is disabled automatically when the server first boots into it, or if it is not used within 60 minutes. Returns an Action and root_password for the rescue system (valid once the Action succeeds; treat as a secret). Pass ssh_keys to log in by key instead

Inputs: id (required), type, ssh_keys.

enable_server_backupsA
Idempotent

Enable automatic daily backups for a server: +20% of the server price, 7 rolling backup slots (list them with list_snapshots type ["backup"] and bound_to). Returns an Action

Inputs: id (required).

enable_storage_box_snapshot_planA
DestructiveIdempotent

Enable (or replace) the automatic snapshot plan. Runs at hour:minute UTC, optionally only on day_of_week (1=Mon..7=Sun) and/or day_of_month; null/omitted = every day. Oldest automatic snapshots beyond max_snapshots are deleted. Returns an Action; poll get_storage_box_action until status is success

Inputs: id (required), hour (required), minute (required), max_snapshots (required), +2 more.

export_zonefileA
Read-only

Export a primary zone as a BIND zone file (good for backups or reviewing all records at once)

Inputs: zone (required).

get_actionA
Read-only

Get a single action by ID (e.g. to check progress or status after create/delete)

Inputs: id (required).

get_certificateA
Read-only

Get a TLS certificate: PEM chain (public), domain_names, validity window, fingerprint, used_by, and for managed certs status.issuance / status.renewal / status.error

Inputs: id (required).

get_firewallC
Read-only

Get a single firewall by ID

Inputs: id (required).

get_imageA
Read-only

Get an image by ID (type, status, image_size/disk_size in GB, created_from, bound_to, protection, labels)

Inputs: id (required).

get_load_balancerB
Read-only

Get a single load balancer by ID

Inputs: id (required).

get_load_balancer_metricsA
Read-only

Get load balancer metrics (last 30 days only). Output starts with a per-series summary {points,min,avg,max,last}, then the raw time_series unless include_values=false. Series: open_connections (number), connections_per_second, requests_per_second, bandwidth → bandwidth.in/bandwidth.out (bytes/s). Time range: pass start+end (ISO-8601), or omit both and use last_minutes (default 60)

Inputs: id (required), type (required), end, step, +3 more.

get_networkC
Read-only

Get a single network by ID

Inputs: id (required).

get_pricingC
Read-only

Get all prices

Inputs: no named parameters.

get_primary_ipB
Read-only

Get a single Primary IP by ID

Inputs: id (required).

get_rrsetC
Read-only

Get one RRSet by name and type

Inputs: name (required), type (required), zone (required).

get_serverB
Read-only

Get a single server by ID

Inputs: id (required).

get_server_metricsA
Read-only

Get server metrics (last 30 days only). Output starts with a per-series summary {points,min,avg,max,last}, then the raw time_series unless include_values=false. Series: cpu → cpu (percent, per vCPU: 100 = one full vCPU, so divide by vCPU count for overall usage); disk → disk.0.iops.read/write (iop/s), disk.0.bandwidth.read/write (bytes/s); network → network.0.pps.in/out (packets/s), network.0.bandwidth.in/out (bytes/s) on the public interface. Time range: pass start+end (ISO-8601), or omit both and use last_minutes (default 60)

Inputs: id (required), type (required), end, step, +3 more.

get_storage_boxA
Read-only

Get a Storage Box: status (initializing/active/locked), type, location, username, server FQDN, access settings, snapshot plan, protection, disk usage stats. username/server/system are null while initializing

Inputs: id (required).

get_storage_box_actionB
Read-only

Get a Storage Box Action by ID (create/delete/reset_password/snapshot/subaccount actions). This is the documented endpoint for Storage Box Actions (get_action currently also resolves them)

Inputs: id (required).

get_storage_box_snapshotB
Read-only

Get a Storage Box snapshot (name, description, size stats, is_automatic)

Inputs: id (required), snapshot_id (required).

get_storage_box_subaccountC
Read-only

Get a Storage Box subaccount

Inputs: id (required), subaccount_id (required).

get_storage_box_typeC
Read-only

Get a Storage Box Type by ID

Inputs: id (required).

get_volumeB
Read-only

Get a single volume by ID

Inputs: id (required).

get_zoneA
Read-only

Get a DNS zone (status, nameservers it is authoritative on, delegation status, record count)

Inputs: zone (required).

import_zonefileA
DestructiveIdempotent

Replace ALL records of a primary zone with a BIND zone file. Destructive for records not in the file; export_zonefile first as a backup. Returns an Action

Inputs: zone (required), zonefile (required).

list_actionsB
Read-only

Get an action by ID with optional status filter. Hetzner no longer supports listing all actions in a project, so id is required. Prefer get_action

Inputs: id (required), page, sort, status, +1 more.

list_certificatesA
Read-only

List TLS certificates (all pages). Optional filters: name, label_selector, type. Each includes domain_names, not_valid_after, fingerprint, managed status and used_by (load balancers using it)

Inputs: name, type, label_selector.

list_firewallsC
Read-only

List all firewalls

Inputs: no named parameters.

list_floating_ipsB
Read-only

List all floating IPs

Inputs: no named parameters.

list_imagesB
Read-only

List all images (check each image's deprecation field; deprecated images can stop being usable for new servers)

Inputs: no named parameters.

list_isosA
Read-only

List ISOs available to attach_iso (public and private). name is an exact match. architecture filters x86/arm; include_architecture_wildcard (requires architecture) also includes ISOs with no architecture. Check deprecation before use. All pages

Inputs: name, architecture, include_architecture_wildcard.

list_load_balancersB
Read-only

List all load balancers

Inputs: no named parameters.

list_load_balancer_typesA
Read-only

List all load balancer types (for create_load_balancer load_balancer_type; check deprecation)

Inputs: no named parameters.

list_locationsC
Read-only

List all locations

Inputs: no named parameters.

list_network_membersA
Read-only

List resources attached to a network (servers and load balancers) with their private IP, alias IPs, subnet and attachment status. All pages

Inputs: id (required), type, status, subnet.

list_networksC
Read-only

List all networks

Inputs: no named parameters.

list_placement_groupsC
Read-only

List all placement groups

Inputs: no named parameters.

list_primary_ipsA
Read-only

List all Primary IPs (static IPs bound to a location, assignable to one server)

Inputs: no named parameters.

list_rrsetsA
Read-only

List record sets (RRSets) in a zone (all pages). Filter by name and/or type

Inputs: zone (required), name, type, label_selector.

list_serversC
Read-only

List all servers

Inputs: no named parameters.

list_server_typesA
Read-only

List all server types. Per-location availability is in locations[]: available, recommended, deprecation (top-level deprecated was removed)

Inputs: no named parameters.

list_snapshotsA
Read-only

List images with filters (list_images has none): by default only snapshot and backup images. Filter by label_selector, bound_to (server IDs, backups only), status, architecture, name. All pages

Inputs: name, sort, type, status, +4 more.

list_ssh_keysC
Read-only

List all SSH keys

Inputs: no named parameters.

list_storage_box_actionsA
Read-only

List Actions (all pages). With storage_box_id: actions for that box. Without: actions across all Storage Boxes (optionally filtered by id)

Inputs: id, sort, status, storage_box_id.

list_storage_boxesB
Read-only

List Storage Boxes (all pages). Optional filters by exact name and label selector

Inputs: name, sort, label_selector.

list_storage_box_foldersA
Read-only

List folders in a Storage Box directory (not files). Box must be active

Inputs: id (required), path.

list_storage_box_snapshotsB
Read-only

List snapshots of a Storage Box (manual and automatic; is_automatic filters)

Inputs: id (required), name, sort, is_automatic, +1 more.

list_storage_box_subaccountsB
Read-only

List subaccounts of a Storage Box (username, home_directory, access settings, server FQDN)

Inputs: id (required), name, sort, username, +1 more.

list_storage_box_typesA
Read-only

List Storage Box Types (bx11, bx21, ...) with size, snapshot/subaccount limits and per-location hourly/monthly prices and setup fees

Inputs: name.

list_volumesB
Read-only

List all volumes

Inputs: no named parameters.

list_zonesB
Read-only

List DNS zones (all pages). Optional filters by name, mode, label selector

Inputs: mode, name, label_selector.

power_off_serverC
DestructiveIdempotent

Power off a server (hard)

Inputs: id (required).

power_on_serverC
Idempotent

Power on a server

Inputs: id (required).

reboot_serverC
Destructive

Reboot a server (soft)

Inputs: id (required).

rebuild_serverA
Destructive

Reinstall a server from an image, WIPING ALL DATA on its disk (attached volumes are kept). The server keeps its ID and IPs. Optional user_data (cloud-init) overrides the original. Returns an Action and, for images that use one, a new root_password. Irreversible; confirm with the user first

Inputs: id (required), image (required), user_data.

remove_firewall_from_resourcesB
DestructiveIdempotent

Remove a firewall from servers. Pass remove_from: [{ type: 'server', server: { id: 123 } }].

Inputs: id (required), remove_from (required).

remove_load_balancer_targetC
DestructiveIdempotent

Remove a target from a load balancer

Inputs: id (required), type (required), ip, server, +1 more.

remove_rrset_recordsA
DestructiveIdempotent

Remove specific records (matched by value) from an RRSet. Removing the last record deletes the RRSet. Returns an Action

Inputs: name (required), type (required), zone (required), records (required).

remove_server_from_placement_groupB
DestructiveIdempotent

Remove a server from its placement group. Returns an Action

Inputs: id (required).

request_consoleA

Request VNC-over-websocket console credentials (keyboard, monitor, mouse) for a server. Returns wss_url (contains a token) and a VNC password, plus an Action. The URL must be used to connect within 1 minute; request a new one after that. An already-open connection is not cut off by that timeout. Treat both values as secrets

Inputs: id (required).

reset_root_passwordA
Destructive

Generate and set a new root password on a server. Only works on Linux servers that are running (status 'running') AND have the qemu guest agent running; stock images may not ship it, in which case the API accepts the request but the Action ends in error. Returns an Action plus root_password, which is only in effect once the Action succeeds (poll get_action; treat it as a secret). Fallback if it fails: enable_rescue + reset_server, then change the password from the rescue system

Inputs: id (required).

reset_serverB
Destructive

Reset a server (hard)

Inputs: id (required).

reset_storage_box_passwordA
DestructiveIdempotent

Set a new password for the Storage Box main account (existing clients using the old password lose access). Returns an Action; poll get_storage_box_action until status is success

Inputs: id (required), password (required).

reset_storage_box_subaccount_passwordA
DestructiveIdempotent

Set a new password for a subaccount. Returns an Action; poll get_storage_box_action until status is success

Inputs: id (required), password (required), subaccount_id (required).

retry_certificateA

Retry a failed issuance or renewal of a managed certificate (only when status.issuance or status.renewal is "failed"; see status.error for the cause and fix it first). Managed (Let's Encrypt) certificates are validated via DNS: every domain must be in a PRIMARY Hetzner DNS zone (create_zone) that is delegated to Hetzner's nameservers at the registrar, and any CAA record must allow Let's Encrypt. Typical failures: dns_zone_not_found, dns_zone_is_secondary_zone, could_not_verify_domain_delegated_to_zone, caa_record_does_not_allow_ca, ca_dns_validation_failed, Let's Encrypt rate limits. Returns an Action (poll get_action)

Inputs: id (required).

rollback_storage_box_snapshotA
DestructiveIdempotent

Roll a Storage Box back to a snapshot. Deletes all newer snapshots and ALL data written since the snapshot. Irreversible; confirm with the user first. Returns an Action; poll get_storage_box_action until status is success

Inputs: id (required), snapshot (required).

set_firewall_rulesA
DestructiveIdempotent

Set rules on an existing firewall (overwrites all rules). Same rule format as create_firewall.

Inputs: id (required), rules (required).

set_rrset_recordsB
DestructiveIdempotent

Replace all records of an RRSet with the given list. Returns an Action

Inputs: name (required), type (required), zone (required), records (required).

shutdown_serverC
DestructiveIdempotent

Shutdown a server (soft)

Inputs: id (required).

unassign_floating_ipC
DestructiveIdempotent

Unassign a floating IP

Inputs: id (required).

unassign_primary_ipA
DestructiveIdempotent

Unassign a Primary IP from its server (server must be powered off)

Inputs: id (required).

update_certificateA
Idempotent

Rename a certificate and/or replace its labels (labels overwrite the whole set). The certificate content cannot be changed; to rotate an uploaded cert, create a new one, point the load balancer service at it, then delete the old one

Inputs: id (required), name, labels.

update_firewallC
Idempotent

Update a firewall (name, labels)

Inputs: id (required), name, labels.

update_floating_ipC
Idempotent

Update a floating IP (description, labels)

Inputs: id (required), labels, description.

update_imageA
Idempotent

Update a snapshot or backup image: description, labels (REPLACES the whole label set), or type "snapshot" to convert a backup into a snapshot (it then survives server deletion and disabling backups). System/app images cannot be updated

Inputs: id (required), type, labels, description.

update_load_balancerC
Idempotent

Update a load balancer (name, labels)

Inputs: id (required), name, labels.

update_load_balancer_serviceC
Idempotent

Update a load balancer service (listen_port identifies the service)

Inputs: id (required), listen_port (required), http, protocol, +3 more.

update_networkC
Idempotent

Update a network (name, labels)

Inputs: id (required), name, labels.

update_placement_groupC
Idempotent

Update a placement group (name, labels)

Inputs: id (required), name, labels.

update_primary_ipC
Idempotent

Update a Primary IP (name, labels)

Inputs: id (required), name, labels.

update_rrsetA
Idempotent

Update an RRSet's labels (replaces all labels). To change records use set/add/remove_rrset_records

Inputs: name (required), type (required), zone (required), labels (required).

update_rrset_recordsA
Idempotent

Update the comments of existing records (matched by value). Cannot change values; use set_rrset_records for that

Inputs: name (required), type (required), zone (required), records (required).

update_serverC
Idempotent

Update a server (name, labels)

Inputs: id (required), name, labels.

update_ssh_keyC
Idempotent

Update an SSH key (name, labels)

Inputs: id (required), name, labels.

update_storage_boxB
Idempotent

Update a Storage Box's name and/or labels (labels replace the whole set)

Inputs: id (required), name, labels.

update_storage_box_access_settingsA
DestructiveIdempotent

Update the main account's access settings (partial: omitted fields are unchanged). Returns an Action; poll get_storage_box_action until status is success

Inputs: id (required), ssh_enabled, zfs_enabled, samba_enabled, +2 more.

update_storage_box_snapshotA
Idempotent

Update a snapshot's description and/or labels (labels replace the whole set)

Inputs: id (required), snapshot_id (required), labels, description.

update_storage_box_subaccountA
Idempotent

Update a subaccount's name, description and/or labels (labels replace the whole set). Use change_storage_box_subaccount_home_directory / update_storage_box_subaccount_access_settings for those

Inputs: id (required), subaccount_id (required), name, labels, +1 more.

update_storage_box_subaccount_access_settingsA
DestructiveIdempotent

Update a subaccount's access settings incl. readonly (partial: omitted fields are unchanged). Returns an Action; poll get_storage_box_action until status is success

Inputs: id (required), subaccount_id (required), readonly, ssh_enabled, +3 more.

update_volumeC
Idempotent

Update a volume (name, labels)

Inputs: id (required), name, labels.

update_zoneA
Idempotent

Update a zone's labels (replaces all labels)

Inputs: zone (required), labels (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 162 tools

    Disambiguation4/5

    Most tools map cleanly to a distinct resource+action (attach/detach volume, add/remove rrset records, etc.), so an agent can usually pick correctly. A few boundaries blur: get_action vs list_actions vs get_storage_box_action vs list_storage_box_actions, and list_images vs list_snapshots, require reading descriptions to choose.

    Naming Consistency4/5

    The dominant pattern is verb_noun (list_servers, create_network, delete_rrset, change_zone_ttl) and it is applied broadly and predictably. Minor deviations exist, e.g. add_server_to_placement_group vs remove_server_from_placement_group alongside add_load_balancer_target, and some extra-long storage-box names, but nothing chaotic.

    Tool Count1/5

    162 tools is far beyond what an agent can reasonably navigate in a single surface, even for a large cloud provider. Splitting into per-domain servers (compute, networking, DNS, load balancing, storage box) would be far more manageable.

    Completeness4/5

    Coverage is unusually thorough: lifecycle, actions, metrics, protection, rescue, DNS, certificates, and Storage Box subaccounts/snapshots are all represented. Minor gaps remain, e.g. no get_floating_ip, get_ssh_key, or get_placement_group, and file-level storage box listing is absent (folders only).

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol server that allows language models to manage Hetzner Cloud resources through structured functions, including servers, volumes, firewalls, and SSH keys.
      30
      153
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for managing Proxmox VE clusters — provision VMs and containers, manage snapshots and backups, execute commands, browse storage, and monitor resources through natural language
      37
      204 PyPI
      19
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Model Context Protocol server for full Hetzner Cloud + Storage API automation. Exposes all official Hetzner operations as MCP tools so AI agents can manage servers, networking, load balancers, firewalls, volumes, DNS zones, and storage boxes from one server.
      1
      MIT