MCP Cloudflare DNS logo

MCP Cloudflare DNS

Manage Cloudflare zones, DNS records, cache purges, and page-rule inspection through MCP tools.

Install MCP Cloudflare DNS

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-cloudflare-dns": {
      "command": "uvx",
      "args": [
        "mcp-cloudflare-dns"
      ],
      "env": {
        "CF_API_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env CF_API_TOKEN=YOUR_VALUE_HERE --transport stdio mcp-cloudflare-dns -- uvx mcp-cloudflare-dns

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 10 tools correctly ().

Overview

MCP Cloudflare DNS connects an MCP client to the Cloudflare API for zone inspection, DNS record changes, cache purges, and page-rule listing. It runs as a FastMCP server, loads credentials from CF_API_TOKEN, and returns normalized JSON results after Cloudflare requests. Retryable API failures are retried with backoff. Use it when an AI operator needs routine Cloudflare DNS and zone controls without opening the Cloudflare dashboard.

Use cases

  • Inspect Cloudflare zones and their key settings
  • List and retrieve DNS records for an account
  • Create or update DNS records through an MCP client
  • Purge a zone’s Cloudflare cache after a deployment
  • Review page rules without opening the Cloudflare dashboard

Key features

  • Cloudflare zone inventory and detail inspection
  • DNS record creation, updates, retrieval, and deletion
  • Security and performance settings inspection
  • Zone cache purging
  • Page-rule listing
  • Retries for retryable Cloudflare API failures

Tools10

What MCP Cloudflare DNS lets your agent do. Expand a tool for its parameters.

Verified live~1.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/14 checks healthy over the last 117d

What it can do

From the 10 tools this server returned when we ran it.

Can delete or modify data · 2Read-only tools · 8
Network at startup2 connections
Files written at startup11

Observed 2026-11-15 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · mcp-cloudflare-dns (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit17d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed10Callable tools this server registers over MCP.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Cloudflare DNS works

What MCP Cloudflare DNS does

MCP Cloudflare DNS exposes Cloudflare account and zone operations as tools for an MCP client. It covers zone inventory, selected zone settings, DNS record management, cache invalidation, and page-rule inspection. The zone settings response includes values such as SSL mode, security level, minification, Always Use HTTPS, and Brotli.

DNS tools support both read and write workflows. An operator can list zones, inspect an individual zone, list records, retrieve one record, create a record, or update selected fields on an existing record. Record deletion is available behind a destructive-operation safety setting. Cache purge is also available for a zone, while page rules can be listed for inspection.

How it works

The server uses FastMCP as its MCP interface. An MCP client selects a tool, and the server loads the Cloudflare API token before constructing the API request. Successful Cloudflare responses are converted into normalized JSON for the client. Retryable failures pass through a retry wrapper with backoff; non-retryable failures are returned as error payloads.

The package exposes an mcp-cloudflare-dns command entry point. It can be launched directly through an MCP client configuration using uvx, allowing the client to start the server over standard input and output. The documented client setup covers Claude, Codex, and Cursor.

Setup and configuration

Install the package with:

bash
python -m pip install mcp-cloudflare-dns

Set a Cloudflare API token with the DNS permissions needed for the operations you intend to perform:

server.ts
export CF_API_TOKEN="your-cloudflare-api-token"

An MCP client can start the package with a configuration such as:

config.json
{
  "mcpServers": {
    "cloudflare-dns": {
      "command": "uvx",
      "args": ["mcp-cloudflare-dns"],
      "env": {
        "CF_API_TOKEN": "your-cloudflare-api-token"
      }
    }
  }
}

Set CF_ALLOW_DESTRUCTIVE=true when enabling the destructive DNS deletion operation. Keep this capability disabled when an environment should permit inspection and non-destructive changes only.

Tools and capabilities

  • list_zones and get_zone inspect Cloudflare zones.
  • get_zone_settings reads key security and performance settings.
  • list_dns_records and get_dns_record retrieve DNS records.
  • create_dns_record adds a DNS record.
  • update_dns_record changes only the fields included in the request.
  • delete_dns_record removes a record when destructive access is enabled.
  • purge_cache invalidates Cloudflare cache for a zone.
  • list_page_rules displays page rules for a zone.

The project is released under the MIT license and is positioned as a beta package.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Cloudflare DNS

MCP Cloudflare DNS is an MCP server that connects an MCP client to the Cloudflare API for zone and DNS management. Its tools list zones, inspect settings and records, create or update records, delete records with a safety flag, purge cache, and list page rules.

Install it with `python -m pip install mcp-cloudflare-dns`. Set `CF_API_TOKEN` to a Cloudflare API token, then configure your MCP client to launch `mcp-cloudflare-dns`, commonly through the documented `uvx` command.

Set the `CF_API_TOKEN` environment variable to a Cloudflare API token with the DNS permissions required for your operations. Pass the variable in the MCP client’s server configuration or export it in the server’s environment.

Set `CF_ALLOW_DESTRUCTIVE=true` to enable the `delete_dns_record` tool. Without that safety setting, the server does not permit the destructive deletion operation.

Yes, Cursor is one of the MCP clients covered by the documented setup. Register the server with its command and environment configuration, and provide `CF_API_TOKEN` for Cloudflare API access.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Cloudflare DNS AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-cloudflare-dns?style=directory)](https://allmcps.com/mcp/mcp-cloudflare-dns)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-cloudflare-dns"><img src="https://allmcps.com/api/badge/mcp-cloudflare-dns?style=directory" alt="MCP Cloudflare DNS on AllMCPs" /></a>