# hetzner

Connect an MCP client to Hetzner Cloud to work with servers, networks, storage, DNS, and load balancers. Write actions can create billable resources.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5
- Author: lazyants
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lazyants/hetzner-mcp-server
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/hetzner

## What it does

The server gives an MCP client access to Hetzner Cloud resources, including servers, networks, volumes, DNS, and load balancers. The standard command exposes the full tool set; split commands let you launch a resource group such as `hetzner-mcp-networking` on its own.

You need Node.js 22.12 or newer and a Hetzner Cloud API token. A read-only token can inspect resources, while write operations can create charges, so review the agent's proposed actions before allowing changes. Storage Box tools accept a separate `HETZNER_STORAGE_API_TOKEN`; otherwise, they use `HETZNER_API_TOKEN`. Each server provides an API reference at `reference://hetzner/api`.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `HETZNER_API_TOKEN`, `HETZNER_STORAGE_API_TOKEN` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add hetzner -e HETZNER_API_TOKEN=<HETZNER_API_TOKEN> -e HETZNER_STORAGE_API_TOKEN=<HETZNER_STORAGE_API_TOKEN> -- npx -y @lazyants/hetzner-mcp-server
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add hetzner --env HETZNER_API_TOKEN=<HETZNER_API_TOKEN> --env HETZNER_STORAGE_API_TOKEN=<HETZNER_STORAGE_API_TOKEN> -- npx -y @lazyants/hetzner-mcp-server
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "hetzner": {
            "command": "npx",
            "args": [
                "-y",
                "@lazyants/hetzner-mcp-server"
            ],
            "env": {
                "HETZNER_API_TOKEN": "<HETZNER_API_TOKEN>",
                "HETZNER_STORAGE_API_TOKEN": "<HETZNER_STORAGE_API_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "hetzner": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@lazyants/hetzner-mcp-server"
            ],
            "env": {
                "HETZNER_API_TOKEN": "<HETZNER_API_TOKEN>",
                "HETZNER_STORAGE_API_TOKEN": "<HETZNER_STORAGE_API_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e HETZNER_API_TOKEN=<HETZNER_API_TOKEN> -e HETZNER_STORAGE_API_TOKEN=<HETZNER_STORAGE_API_TOKEN> hetzner npx -y @lazyants/hetzner-mcp-server
```
Replace <…> with your own values

## When to use it
- inspect Hetzner Cloud resources from an MCP client
- manage cloud servers and networks through an agent
- check DNS and load balancer resources
- launch only a selected resource group of tools

## Example prompts
- List the servers and networks in my Hetzner Cloud account.
- Check the DNS records and load balancers in Hetzner.
- Show me the Storage Box resources available to this account.

## Similar
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43902
- [Coder](https://affpapa.org/en/nevibecode/mcp/coder.md) — MCP server · ★ 17191
- [firebase-mcp](https://affpapa.org/en/nevibecode/mcp/firebase-mcp.md) — MCP server · ★ 4482
- [Radar Kubernetes MCP Server](https://affpapa.org/en/nevibecode/mcp/radar-kubernetes-mcp-server.md) — MCP server · ★ 3918
- [Supabase](https://affpapa.org/en/nevibecode/mcp/supabase.md) — MCP server · ★ 2974
- [Microsoft Fabric MCP Server](https://affpapa.org/en/nevibecode/mcp/microsoft-fabric-mcp-server.md) — MCP server · ★ 3804

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
