连接器指南阅读约 5 分钟31 个 MCP 工具7 种语言

将 Hetzner MCP 连接到 ChatGPT:云服务器

Hetzner Cloud:带指标和操作记录的服务器、镜像和快照、卷、网络、防火墙、负载均衡器、IP、SSH 密钥、证书、DNS 区域、服务器类型和价格。电源操作工具安装时默认关闭。使用项目 token 访问 Hetzner Cloud API v1。

HC作者:HelpCode 团队更新于 5 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

Hetzner Cloud

Hetzner Cloud

Hetzner Cloud: servers with metrics and actions, images and snapshots, volumes, networks, firewalls, load balancers, IPs, SSH keys, certificates, DNS zones, server types and pricing. Power tools are installed disabled. Hetzner Cloud API v1 with a project token.

个工具

31

区域

INTL

类别

基础设施

身份验证

Bearer Token

所需环境变量

HETZNER_CLOUD_API_TOKEN
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

摘要

Hetzner Cloud:带指标和操作记录的服务器、镜像和快照、卷、网络、防火墙、负载均衡器、IP、SSH 密钥、证书、DNS 区域、服务器类型和价格。电源操作工具安装时默认关闭。使用项目 token 访问 Hetzner Cloud API v1。

引导式设置

2 分钟将 Hetzner Cloud 连接到 ChatGPT

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Hetzner Cloud,再把你的 MCP URL 添加到 ChatGPT。无需代码,也无需自行运行服务器。

无需信用卡 · 7 天试用 · 提供自托管方案

ChatGPT 插件目录中的 AnythingMCP 插件可在 AnythingMCP Cloud 上回答有关企业数据库的问题(PostgreSQL、MySQL、SQL Server、Oracle、SAP HANA、SQLite、MongoDB,只读):打开插件页面 (在新标签页中打开)并点击 Install plugin。其他所有连接器都以自定义 MCP 服务器的方式添加到 ChatGPT,使用你的 AnythingMCP MCP URL。

试试这样问

Hetzner Cloud 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Hetzner Cloud · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Hetzner Cloud、粘贴凭证、生成 MCP API key — 完成。无 Docker、无 git clone、无本地服务器。

Hetzner Cloud + ChatGPT

Hetzner Cloud:带指标和操作记录的服务器、镜像和快照、卷、网络、防火墙、负载均衡器、IP、SSH 密钥、证书、DNS 区域、服务器类型和价格。电源操作工具安装时默认关闭。使用项目 token 访问 Hetzner Cloud API v1。

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

HETZNER_CLOUD_API_TOKEN

步骤 1 — 获取凭证

  1. 在 Hetzner Console 中打开你的项目,然后进入 Security → API tokens → Generate API token。
  2. 只读连接器选择 Read;只有打算启用电源操作工具时才选择 Read & Write。将 token 复制到 HETZNER_CLOUD_API_TOKEN;Hetzner 只显示一次。它以 Authorization: Bearer 发送。
  3. 一个 token 只属于一个项目,因此每个项目创建一个连接器。
  4. 先用 hetzner_cloud_list_servers,再用 hetzner_cloud_get_server_metrics 查看服务器负载,用 hetzner_cloud_get_pricing 或 hetzner_cloud_list_server_types 查看费用。

电源操作工具(hetzner_cloud_power_on_server、hetzner_cloud_power_off_server、hetzner_cloud_shutdown_server、hetzner_cloud_reboot_server、hetzner_cloud_reset_server)安装时默认关闭,请有意识地启用。power off 和 reset 会像拔掉电源一样切断服务器,因此优先使用 shutdown 或 reboot。每个工具都返回一个操作,用 hetzner_cloud_get_action 轮询其状态;关机的服务器仍会计费。没有任何工具会创建、重建或删除资源。API 每个项目每小时最多 3600 个请求。不包括 Hetzner Robot(独立服务器)和 Storage Box。

步骤 2 — 安装 adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

步骤 3 — 在 ChatGPT 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

ChatGPT 在网页版的 Plugins 页面把 MCP 服务器添加为插件,仅付费套餐可用,不再需要开发者模式。在 Business 工作区中只有管理员和所有者可以添加;在 Enterprise 和 Edu 中,管理员可以授予 Create plugins with MCPs 权限。

  1. 前往 chatgpt.com/plugins,点击 Add,然后选择 Add custom MCP server。
  2. 填写名称,例如 Name: Hetzner Cloud。
  3. 在 Connection 下的 Server URL 中填入 https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,Authentication 保持为 OAuth。
  4. 选择 I understand and want to continue,然后点击 Create as a plugin。ChatGPT 提示时,登录 AnythingMCP 并允许访问。
  5. 在个人插件中安装这个新插件,然后在对话中输入 @ 并选择它。

可用工具

ToolWhat it does
hetzner_cloud_list_serversList the servers of the project with status, server type, location, public and private IPs, image, labels, protection and traffic
hetzner_cloud_get_serverGet one server with status, type (cores, memory, disk), datacenter, public IPv4/IPv6, private networks, attached volumes, image, backup…
hetzner_cloud_get_server_metricsGet time series for one server: cpu usage, disk IOPS and bandwidth, or network packets and bandwidth, between two RFC 3339 times
hetzner_cloud_list_server_actionsList the actions run on one server (power, rebuild, backup, attach, ...) with command, status, progress, start and finish times and errors
hetzner_cloud_get_actionGet one action by id: command, status (running, success, error), progress in percent, affected resources and the error if it failed
hetzner_cloud_list_imagesList images: system images (OS), app images, snapshots and backups, with type, OS flavor and version, architecture, size and the server it…
hetzner_cloud_get_imageGet one image: type, status, description, OS flavor and version, architecture, disk size, creation source, protection, labels and…
hetzner_cloud_list_volumesList block storage volumes with size in GB, location, the server they are attached to, Linux device path, format, protection and labels
hetzner_cloud_get_volumeGet one volume: size, location, attached server, Linux device path, filesystem format, protection, labels and creation time
hetzner_cloud_list_networksList private networks with IP range, subnets, routes, attached servers and load balancers, and protection
hetzner_cloud_get_networkGet one private network with its IP range, subnets (zone, type, gateway), routes, attached servers and load balancers
hetzner_cloud_list_firewallsList firewalls with their inbound and outbound rules (protocol, port, source and destination IPs) and the servers or label selectors they…
hetzner_cloud_get_firewallGet one firewall with every rule and the resources it is applied to
hetzner_cloud_list_load_balancersList load balancers with type, location, public and private IPs, algorithm, services (ports, protocol, health check) and targets
hetzner_cloud_get_load_balancerGet one load balancer with services, health checks, targets and their health status, algorithm, network attachments and included traffic
hetzner_cloud_get_load_balancer_metricsGet time series for one load balancer: open connections, connections per second, requests per second or bandwidth, between two RFC 3339…
hetzner_cloud_list_primary_ipsList primary IPs (the main public IPv4/IPv6 of servers) with address, type, datacenter, assignee, auto-delete flag and reverse DNS
hetzner_cloud_list_floating_ipsList floating IPs with address, type, home location, the server they point to, reverse DNS entries and protection
hetzner_cloud_list_ssh_keysList the SSH public keys stored in the project with name, fingerprint and labels
hetzner_cloud_list_certificatesList TLS certificates for load balancers (uploaded or managed by Let's Encrypt) with domains, validity dates and managed status
hetzner_cloud_list_server_typesList server types (for example cx22, cpx31, cax21) with cores, CPU type, architecture, memory, disk, included traffic and prices per…
hetzner_cloud_list_locationsList the locations (fsn1, nbg1, hel1, ash, hil, sin) with city, country, network zone and coordinates
hetzner_cloud_list_datacentersList datacenters with their location and which server types are supported and currently available there
hetzner_cloud_get_pricingGet the full price list of the project: per server type and location (hourly and monthly, net and gross), volumes per GB, primary and…
hetzner_cloud_list_zonesList DNS zones hosted in Hetzner DNS (Cloud API) with name, mode (primary or secondary), TTL, record count, nameservers and protection
hetzner_cloud_list_zone_rrsetsList the DNS record sets of one zone (A, AAAA, CNAME, MX, TXT, ...) with name, type, TTL and values
hetzner_cloud_power_on_serverStart a server that is off
hetzner_cloud_power_off_serverCut the power of a server immediately, like pulling the plug
hetzner_cloud_shutdown_serverAsk the guest operating system to shut down gracefully (ACPI)
hetzner_cloud_reboot_serverAsk the guest operating system to reboot gracefully (ACPI soft reboot)

(showing 30 of 31 tools — install the connector to see them all)

FAQ

ChatGPT 免费套餐能用自定义 MCP 服务器吗? OpenAI 只为付费套餐提供自定义 MCP 服务器的说明,Free 套餐不在其列。

下一步

这份指南对你有帮助吗?

2 分钟将 Hetzner Cloud 连接到 ChatGPT

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Hetzner Cloud,再把你的 MCP URL 添加到 ChatGPT。无需代码,也无需自行运行服务器。

相关指南

连接器

将 Hetzner MCP 连接到 Microsoft Copilot

Hetzner Cloud:带指标和操作记录的服务器、镜像和快照、卷、网络、防火墙、负载均衡器、IP、SSH 密钥、证书、DNS 区域、服务器类型和价格。电源操作工具安装时默认关闭。使用项目 token 访问 Hetzner Cloud API v1。

连接器

将 Hetzner MCP 连接到 Claude:服务器指标

Hetzner Cloud:带指标和操作记录的服务器、镜像和快照、卷、网络、防火墙、负载均衡器、IP、SSH 密钥、证书、DNS 区域、服务器类型和价格。电源操作工具安装时默认关闭。使用项目 token 访问 Hetzner Cloud API v1。

连接器

将 Hetzner MCP 连接到 Cursor:服务器指标

Hetzner Cloud:带指标和操作记录的服务器、镜像和快照、卷、网络、防火墙、负载均衡器、IP、SSH 密钥、证书、DNS 区域、服务器类型和价格。电源操作工具安装时默认关闭。使用项目 token 访问 Hetzner Cloud API v1。

连接器

将 Hetzner MCP 连接到 Gemini CLI:云服务器

Hetzner Cloud:带指标和操作记录的服务器、镜像和快照、卷、网络、防火墙、负载均衡器、IP、SSH 密钥、证书、DNS 区域、服务器类型和价格。电源操作工具安装时默认关闭。使用项目 token 访问 Hetzner Cloud API v1。

连接器

将 Hetzner MCP 连接到 Meta Muse:云服务器

Hetzner Cloud:带指标和操作记录的服务器、镜像和快照、卷、网络、防火墙、负载均衡器、IP、SSH 密钥、证书、DNS 区域、服务器类型和价格。电源操作工具安装时默认关闭。使用项目 token 访问 Hetzner Cloud API v1。

连接器

Hetzner MCP 服务器:云服务器与防火墙

Hetzner Cloud:带指标和操作记录的服务器、镜像和快照、卷、网络、防火墙、负载均衡器、IP、SSH 密钥、证书、DNS 区域、服务器类型和价格。电源操作工具安装时默认关闭。使用项目 token 访问 Hetzner Cloud API v1。