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 整合