# hetzner [Health: Active]

**Category:** ☁️ Cloud Platforms  
**Repository:** https://github.com/lazyants/hetzner-mcp-server  
**GitHub Stars:** 5  
**npm Downloads (last month):** 1464  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hetzner

## Description
MCP server for the Hetzner Cloud API — servers, networks, volumes, firewalls, and more.

## Tools
Capabilities this server exposes over MCP:

- **hetzner_list_servers**
- **hetzner_get_server**
- **hetzner_create_server**
- **hetzner_update_server**
- **hetzner_delete_server**
- **hetzner_power_on**
- **hetzner_power_off**
- **hetzner_reboot**
- **hetzner_reset**
- **hetzner_shutdown**
- **hetzner_rebuild_server**
- **hetzner_resize_server**
- **hetzner_enable_rescue**
- **hetzner_disable_rescue**
- **hetzner_get_server_metrics**
- **hetzner_list_server_actions**
- **hetzner_change_server_protection**
- **hetzner_request_console**
- **hetzner_enable_backup**
- **hetzner_disable_backup**
- **hetzner_change_alias_ips**
- **hetzner_change_dns_ptr**
- **hetzner_attach_server_to_network**
- **hetzner_detach_server_from_network**
- **hetzner_add_server_to_placement_group**
- **hetzner_remove_server_from_placement_group**
- **hetzner_reset_server_password**
- **hetzner_list_images**
- **hetzner_get_image**
- **hetzner_update_image**
- **hetzner_delete_image**
- **hetzner_create_image**
- **hetzner_change_image_protection**
- **hetzner_list_image_actions**
- **hetzner_list_isos**
- **hetzner_get_iso**
- **hetzner_attach_iso**
- **hetzner_detach_iso**
- **hetzner_list_placement_groups**
- **hetzner_get_placement_group**
- **hetzner_create_placement_group**
- **hetzner_update_placement_group**
- **hetzner_delete_placement_group**
- **hetzner_list_locations**
- **hetzner_get_location**
- **hetzner_list_server_types**
- **hetzner_get_server_type**
- **hetzner_get_pricing**
- **hetzner_list_networks**
- **hetzner_list_network_members**
- **hetzner_get_network**
- **hetzner_create_network**
- **hetzner_update_network**
- **hetzner_delete_network**
- **hetzner_add_subnet**
- **hetzner_delete_subnet**
- **hetzner_add_route**
- **hetzner_delete_route**
- **hetzner_change_network_protection**
- **hetzner_change_ip_range**
- **hetzner_list_network_actions**
- **hetzner_list_firewalls**
- **hetzner_get_firewall**
- **hetzner_create_firewall**
- **hetzner_update_firewall**
- **hetzner_delete_firewall**
- **hetzner_set_firewall_rules**
- **hetzner_apply_firewall**
- **hetzner_remove_firewall**
- **hetzner_list_firewall_actions**
- **hetzner_list_load_balancers**
- **hetzner_get_load_balancer**
- **hetzner_create_load_balancer**
- **hetzner_update_load_balancer**
- **hetzner_delete_load_balancer**
- **hetzner_add_lb_target**
- **hetzner_remove_lb_target**
- **hetzner_add_lb_service**
- **hetzner_update_lb_service**
- **hetzner_delete_lb_service**

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "hetzner": {
    "command": "npx",
    "args": ["-y","@lazyants/hetzner-mcp-server"],
    "env": {
      "HETZNER_API_TOKEN": "",
      "HETZNER_STORAGE_API_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `HETZNER_API_TOKEN`, `HETZNER_STORAGE_API_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What hetzner MCP server does

The hetzner MCP server exposes Hetzner infrastructure operations through the Model Context Protocol. It connects to the Hetzner Cloud API and covers compute, networking, storage, load balancing, certificates, DNS zones, IP addresses, images, ISOs, SSH keys, placement groups, locations, server types, and pricing.

The package contains 185 tools across 15 resource domains. Server tools can create, update, delete, power-cycle, rebuild, resize, protect, monitor, and connect servers to networks or placement groups. Other domains provide comparable read and mutation operations for resources such as volumes, firewalls, floating IPs, primary IPs, load balancers, certificates, and networks.

A read-only API reference resource is exposed at `reference://hetzner/api` from every entry point. The server also includes `hetzner_wait_for_action`, which can track operations for supported resource domains until they succeed, fail, or reach a timeout.

## How it works

The hetzner MCP server runs as a Node.js package using stdio. The complete command registers all available tools, while split commands expose narrower groups: servers, networking, load balancers, IPs, storage, Storage Boxes, configuration resources, or DNS. Choosing only the required groups can reduce the context and tool count presented to an agent.

Most list operations support sorting. Image queries can filter by the server they belong to and include deprecated images when requested. Metrics for servers and load balancers accept a step size in seconds. Pricing queries can be limited to a resource category, including server types, load balancer types, volumes, IPs, traffic, images, or server backups.

The action-waiting tool accepts a domain, resource ID, action ID, and optional timeout. Its default timeout is 300 seconds and its maximum is 3,600 seconds. It polls resource action history and observes MCP cancellation while waiting.

## Setup and configuration

Install the package globally with `npm install -g @lazyants/hetzner-mcp-server`, or run it directly with `npx @lazyants/hetzner-mcp-server`. Set `HETZNER_API_TOKEN` to a token created in the Hetzner Cloud Console under Security and API Tokens.

Storage Box operations use a separate Hetzner API host. They use `HETZNER_STORAGE_API_TOKEN` when it is set; otherwise, they reuse `HETZNER_API_TOKEN`. A dedicated storage token is therefore optional rather than required for Storage Box access.

Claude Code and Claude Desktop configurations start the package with `npx` and pass the token through the client environment. Split commands can be registered separately when only selected resource domains are needed.

## Tools and capabilities

- Manage servers, images, ISOs, volumes, networks, firewalls, and placement groups.
- Configure load balancers, targets, services, certificates, and public interfaces.
- Create, assign, unassign, protect, and update floating or primary IPs.
- Query locations, server types, pricing, metrics, actions, and API reference data.
- Work with DNS zones and Storage Boxes through their supported entry points.
- Wait for asynchronous Hetzner actions across supported resource domains.

## Limitations and notes

The full entry point exposes 185 tools, which may be too large for clients with strict tool limits; split entry points are available for that reason. Storage Box calls use a separate API host and may require a separately scoped token. Datacenter endpoints are no longer exposed because Hetzner removed them after 2026-10-01; location and server-type tools provide the documented availability information instead.

_Full upstream README: https://allmcps.com/mcp/hetzner/readme_

