Repository navigation
Releases
v0.4.1: README refresh
This release only updates the README. There are no code changes, and tools and behaviour are the same as 0.4.0.
README
- The intro now lists everything the server covers (DNS, Storage Boxes, certificates, snapshots) and gives the tool count (162).
- Token guidance:
- A token gives access to the whole project, so use a Read token if the agent only needs to look things up.
- The server runs locally.
- Your token is only sent to
api.hetzner.cloud(Cloud and DNS) andapi.hetzner.com(Storage Boxes).
- The config example uses
npx -y hcloud-mcp@latest. - New Tool annotations section: how many tools are read-only (46), destructive (57) and idempotent (92), with examples.
- API compatibility now describes how things work today instead of what changed in 0.2.0, and shows the error format.
- New Changelog section: 0.2.0 to 0.4.1.
- New examples: a load balancer on a fixed Primary IP, a snapshot before a rebuild, and a Storage Box subaccount.
Internal
package-lock.json's own version field had been left at 0.3.1. It is now in sync.
v0.4.0: SDK-free, tool safety annotations, LB with existing Primary IPs
Highlights
-
No more
hetzner-sdk-ts(#8). All 162 tools call the Hetzner API through one small in-repo client. That gives one code path and one error format (code (status): message), with no stale SDK types and a smaller install. -
Every tool is now flagged for safety (#8). Each tool declares MCP annotations (
readOnlyHint,destructiveHint,idempotentHint,openWorldHint). Clients that support annotations can auto-approve read-only tools and ask before destructive ones.Class Count Read-only 46 Destructive 57 Other mutations 59 -
Load balancers with existing Primary IPs (#3).
create_load_balancernow acceptspublic_net(existing Primary IPs),network,public_interface,servicesandtargets, so you can build a full LB with a stable address in one call.
Compatibility
- Tool names, descriptions and input schemas are unchanged. Only annotations were added.
- Small changes to error text:
- errors with no details no longer end in
{}; - API errors without a code read
http_error (status): …; - HTML proxy error pages now raise a clean API error instead of a JSON parse error.
- errors with no details no longer end in
Verified
- Every live suite passed, run one after another against the real API:
test:live(18 steps),:dns(17),:images(18),:ops(13),:actions(19),:certs(7),:storage(22). - CI on GitHub runs the build and the offline smoke test, which also enforces the annotation rules.
v0.3.1: volume assignee migration, CI
Fixes
- Volume
assigneemigration (#2).create_volumeandattach_volumenow sendassignee: {type: "server", id}instead of the deprecatedserverfield, which Hetzner removes on 2027-10-27. Tool inputs are unchanged: you still pass a server ID. Readassigneein volume responses. create_volumechecks its inputs: you must give exactly one oflocationorserver, andautomountonly works withserver.
Added
- GitHub Actions CI on PRs and on main. It installs dependencies, builds, runs an offline smoke test, and checks the package contents. No secrets, no Hetzner API calls.
npm run test:smokechecks that:- the server starts and the version matches;
- instructions are present;
- tool names have no duplicates, and every tool has a description;
HCLOUD_TOOLSETSwiring works.
Internal
package-lock.jsonwas missingcross-env, sonpm cifailed. CI's first run caught it.
Verified live: test:live passes 16/16 steps, including the assignee read-back after attaching and after creating a volume on a server.
Full changes: #26
v0.3.0: DNS, Storage Boxes, certificates, snapshots, rescue, metrics and more (162 tools)
hcloud-mcp now covers most of the Hetzner Cloud API, plus Storage Boxes: 162 tools, up from 75. Every area was tested live against the real API.
New
| Area | Highlights |
|---|---|
| DNS (#14) | 21 tools: zones (primary/secondary), zone file import/export, RRSets with add/remove/set/comment, TTL, protection |
| Storage Boxes (#9) | 30 tools: boxes, types, folders, subaccounts, snapshots, snapshot plans, rollback, access settings. Uses api.hetzner.com with the same token |
| Certificates (#15) | Uploaded and managed Let's Encrypt certificates. Managed ones need a delegated Hetzner DNS zone |
| Snapshots & backups (#16) | create_snapshot, list_snapshots, image update/delete, enable/disable backups |
| Protection (#18) | One change_protection tool for servers, volumes, IPs, LBs, networks and images |
| Rescue & console (#17) | enable_rescue/disable_rescue, reset_root_password, request_console |
| Metrics (#19) | Server and LB metrics with a min/avg/max summary and a last_minutes shortcut |
| More actions (#20, #22) | Reverse DNS (change_dns_ptr), rebuild_server, list_network_members, placement group membership, alias IPs, LB network/type/algorithm/public interface/idle timeout, network routes and IP range, list_isos |
Improvements
HCLOUD_TOOLSETS: load only the tool groups you need (core,dns,images,ops,certificates,storage_boxes), for MCP clients with tool-count limits. Everything loads by default.- Better error messages: errors now show Hetzner's error codes, e.g.
resource_limit_exceeded (403): …orprotected (423): …, instead of "Forbidden" or "Generic Error". - More agent guidance: the server instructions and the
hetzner-cloudskill now cover:- snapshot-before-risky-change workflows
- rescue recovery
- handling secrets
- managed certificates via DNS
- Storage Box passwords
- API quirks found in testing: labels and alias IPs are replaced wholesale, server delete/rebuild protection must match, CPU metrics are per vCPU
- Cleaner package: a
filesallowlist keeps it to 16 files, with no test scripts or local leftovers.
Upgrade notes
- No breaking changes from 0.2.x.
- If your MCP client limits the number of tools, set
HCLOUD_TOOLSETS. - Refresh the skill:
cp -r "$(npm root -g)/hcloud-mcp/skills/hetzner-cloud" ~/.claude/skills/
Verified
Nine test suites run against the live API:
test:api,test:mcptest:live(16 steps),:dns(17),:images(18),:ops(13),:actions(19),:certs(7),:storage(22)
That's 112 live steps in total. Every suite cleans up only the resources its own run labeled.
Not yet supported
Hetzner Robot / dedicated servers (#21) · volume assignee migration (#2, deadline Oct 2027) · LB with existing Primary IPs (#3) · replacing the stale SDK / registerTool migration (#8).
v0.2.0 — Hetzner API updates (Nov 2026), server instructions, agent skill
Brings hcloud-mcp up to date with Hetzner Cloud API changes from Feb–Nov 2026 (changelog), and adds guidance for the agents that use it.
⚠️ Breaking changes
list_datacentersremoved. Hetzner's endpoint returns 410 Gone since 2026-10-01. Uselist_locationsinstead.create_server: thedatacenterparam is removed because the API dropped it on 2026-07-01. Uselocation, e.g.fsn1,nbg1,hel1,ash,hil,sin.create_primary_ip:datacenteris replaced bylocation.add_network_subnet: the deprecatedserversubnet type is gone. Usecloud.list_actions:idis now required, because Hetzner no longer lists every action in a project. Useget_actionto check on a pending operation.
Fixes
- All
list_*tools now return every item. They used to stop at the first 25. delete_load_balancernow returns the delete Action, so you can track when the deletion finishes.create_ssh_keytrims whitespace from the public key, which the API now rejects.- Tool descriptions now say:
- unassign Floating and Primary IPs before deleting them;
- firewall CIDRs can't have host bits set;
- check the
deprecationfields on images and on server and load balancer types.
New
- Server instructions: sent to MCP clients when they connect. They cover using locations instead of datacenters, waiting for Actions to finish, deleting things in the right order, and confirming before destructive steps.
hetzner-cloudagent skill (skills/hetzner-cloud/SKILL.md, also included in the npm package):cp -r "$(npm root -g)/hcloud-mcp/skills/hetzner-cloud" ~/.claude/skills/
npm run test:live: runs a full create→teardown cycle against the real API. It costs a few cents. Each run labels its resources with a unique ID and cleans them up automatically.
Verified
Tested live against the Hetzner API. All read-only tools pass. The live test passes all 11 steps:
- network and subnet, firewall, and a server created by location
- Primary IP swap, including the
must_be_unassignederror when deleting an assigned IP - volume, Floating IP, and load balancer delete returning its Action
- teardown, with nothing left behind
Not yet supported
DNS zones (#1), volume assignee (#2), LB Primary IPs (#3), network members (#4), rebuild with user_data (#5), LB idle timeout (#6), reverse DNS (#7), SDK replacement (#8), Storage Boxes (#9).
Full changes: #10