Cloudflare MCP Pro

v1.1.0
io.github.helbertparanhos/cloudflare-mcp-pro Checked 11 hours ago Published 5 months ago

Cloudflare MCP: DNS, Zones, Workers, KV, R2, D1, Pages, WAF, SSL, Email, AI via REST API v4

Values you need

VariableWhat it is
CLOUDFLARE_API_TOKENrequired secret Cloudflare API token from dash.cloudflare.com/profile/api-tokens
CLOUDFLARE_ACCOUNT_IDoptional Default account ID used when a tool needs an account and you don't pass account_id
CLOUDFLARE_API_BASEoptional 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.0
Add 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

  1. Ask the user for: CLOUDFLARE_API_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: verify_token, list_accounts, list_zones, get_zone, create_zone, delete_zone, purge_cache, get_zone_analytics, ….
  5. 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