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 "Install 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-mcplist 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. Use it with any MCP client: Cursor, Claude Desktop, CLI tools, smithery.ai, or custom agents.
Repository: github.com/Xodus-CO/hcloud-mcp
Cursor Plugin: github.com/Xodus-CO/hetzner-mcp — install from the Cursor Plugin marketplace.
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.
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": ["hcloud-mcp"],
"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 |
|
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.
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 a cx22 server with Ubuntu 24.04
Create a cx22 server with Ubuntu 24.04 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
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
List running actions and get status of action 12345
Create a Primary IP in ash-dc1, power off web-01, assign the IP, power back on
Create a 20GB volume and a cx22 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
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, |
| Tool definitions and Hetzner API calls (uses SDK McpServer) |
Scripts:
npm run build # compile
npm run start # run (requires HCLOUD_TOKEN)
npm run dev # watch and recompile
npm run test:api # test list_* Hetzner API calls (requires HCLOUD_TOKEN)
npm run test:mcp # integration test: MCP client calls list_locations (requires HCLOUD_TOKEN)
npm run audit:api # verify create_* request body shapes (DRY_RUN=1, no resources created)License
MIT
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.