Hetzner MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/Xodus-CO/hetzner-mcp
cd hetzner-mcp

Then follow the repository README for any remaining dependency or build steps before continuing.

2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "HCLOUD_TOKEN=${HCLOUD_TOKEN}" hetzner-mcp -- node "<FULL_PATH_TO_HETZNER_MCP>/dist/index.js"

Replace <FULL_PATH_TO_HETZNER_MCP>/dist/index.js with the actual folder you prepared in step 1.

Required:HCLOUD_TOKEN
README.md

Manage Hetzner Cloud resources directly from Cursor using natural language

Hetzner MCP

A Cursor Plugin for the Cursor Plugin marketplace. Manage Hetzner Cloud resources directly from Cursor using natural language and AI-powered workflows.

Get Hetzner Cloud — new signups get €20 credit.

Features

  • Servers: Create, delete, power on/off, reboot, resize; attach to networks and ISOs
  • Load Balancers: Full CRUD, add/remove targets and services; list_load_balancer_types for creation
  • Networks: Create/delete networks; add/delete subnets (e.g. 10.0.0.0/16 per zone for private networking)
  • Volumes: Create, attach, detach, delete block storage
  • Firewalls: Create, update, delete firewalls
  • Floating IPs: Create, assign, unassign, delete
  • Primary IPs: Create, assign, unassign, delete (datacenter-scoped static IPs; server must be off to assign/unassign)
  • SSH Keys: Full CRUD
  • Placement Groups: Full CRUD for anti-affinity groups
  • Metadata & actions: Locations, images, server types, load balancer types, datacenters; list_actions / get_action to poll create/delete results

All operations work through natural language in Cursor's AI agent.

Installation

Install the plugin from the Cursor Plugin marketplace, then set your Hetzner API token: in Cursor Settings → Features → Model Context Protocol, find the hetzner-cloud server and set HCLOUD_TOKEN in its environment.

Usage

Ask Cursor's agent to manage your Hetzner infrastructure:

Simple

  • "List my servers in Nuremberg"
  • "Create a cx22 server with Ubuntu 24.04"
  • "Attach a 10GB volume to web-01"
  • "Set up a load balancer for my web servers"
  • "Show current pricing for cpx31 servers"

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"
  • "Tear down: detach/delete volumes, delete LB and firewall, unassign/delete floating IPs, delete servers web-01 and web-02"

Configuration

Set HCLOUD_TOKEN in your environment or configure in plugins/hetzner-mcp/mcp.json:

{
  "mcpServers": {
    "hetzner-cloud": {
      "command": "node",
      "args": ["dist/index.js"],
      "env": {
        "HCLOUD_TOKEN": "your_token_here"
      }
    }
  }
}

Development

  • Source: plugins/hetzner-mcp/src/
  • Build: npm run build
  • Validate: npm run validate

See plugins/hetzner-mcp/README.md for detailed documentation.

License

MIT

Tools (5)

server_managementCreate, delete, power on/off, reboot, and resize servers
load_balancer_managementFull CRUD operations for load balancers and target management
network_managementCreate and delete networks and subnets
volume_managementCreate, attach, detach, and delete block storage volumes
firewall_managementCreate, update, and delete firewalls

Environment Variables

HCLOUD_TOKENrequiredYour Hetzner Cloud API token

Configuration

claude_desktop_config.json
{"mcpServers": {"hetzner-cloud": {"command": "node", "args": ["dist/index.js"], "env": {"HCLOUD_TOKEN": "your_token_here"}}}}

Try it

List my servers in Nuremberg
Create a cx22 server with Ubuntu 24.04
Attach a 10GB volume to web-01
Set up a load balancer for my web servers
Show current pricing for cpx31 servers

Frequently Asked Questions

What are the key features of Hetzner MCP?

Full lifecycle management for servers, load balancers, and volumes. Network and subnet configuration for private networking. Firewall, Floating IP, and Primary IP management. SSH key and placement group CRUD operations. Real-time infrastructure pricing and action status polling.

What can I use Hetzner MCP for?

Automating the provisioning of multi-server environments with private networking. Managing firewall rules and load balancer targets via natural language. Quickly resizing or rebooting servers during maintenance tasks. Monitoring the status of long-running infrastructure operations. Querying cloud resource pricing directly within the development environment.

How do I install Hetzner MCP?

Install Hetzner MCP by running: Install via Cursor Settings → Features → Model Context Protocol

What MCP clients work with Hetzner MCP?

Hetzner MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Hetzner MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare