Manage DNS zones and records (zonefiles, RRSets, TTL, protection) via the Hetzner Cloud API
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Model Context Protocol (MCP) server for managing DNS zones and records via the Hetzner Cloud API.
Lets MCP clients like Claude Code, Claude Desktop or Codex manage your Hetzner DNS: list, create, update and delete zones and RRSets (record sets), import/export zone files, manage protection and TTLs, and track asynchronous zone actions.
Twenty-two tools is the ceiling, not the floor: HETZNER_ALLOW_TOOLS=essential
registers a curated eight instead, and a model picks the right tool far more
reliably from eight than from twenty-two β see
choosing which tools load.
Note: This server targets the current DNS API that is part of the Hetzner Cloud API (
api.hetzner.cloud). The legacy DNS API (dns.hetzner.com) was shut down in May 2026 and is not supported.

Zones, record sets and the actions behind them. Listing, creating, updating and deleting zones and RRSets, importing and exporting BIND zone files, changing TTLs and protection β and following the asynchronous zone actions Hetzner queues behind a change, rather than reporting success and leaving you to guess.
Nothing upstream is trusted. Record values, comments and zone files come back wrapped as untrusted data, secret-looking keys are redacted, oversized values are truncated and HTML error pages are dropped instead of pasted into the context.
Destructive calls ask a person. Deleting a zone or replacing a record set raises a real dialog through MCP elicitation. Where the client cannot show one, the call is refused and carries a random single-use token that only ever appeared in a previous tool result β so nothing hidden inside a DNS record can mint it.
Configuration is provided via environment variables:
| Variable | Required | Description |
|---|---|---|
HETZNER_API_TOKEN | yes | Hetzner Cloud API token (project-scoped) |
HETZNER_READ_ONLY | no | true registers only the read tools; the write tools do not exist at all |
HETZNER_ALLOW_TOOLS | no | Comma-separated tool names, list_* prefixes, or essential for a curated preset |
HETZNER_DENY_TOOLS | no | Same syntax; removed from whatever HETZNER_ALLOW_TOOLS left |
ELICITATION | no | false replaces the approval dialog with the two-call token. Not prefixed |
HETZNER_API_BASE_URL | no | Base URL of the API (default: https://api.hetzner.cloud/v1) |
Without a token the server still starts and lists its tools (so registries and inspectors can introspect it), but every tool call fails with setup instructions instead of reaching the API.
HETZNER_API_TOKEN and HETZNER_API_BASE_URL are deleted from the process
environment once they have been read, so a later crash report or diagnostic
dump cannot expose the token.
HETZNER_ALLOW_TOOLS and HETZNER_DENY_TOOLS take comma-separated tool names;
a trailing * matches a whole family. essential is a curated preset β
list_zones, get_zone, list_rrsets, get_rrset, create_rrset,
set_records, delete_rrset and export_zonefile β which covers reading a
zone and changing a record without the rare, catastrophic tools.
An entry that matches no tool aborts startup and names it, so a typo cannot
silently hide a tool β an absent tool is not something anyone traces back to an
environment variable. A filtered tool is never registered, so it is absent from
tools/list and unknown to tools/call alike, exactly like a write tool under
HETZNER_READ_ONLY.
If you run several of these servers at once, mcp-hub
is the other answer β its /hub endpoint replaces every server's tools with six
meta-tools.
Add to your claude_desktop_config.json:
Add to your ~/.codex/config.toml:
Multi-arch images (amd64/arm64) are published to GHCR with an SBOM and build provenance:
The image talks MCP over stdio, so clients need docker run -i (no port is
exposed):
A client that cannot spawn a local process β ChatGPT connectors, Claude on the web,
Cursor, LibreChat β reaches hetzner-dns-mcp through mcp-hub: one
container serves many stdio MCP servers over Streamable HTTP, with an OAuth 2.1 login
behind a single password and long-lived tokens for the clients that cannot do OAuth. Its
/hub endpoint puts every server behind six meta-tools, so one connector reaches all of
them without NΓtool schemas in the model's context, and it speaks both protocol revisions
β a question this server asks travels through it to the person at the far end.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/hetzner-dns-mcp)<a href="https://allmcps.com/mcp/hetzner-dns-mcp"><img src="https://allmcps.com/api/badge/hetzner-dns-mcp?style=directory" alt="Hetzner Dns MCP on AllMCPs" /></a>