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.
Get Hetzner Cloud — new signups get €20 credit.
Requirements
Node.js 18+
A Hetzner Cloud API token (project → Security → API Tokens). Set it as
HCLOUD_TOKENin the environment or in your MCP client config.
Installation
From source (clone this repo)
After publishing to npm (optional)
(Configure your MCP client to run npx hcloud-mcp with HCLOUD_TOKEN in env.)
Configuration
Add the server to your MCP client configuration. The server speaks MCP over stdio and expects HCLOUD_TOKEN in the environment.
Example (mcp.json or your client’s equivalent):
If you run from a different directory, use an absolute path for args, or use npx hcloud-mcp and set "command": "npx", "args": ["hcloud-mcp"] (after publishing).
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 |
|
Networks are zone-scoped (e.g. eu-central); subnets and servers must be in the same zone.
Usage examples
Once your MCP client is connected, you can ask the agent to run tools, for example:
"List my Hetzner servers"
"Create a cx22 server with Ubuntu 24.04 in nbg1"
"Create a 10GB volume and attach it to server web-01"
"List load balancer types"
"Create a private network 10.0.0.0/16 in eu-central, add a subnet, then create two servers in that zone and attach them"
"Get status of action 12345"
Development
src/index.ts— Entry point, stdio transport,HCLOUD_TOKENcheck.src/mcp-server.ts— MCP server wrapper (tools registration, request handling).src/register-tools.ts— All tool definitions and Hetzner API calls.
License
MIT