MCP Cloudflare DNS

io.github.Ayo-Fam由 GitHub 账号 Ayo-Fam 发布v0.1.1更新于 Nov 10, 2026

Cloudflare DNS MCP server: manage zones, records, cache purge, and page rules.

发布方自己的服务:Cloudflare

概览

AI 生成的概览

Cloudflare DNS MCP 服务器,让助手查看区域与页面规则,读取、创建、更新或删除 DNS 记录并清除缓存。

可以做什么
  • 查看区域:列出区域、获取单个区域及其关键设置
  • 管理 DNS 记录:列出、获取、创建、更新和删除记录
  • 边缘操作:清除缓存、列出页面规则
  • 返回规范化的 JSON 结果,并对可重试的 Cloudflare 失败进行重试
适用场景
适合希望从 MCP 客户端直接完成 Cloudflare DNS 与缓存变更、而不必每次改动都打开 Cloudflare 控制台的场景,例如日常记录更新或部署时的缓存失效。
运行要求
以 PyPI 包 mcp-cloudflare-dns 通过 stdio 在本地运行(Python,可用 pip 安装或经 uvx 运行)。需要在 CF_API_TOKEN 中提供具备 Zone DNS Edit、Zone Read 和 Cache Purge 权限的 Cloudflare API 令牌,并需能访问 Cloudflare API 的网络。
安装前请注意
该令牌对其覆盖的区域拥有 DNS 记录写入和清除缓存的权限,应尽量缩小授权范围。删除记录和完整清除缓存受 CF_ALLOW_DESTRUCTIVE 控制,启用后助手即可删除记录并清空整个缓存。该包为 beta 版本(0.1.1)。

安装

在 SourceWeft 中

  1. 打开 控制台中的 MCP Cloudflare DNS,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-cloudflare-dns

Cloudflare DNS MCP server for operators who need zone, record, cache, and page-rule control from an MCP client without opening the Cloudflare dashboard for every change.

Release posture: beta package, version 0.1.1 from pyproject.toml.

Choose your path

You are...Start hereThen
Installing the server in Claude/Codex/Cursordocs/start-here.mdQuick start below
Verifying what the server can touchAvailable toolsdocs/architecture.md
Auditing packaging or release metadatapyproject.tomlserver.json

Architecture

mermaid
flowchart TD  U[AI operator] --> C[MCP client]  C --> S[FastMCP server]  E[CF_API_TOKEN] --> S  S --> T[Tool handlers]  T --> R[Retry wrapper]  R --> A[Cloudflare API]  A --> R --> T --> C

Request flow

mermaid
flowchart TD  Q[Operator asks for a DNS change] --> H[Selected MCP tool]  H --> I[Load token and build client]  I --> J{Cloudflare call succeeds?}  J -- yes --> K[Return normalized JSON result]  J -- retryable --> L[Backoff and retry]  L --> J  J -- no --> M[Return error payload]

Quick start

  1. Install the package.
bash
python -m pip install mcp-cloudflare-dns
  1. Export a token with DNS permissions.
bash
export CF_API_TOKEN="your-cloudflare-api-token"
  1. Register it in your MCP client.
json
{  "mcpServers": {    "cloudflare-dns": {      "command": "uvx",      "args": ["mcp-cloudflare-dns"],      "env": {        "CF_API_TOKEN": "your-cloudflare-api-token"      }    }  }}

Available tools

Tool groupToolsPurpose
Zone inventorylist_zones, get_zone, get_zone_settingsInspect available zones and key settings
DNS recordslist_dns_records, get_dns_record, create_dns_record, update_dns_record, delete_dns_recordRead and mutate records
Edge actionspurge_cache, list_page_rulesInvalidate cached content and inspect page rules

delete_dns_record and full-cache actions stay gated behind the destructive env flags described in docs/start-here.md.

Runtime proof

ClaimProof
Package entry point is stablemcp-cloudflare-dns = "cf.server:main" in pyproject.toml
Server is MCP-specific, not a generic CLIFastMCP("mcp-cloudflare-dns") in cf/server.py
Cloudflare failures are retried_call() in cf/server.py
Release artifacts are builtdist/ wheel and tarball are checked into the repo

Repo map

PathPurpose
cf/server.pyFastMCP tool surface, env loading, retry wrapper
pyproject.tomlPackage metadata, version, script entry point
server.jsonRegistry-facing metadata for MCP discovery
docs/start-here.mdSetup, env, validation, common failures
docs/architecture.mdComponent map and request lifecycle

Validation

CheckCommand
Import compilespython -m compileall cf
Package buildspython -m build
README links stay localrg '\\]\\(([^)]+\\.md)\\)' README.md docs/

License

MIT

Project context for new tasks

Use INDEX.md to find task-specific contracts; consult prompt.md when product direction is relevant. Historical examples do not select the current task.

来源:README.md,提交 1374f79

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Cloudflare 集成