MCP Cloudflare DNS

io.github.Ayo-FamPublished by GitHub account Ayo-Famv0.1.1Updated Nov 10, 2026

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

The publisher's own server: Cloudflare

Overview

AI-generated overview

Cloudflare DNS MCP server that lets an assistant inspect zones and page rules and read, create, update or delete DNS records and purge cache.

What you can do
  • Inspect zones: list zones, get a zone and read its key settings
  • Manage DNS records: list, get, create, update and delete records
  • Edge actions: purge cache and list page rules
  • Return normalized JSON results, with retries on retryable Cloudflare failures
When to use it
Useful when you want to make Cloudflare DNS and cache changes from an MCP client instead of opening the Cloudflare dashboard for every edit, for example routine record updates or cache invalidation during a deploy.
Requirements
Runs locally over stdio as the PyPI package mcp-cloudflare-dns (Python, installed with pip or run via uvx). Requires a Cloudflare API token in CF_API_TOKEN with Zone DNS Edit, Zone Read and Cache Purge permissions, plus network access to the Cloudflare API.
Before you install
The token grants write access to DNS records and cache purge for the zones it covers, so scope it narrowly. Record deletion and full cache purge are gated behind CF_ALLOW_DESTRUCTIVE; enabling it lets the assistant remove records and flush the whole cache. The package is a beta release (0.1.1).

Installation

In SourceWeft

  1. Open MCP Cloudflare DNS in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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.

Source: README.md at commit 1374f79

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Cloudflare integrations