Cloudflare MCP Pro
v1.1.0Cloudflare MCP: DNS, Zones, Workers, KV, R2, D1, Pages, WAF, SSL, Email, AI via REST API v4
Values you need
| Variable | What it is | |
|---|---|---|
CLOUDFLARE_API_TOKEN | required secret | Cloudflare API token from dash.cloudflare.com/profile/api-tokens |
CLOUDFLARE_ACCOUNT_ID | optional | Default account ID used when a tool needs an account and you don't pass account_id |
CLOUDFLARE_API_BASE | optional | Override the API base URL (defaults to https://api.cloudflare.com/client/v4) |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add cloudflare-mcp-pro -e 'CLOUDFLARE_API_TOKEN=<CLOUDFLARE_API_TOKEN>' -- npx -y cloudflare-mcp-pro@1.1.0Add to
claude_desktop_config.json{
"mcpServers": {
"cloudflare-mcp-pro": {
"args": [
"-y",
"cloudflare-mcp-pro@1.1.0"
],
"command": "npx",
"env": {
"CLOUDFLARE_API_TOKEN": "<CLOUDFLARE_API_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"cloudflare-mcp-pro": {
"args": [
"-y",
"cloudflare-mcp-pro@1.1.0"
],
"command": "npx",
"env": {
"CLOUDFLARE_API_TOKEN": "<CLOUDFLARE_API_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "CLOUDFLARE_API_TOKEN",
"id": "cloudflare-api-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"cloudflare-mcp-pro": {
"args": [
"-y",
"cloudflare-mcp-pro@1.1.0"
],
"command": "npx",
"env": {
"CLOUDFLARE_API_TOKEN": "${input:cloudflare-api-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.cloudflare-mcp-pro]
command = "npx"
args = ["-y", "cloudflare-mcp-pro@1.1.0"]
env = { "CLOUDFLARE_API_TOKEN" = "<CLOUDFLARE_API_TOKEN>" }For AI agents
- Ask the user for: CLOUDFLARE_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: verify_token, list_accounts, list_zones, get_zone, create_zone, delete_zone, purge_cache, get_zone_analytics, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json