mcp-cloudflare-dns
Provides tools for managing Cloudflare DNS zones, DNS records (CRUD), cache purging, and page rules, enabling AI assistants to control Cloudflare DNS settings programmatically.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-cloudflare-dnsList all DNS records for example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-cloudflare-dns
Cloudflare DNS MCP server. Manage zones, DNS records, cache, and page rules from Claude, Cursor, Codex, or any MCP-compatible AI assistant.
# Install: uvx mcp-cloudflare-dns
# Ask your AI:
"List all DNS records for example.com"
"Add a CNAME record pointing api.example.com to my-app.vercel.app"
"Purge the cache for https://example.com/products"
"What page rules are active on example.com?"Why this one?
The official Cloudflare MCP covers Workers, KV, D1, and R2 — but has zero DNS tools. This server fills that gap.
Feature | This server | Official CF MCP |
DNS record CRUD | Yes | No |
Zone listing | Yes | No |
Cache purge | Yes | No |
Page rules | Yes | No |
Zone settings | Yes | No |
Workers/KV/D1/R2 | No | Yes |
They complement each other — use both.
Related MCP server: cloudflare-dns-mcp-server
Quickstart
1. Get a Cloudflare API token — dash.cloudflare.com/profile/api-tokens → Create Token → use "Edit zone DNS" template
2. Add to your MCP client config:
{
"mcpServers": {
"cloudflare-dns": {
"command": "uvx",
"args": ["mcp-cloudflare-dns"],
"env": {
"CF_API_TOKEN": "your-cloudflare-api-token"
}
}
}
}3. Restart your AI client. Done.
Available tools
Tool | What it does |
| All zones on your account with status and nameservers |
| Details for a specific zone |
| SSL mode, security level, minification, HTTPS redirect, etc. |
| All DNS records, filterable by type or name |
| Single record by ID |
| Add A, AAAA, CNAME, MX, TXT, NS, etc. |
| Edit content, TTL, proxy status, or comment |
| Remove a record (requires |
| Purge specific URLs or entire zone cache |
| All page rules with targets and actions |
Environment variables
Variable | Required | Description |
| Yes | Cloudflare API token (also accepts |
| No | Set to |
| No | Set to |
| No | SSE bind host (default: |
| No | SSE bind port (default: |
API token permissions
Minimum required scopes for your token:
Resource | Permission |
Zone — DNS | Edit |
Zone — Zone | Read |
Zone — Cache Purge | Purge |
Zone — Page Rules | Edit (if using page rules tools) |
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/apexradius/mcp-cloudflare-dns'
If you have feedback or need assistance with the MCP directory API, please join our Discord server