MCP Cloudflare DNS
v0.1.1Cloudflare DNS MCP server: manage zones, records, cache purge, and page rules.
Values you need
| Variable | What it is | |
|---|---|---|
CF_API_TOKEN | required secret | Cloudflare API token with Zone DNS Edit, Zone Read, and Cache Purge permissions |
CF_ALLOW_DESTRUCTIVE | optional | Set to 'true' to enable DNS record deletion and full cache purge |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add mcp-cloudflare-dns -e 'CF_API_TOKEN=<CF_API_TOKEN>' -- uvx mcp-cloudflare-dns==0.1.1Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-cloudflare-dns": {
"args": [
"mcp-cloudflare-dns==0.1.1"
],
"command": "uvx",
"env": {
"CF_API_TOKEN": "<CF_API_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-cloudflare-dns": {
"args": [
"mcp-cloudflare-dns==0.1.1"
],
"command": "uvx",
"env": {
"CF_API_TOKEN": "<CF_API_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "CF_API_TOKEN",
"id": "cf-api-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"mcp-cloudflare-dns": {
"args": [
"mcp-cloudflare-dns==0.1.1"
],
"command": "uvx",
"env": {
"CF_API_TOKEN": "${input:cf-api-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-cloudflare-dns]
command = "uvx"
args = ["mcp-cloudflare-dns==0.1.1"]
env = { "CF_API_TOKEN" = "<CF_API_TOKEN>" }For AI agents
- Ask the user for: CF_API_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_zones, get_zone, get_zone_settings, list_dns_records, get_dns_record, create_dns_record, update_dns_record, delete_dns_record, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json