hcloud-mcp
An MCP server that exposes Hetzner Cloud API operations as tools for managing cloud infrastructure from MCP clients.
Manage servers: list, create, update, delete, change type, power on/off, reboot, shutdown, reset, attach/detach ISOs, attach/detach networks.
Manage load balancers: list/create/update/delete, add/remove targets, add/delete services, list load balancer types.
Manage networks and subnets: list/create/update/delete networks, add/delete subnets.
Manage volumes: list/create/update/delete, attach/detach.
Manage firewalls, floating IPs, primary IPs, SSH keys, and placement groups.
Query metadata and pricing: locations, images, server types, load balancer types, datacenters, pricing.
Inspect and poll async actions with list_actions/get_action.
Note: the README documents additional toolsets (DNS, images/snapshots/backups, rescue/console/metrics, certificates, storage boxes), but the provided schema covers only the core toolset; it also still includes list_datacenters despite the README saying that endpoint was removed.
Provides comprehensive management of Hetzner Cloud resources, including tools for creating and controlling servers, load balancers, networks, volumes, firewalls, floating IPs, and SSH keys.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hcloud-mcp list all my servers and their current status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
HCloud MCP
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.
Repository: github.com/Xodus-CO/hcloud-mcp
Hetzner Cloud: Get started — new signups get €20 credit.
Requirements
Node.js 18+
A Hetzner Cloud API token. Generate one in the console (project → Security → API Tokens). Set it as
HCLOUD_TOKENin 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
From npm (recommended)
npm install -g hcloud-mcpOr 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 buildConfiguration
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 |
|
Load Balancers |
|
Networks |
|
Volumes |
|
Firewalls |
|
Floating IPs |
|
Primary IPs |
|
SSH Keys |
|
Placement Groups |
|
DNS |
|
Snapshots & backups |
|
Protection |
|
Rescue & console |
|
Metrics |
|
More actions |
|
Certificates |
|
Storage Boxes | boxes: |
Metadata & actions |
|
Note: Subnets (not networks) are scoped to a
network_zone(e.g.,eu-central). Each Subnet has anetwork_zone; all Subnets within a Network share the samenetwork_zone. Servers must be created in locations that match the Subnet'snetwork_zone, so resources in the Network are constrained by the shared subnetnetwork_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 |
| Servers, networks, firewalls, volumes, LBs, IPs, SSH keys, placement groups, reverse DNS, metadata, and extra actions |
| DNS zones and RRSets |
| Snapshots, backups, image management, |
| Rescue, console, root password, metrics |
| TLS certificates |
| 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 |
| 46 | Every |
| 57 | Deletes, |
| 92 | Changes that are safe to repeat, such as deletes, |
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_datacentersis gone, because the endpoint returns 410 Gone.create_serverandcreate_primary_iptakelocation.Volumes:
create_volumeandattach_volumesendassignee: {type: "server", id}, because Hetzner removes the oldserverfield on 2027-10-27. Readassigneein volume responses.List tools return every page, not just the first 25 items.
list_actionsrequiresid, because Hetzner removed project-wide action listing. Useget_actionto 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 examplenot_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_balanceraccepts 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-cloudskill.
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 |
| Entry point, stdio transport, |
| Shared helpers: annotation presets, pagination ( |
| Core tools: servers, LBs, networks, volumes, firewalls, IPs, SSH keys, info |
| Newer Cloud API endpoints (reverse DNS, rebuild, network members) |
| DNS zone/RRSet tools |
| Minimal fetch client for the Hetzner APIs (no SDK dependency) |
| Placement groups, alias IPs, LB network/type/algorithm/public interface, routes, ISOs |
| Snapshots, backups, image management, |
| Rescue, console, root password, server/LB metrics |
| TLS certificates |
| Storage Boxes (api.hetzner.com, same token) |
| Server instructions sent to MCP clients at initialize |
| 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 toolsadd_load_balancer_serviceCIdempotent
Add a service to a load balancer
Inputs: id (required), protocol (required), listen_port (required), proxyprotocol (required), +3 more.
add_load_balancer_targetCIdempotent
Add a target to a load balancer
Inputs: id (required), type (required), ip, server, +2 more.
add_network_routeAIdempotent
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_recordsBIdempotent
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_groupAIdempotent
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_resourcesBDestructiveIdempotent
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_ipCDestructiveIdempotent
Assign a floating IP to a server
Inputs: id (required), server (required).
assign_primary_ipBIdempotent
Assign a Primary IP to a server (server must be powered off)
Inputs: id (required), server (required).
attach_isoCIdempotent
Attach an ISO to a server
Inputs: id (required), iso (required).
attach_load_balancer_to_networkAIdempotent
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_networkCIdempotent
Attach a server to a network
Inputs: id (required), network (required), ip, alias_ips.
attach_volumeBIdempotent
Attach a volume to a server (must be in the same location). Returns an Action
Inputs: id (required), server (required), automount.
change_dns_ptrAIdempotent
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_algorithmBIdempotent
Change how a load balancer distributes new requests across targets. Returns an Action
Inputs: id (required), type (required).
change_load_balancer_typeADestructiveIdempotent
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_rangeAIdempotent
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_protectionADestructiveIdempotent
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_protectionADestructiveIdempotent
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_ttlBIdempotent
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_ipsADestructiveIdempotent
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_typeADestructiveIdempotent
Change the type of a server (scales resources). Server must be powered off.
Inputs: id (required), server_type (required), upgrade_disk.
change_storage_box_protectionADestructiveIdempotent
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_directoryAIdempotent
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_typeADestructiveIdempotent
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_nameserversADestructiveIdempotent
Set the primary nameservers a secondary zone transfers from (replaces the list). Returns an Action
Inputs: zone (required), primary_nameservers (required).
change_zone_protectionCDestructiveIdempotent
Enable/disable delete protection on a zone. Returns an Action
Inputs: zone (required), delete (required).
change_zone_ttlAIdempotent
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_certificateADestructiveIdempotent
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_firewallBDestructiveIdempotent
Delete a firewall (must not be in use)
Inputs: id (required).
delete_floating_ipADestructiveIdempotent
Delete a floating IP. Must be unassigned first (unassign_floating_ip), else fails with must_be_unassigned
Inputs: id (required).
delete_imageADestructiveIdempotent
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_balancerADestructiveIdempotent
Delete a load balancer. Returns a delete_load_balancer Action; poll get_action until it finishes
Inputs: id (required).
delete_load_balancer_serviceCDestructiveIdempotent
Delete a service from a load balancer
Inputs: id (required), listen_port (required).
delete_networkCDestructiveIdempotent
Delete a network
Inputs: id (required).
delete_network_routeADestructiveIdempotent
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_subnetADestructiveIdempotent
Delete a subnet from a network (detach servers from it first)
Inputs: id (required), ip_range (required).
delete_placement_groupCDestructiveIdempotent
Delete a placement group
Inputs: id (required).
delete_primary_ipADestructiveIdempotent
Delete a Primary IP. Must be unassigned first (unassign_primary_ip, server powered off), else fails with must_be_unassigned
Inputs: id (required).
delete_rrsetBDestructiveIdempotent
Delete an RRSet and all its records. Returns an Action
Inputs: name (required), type (required), zone (required).
delete_serverDDestructiveIdempotent
Delete a server
Inputs: id (required).
delete_ssh_keyCDestructiveIdempotent
Delete an SSH key
Inputs: id (required).
delete_storage_boxADestructiveIdempotent
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_snapshotADestructiveIdempotent
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_subaccountADestructiveIdempotent
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_volumeADestructiveIdempotent
Delete a volume (must be detached; all data destroyed)
Inputs: id (required).
delete_zoneADestructiveIdempotent
Delete a DNS zone and ALL its records. Irreversible; confirm with the user first. Returns an Action
Inputs: zone (required).
detach_isoCDestructiveIdempotent
Detach an ISO from a server
Inputs: id (required).
detach_load_balancer_from_networkADestructiveIdempotent
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_networkCDestructiveIdempotent
Detach a server from a network
Inputs: id (required), network (required).
detach_volumeCDestructiveIdempotent
Detach a volume
Inputs: id (required).
disable_load_balancer_public_interfaceADestructiveIdempotent
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_rescueAIdempotent
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_backupsADestructiveIdempotent
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_planAIdempotent
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_interfaceAIdempotent
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_backupsAIdempotent
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_planADestructiveIdempotent
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_zonefileARead-only
Export a primary zone as a BIND zone file (good for backups or reviewing all records at once)
Inputs: zone (required).
get_actionARead-only
Get a single action by ID (e.g. to check progress or status after create/delete)
Inputs: id (required).
get_certificateARead-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_firewallCRead-only
Get a single firewall by ID
Inputs: id (required).
get_imageARead-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_balancerBRead-only
Get a single load balancer by ID
Inputs: id (required).
get_load_balancer_metricsARead-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_networkCRead-only
Get a single network by ID
Inputs: id (required).
get_pricingCRead-only
Get all prices
Inputs: no named parameters.
get_primary_ipBRead-only
Get a single Primary IP by ID
Inputs: id (required).
get_rrsetCRead-only
Get one RRSet by name and type
Inputs: name (required), type (required), zone (required).
get_serverBRead-only
Get a single server by ID
Inputs: id (required).
get_server_metricsARead-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_boxARead-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_actionBRead-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_snapshotBRead-only
Get a Storage Box snapshot (name, description, size stats, is_automatic)
Inputs: id (required), snapshot_id (required).
get_storage_box_subaccountCRead-only
Get a Storage Box subaccount
Inputs: id (required), subaccount_id (required).
get_storage_box_typeCRead-only
Get a Storage Box Type by ID
Inputs: id (required).
get_volumeBRead-only
Get a single volume by ID
Inputs: id (required).
get_zoneARead-only
Get a DNS zone (status, nameservers it is authoritative on, delegation status, record count)
Inputs: zone (required).
import_zonefileADestructiveIdempotent
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_actionsBRead-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_certificatesARead-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_firewallsCRead-only
List all firewalls
Inputs: no named parameters.
list_floating_ipsBRead-only
List all floating IPs
Inputs: no named parameters.
list_imagesBRead-only
List all images (check each image's deprecation field; deprecated images can stop being usable for new servers)
Inputs: no named parameters.
list_isosARead-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_balancersBRead-only
List all load balancers
Inputs: no named parameters.
list_load_balancer_typesARead-only
List all load balancer types (for create_load_balancer load_balancer_type; check deprecation)
Inputs: no named parameters.
list_locationsCRead-only
List all locations
Inputs: no named parameters.
list_network_membersARead-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_networksCRead-only
List all networks
Inputs: no named parameters.
list_placement_groupsCRead-only
List all placement groups
Inputs: no named parameters.
list_primary_ipsARead-only
List all Primary IPs (static IPs bound to a location, assignable to one server)
Inputs: no named parameters.
list_rrsetsARead-only
List record sets (RRSets) in a zone (all pages). Filter by name and/or type
Inputs: zone (required), name, type, label_selector.
list_serversCRead-only
List all servers
Inputs: no named parameters.
list_server_typesARead-only
List all server types. Per-location availability is in locations[]: available, recommended, deprecation (top-level deprecated was removed)
Inputs: no named parameters.
list_snapshotsARead-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_keysCRead-only
List all SSH keys
Inputs: no named parameters.
list_storage_box_actionsARead-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_boxesBRead-only
List Storage Boxes (all pages). Optional filters by exact name and label selector
Inputs: name, sort, label_selector.
list_storage_box_foldersARead-only
List folders in a Storage Box directory (not files). Box must be active
Inputs: id (required), path.
list_storage_box_snapshotsBRead-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_subaccountsBRead-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_typesARead-only
List Storage Box Types (bx11, bx21, ...) with size, snapshot/subaccount limits and per-location hourly/monthly prices and setup fees
Inputs: name.
list_volumesBRead-only
List all volumes
Inputs: no named parameters.
list_zonesBRead-only
List DNS zones (all pages). Optional filters by name, mode, label selector
Inputs: mode, name, label_selector.
power_off_serverCDestructiveIdempotent
Power off a server (hard)
Inputs: id (required).
power_on_serverCIdempotent
Power on a server
Inputs: id (required).
reboot_serverCDestructive
Reboot a server (soft)
Inputs: id (required).
rebuild_serverADestructive
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_resourcesBDestructiveIdempotent
Remove a firewall from servers. Pass remove_from: [{ type: 'server', server: { id: 123 } }].
Inputs: id (required), remove_from (required).
remove_load_balancer_targetCDestructiveIdempotent
Remove a target from a load balancer
Inputs: id (required), type (required), ip, server, +1 more.
remove_rrset_recordsADestructiveIdempotent
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_groupBDestructiveIdempotent
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_passwordADestructive
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_serverBDestructive
Reset a server (hard)
Inputs: id (required).
reset_storage_box_passwordADestructiveIdempotent
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_passwordADestructiveIdempotent
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_snapshotADestructiveIdempotent
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_rulesADestructiveIdempotent
Set rules on an existing firewall (overwrites all rules). Same rule format as create_firewall.
Inputs: id (required), rules (required).
set_rrset_recordsBDestructiveIdempotent
Replace all records of an RRSet with the given list. Returns an Action
Inputs: name (required), type (required), zone (required), records (required).
shutdown_serverCDestructiveIdempotent
Shutdown a server (soft)
Inputs: id (required).
unassign_floating_ipCDestructiveIdempotent
Unassign a floating IP
Inputs: id (required).
unassign_primary_ipADestructiveIdempotent
Unassign a Primary IP from its server (server must be powered off)
Inputs: id (required).
update_certificateAIdempotent
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_firewallCIdempotent
Update a firewall (name, labels)
Inputs: id (required), name, labels.
update_floating_ipCIdempotent
Update a floating IP (description, labels)
Inputs: id (required), labels, description.
update_imageAIdempotent
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_balancerCIdempotent
Update a load balancer (name, labels)
Inputs: id (required), name, labels.
update_load_balancer_serviceCIdempotent
Update a load balancer service (listen_port identifies the service)
Inputs: id (required), listen_port (required), http, protocol, +3 more.
update_networkCIdempotent
Update a network (name, labels)
Inputs: id (required), name, labels.
update_placement_groupCIdempotent
Update a placement group (name, labels)
Inputs: id (required), name, labels.
update_primary_ipCIdempotent
Update a Primary IP (name, labels)
Inputs: id (required), name, labels.
update_rrsetAIdempotent
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_recordsAIdempotent
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_serverCIdempotent
Update a server (name, labels)
Inputs: id (required), name, labels.
update_ssh_keyCIdempotent
Update an SSH key (name, labels)
Inputs: id (required), name, labels.
update_storage_boxBIdempotent
Update a Storage Box's name and/or labels (labels replace the whole set)
Inputs: id (required), name, labels.
update_storage_box_access_settingsADestructiveIdempotent
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_snapshotAIdempotent
Update a snapshot's description and/or labels (labels replace the whole set)
Inputs: id (required), snapshot_id (required), labels, description.
update_storage_box_subaccountAIdempotent
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_settingsADestructiveIdempotent
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_volumeCIdempotent
Update a volume (name, labels)
Inputs: id (required), name, labels.
update_zoneAIdempotent
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
Scored across 162 tools
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.
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.
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.
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
Related MCP Connectors
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
MCP server for generating rough-draft project plans from natural-language prompts.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol server that allows language models to manage Hetzner Cloud resources through structured functions, including servers, volumes, firewalls, and SSH keys.30153MIT
- AlicenseAqualityBmaintenanceMCP server for managing Proxmox VE clusters — provision VMs and containers, manage snapshots and backups, execute commands, browse storage, and monitor resources through natural language37204 PyPI19MIT
- AlicenseNot gradedqualityAmaintenanceModel 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.1MIT
- AlicenseBqualityBmaintenanceMCP server for the Hetzner Cloud API. Manage servers, networks, volumes, firewalls, load balancers, and more through the Model Context Protocol.185673 npm7Functional Source , Version 1.1, MIT Future