Atlas / MCP servers / dkruyt / Hetzner Cloud

Hetzner CloudSAFE

mcp/dkruyt/hetzner-cloud

A Model Context Protocol (MCP) server for interacting with the Hetzner Cloud API. This server allows language models to manage Hetzner Cloud resources through structured functions.

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
30 17r · 8w · 5d
Transport
stdio
License
MIT
Stars
145
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

A Model Context Protocol (MCP) server for interacting with the Hetzner Cloud API. This server allows language models to manage Hetzner Cloud resources through structured functions.

Features

  • List, create, and manage Hetzner Cloud servers
  • Create, attach, detach, and resize volumes
  • Manage firewall rules and apply them to servers
  • Create and manage SSH keys for secure server access
  • View available images, server types, and locations
  • Power on/off and reboot servers
  • Simple, structured API for language model interaction
  • Claude Code integration for managing Hetzner resources directly from Claude

Requirements

  • Python 3.11+
  • Hetzner Cloud API token

Installation

Method 1: Direct Installation

  1. Clone this repository:
git clone https://github.com/dkruyt/mcp-hetzner.git
cd mcp-hetzner
  1. Install dependencies:
pip install -e .
  1. Create a .env file and add your Hetzner Cloud API token:
HCLOUD_TOKEN=your_hetzner_cloud_api_token_here

Method 2: Install as a Package

# Install directly from the repository
pip install git+https://github.com/dkruyt/mcp-hetzner.git

After installing as a package, create a .env file in your working directory with your Hetzner Cloud API token.

Usage

Starting the Server

Option 1: Run the installed package:

# Using default stdio transport
mcp-hetzner

# Using SSE transport
mcp-hetzner --transport sse

# Setting a custom port
mcp-hetzner --transport sse --port 8000

Option 2: Run as a module:

python -m mcp_hetzner
# or
python -m mcp_hetzner.server

The server supports two transport modes:

  • stdio (default): Standard I/O transport, typically used with Claude Code
  • sse: Server-Sent Events transport, suitable for HTTP clients

By default, the server runs on localhost:8080. You can customize the host and port by:

  1. Setting the MCP_HOST and MCP_PORT env
Read from source at commit 8d5571cea9c8OBSERVED · 2026-10-07
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add mcp-hetzner --env HCLOUD_TOKEN=${HCLOUD_TOKEN} -- uvx mcp-hetzner
claude-desktop
{
  "mcpServers": {
    "mcp-hetzner": {
      "command": "uvx",
      "args": [
        "mcp-hetzner"
      ],
      "env": {
        "HCLOUD_TOKEN": "${HCLOUD_TOKEN}"
      }
    }
  }
}
03

Exposed tools (30)

17 read · 8 write · 5 destructive. Blast radius: 5 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
apply_firewall_to_resourceswrite
attach_volumeread
create_firewallwrite
create_serverwrite
create_ssh_keywrite
create_volumewrite
delete_firewalldestructive
delete_serverdestructive
delete_ssh_keydestructive
delete_volumedestructive
detach_volumeread
get_firewallread
get_serverread
get_ssh_keyread
get_volumeread
list_firewallsread
list_imagesread
list_locationsread
list_server_typesread
list_serversread
list_ssh_keysread
list_volumesread
power_offread
power_onread
rebootread
remove_firewall_from_resourcesdestructive
resize_volumeread
set_firewall_ruleswrite
update_firewallwrite
update_ssh_keywrite
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (2)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
delete_firewall, delete_server, delete_ssh_key, delete_volume, remove_firewall_from_resources
Why it matters. 5 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
INFOInventory / provenance · inv.oversize · CWE-1104
media/mcp-hetzner.gif
media/mcp-hetzner.gif
Why it matters. 5116132 bytes not read

Gates applied: no_behavioural_pass.

Audited 2026-10-07 · audit v0.4.1 · source sha 8d5571cea9c8full audit observations/trust-audit/mcp-server/dkruyt__hetzner-cloud.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-078d5571cea9c8SAFEB89first audit
06

Questions

What is the Hetzner Cloud MCP server?

A Model Context Protocol (MCP) server for interacting with the Hetzner Cloud API. This server allows language models to manage Hetzner Cloud resources through structured functions.

What tools does Hetzner Cloud expose?

30 in total: 17 read-only, 8 that write, and 5 that can delete or overwrite (delete_firewall, delete_server, delete_ssh_key, delete_volume, remove_firewall_from_resources). Every one is listed on this page with its risk.

Is Hetzner Cloud safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 5 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Hetzner Cloud need?

It reads HCLOUD_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Hetzner Cloud run?

It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as mcp-hetzner.

How current is this page?

The grade is for one exact copy of the source (8d5571cea9c8), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement