helbertparanhos/cloudflare-mcp-pro

☁️ Cloud Platforms
0 Views
0 Installs

πŸ“‡ 🏠 🍎 πŸͺŸ 🐧 - The most complete Cloudflare MCP β€” 69 tools over the REST API v4 (DNS, Zones, Workers, KV, R2, D1, Pages, WAF, SSL, Email Routing, Logpush, Workers AI) in a single local stdio server, with a server-side human-approval gate on every mutation. npx -y cloudflare-mcp-pro.

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "helbertparanhos-cloudflare-mcp-pro": {
      "command": "npx",
      "args": [
        "-y",
        "helbertparanhos-cloudflare-mcp-pro"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

Cloudflare MCP Pro ☁️

MCP server for the Cloudflare REST API v4 β€” 69 tools across DNS, Zones, Workers, KV, R2, D1, Pages, Queues, Tunnels, SSL, WAF, Email Routing, Logpush and Workers AI in a single local stdio server authenticated by API token.

npm version License: MIT GitHub Stars GitHub Forks GitHub Issues Glama Quality

TypeScript Node.js MCP Claude Code Cursor Claude Desktop

Instagram YouTube LinkedIn Buy Me A Coffee Strat Academy

Unlike the official Cloudflare MCP offering (13 separate remote, OAuth-based servers), cloudflare-mcp-pro runs locally over stdio, authenticates with a single API token, and consolidates the most-used Cloudflare operations into one server with consistent verb_object tool names β€” ideal for Claude Code, CI, and scripted automation.

Features

  • DNS β€” list/create/update/delete records, DNSSEC, BIND zone-file export
  • Zones β€” list/get/create/delete, settings (SSL mode, HTTPS, min TLS…), cache purge, GraphQL analytics
  • Workers β€” deploy (ES module), routes, secrets, cron triggers, list/get/delete
  • KV / R2 / D1 β€” namespaces + key CRUD, bucket management, databases + SQL queries
  • Pages / Queues / Tunnels β€” list/get projects, queue management, tunnel inspection
  • Security β€” WAF rulesets, IP/ASN/country access rules, page rules, SSL certificate packs, custom hostnames (SaaS), Turnstile widgets
  • Email Routing β€” rules + destination addresses
  • Logpush β€” list/create jobs (zone or account scoped)
  • Workers AI β€” model catalog + inference (text generation, embeddings, classification)
  • Human-approval gate β€” every mutating tool requires confirm: true; without it the tool returns a non-executing preview (with secrets redacted) instead of acting (see below)
  • MCP annotations β€” every tool carries readOnly/destructive/idempotent hints so clients can gate dangerous actions
  • Auto-pagination β€” fetch_all: true on list tools follows every page
  • Single API-token auth, automatic retry + rate-limit (429/5xx) handling, and actionable error messages

Installation

npm install
npm run build

Or run directly once published:

npx -y cloudflare-mcp-pro

Configuration

Copy .env.example to .env and fill in:

VariableRequiredDescription
CLOUDFLARE_API_TOKENβœ…API token from https://dash.cloudflare.com/profile/api-tokens
CLOUDFLARE_ACCOUNT_IDoptionalDefault account ID used when a tool doesn't receive account_id
CLOUDFLARE_API_BASEoptionalOverride the API base URL

Token scopes depend on what you use, e.g.: Zone:Read, DNS:Edit, Workers Scripts:Edit, Workers KV Storage:Edit, Workers R2 Storage:Edit, D1:Edit, Pages:Edit, Account Analytics:Read. Run the verify_token tool to confirm your token works.

Testing

Run the automated test suite (no network β€” fetch is mocked):

npm test

It covers the human-approval gate, secret redaction, the security validations (hex IDs, path-segment encoding, model-id allowlist, purge mutual-exclusion, analytics hour-alignment), the API client (query serialization, 429 retry, error mapping, pagination + clamp, GraphQL non-JSON guard) and the Zod→JSON-Schema converter.

Interactive testing with the MCP inspector:

npx @modelcontextprotocol/inspector dist/index.js

Add to Claude Code

In .claude/settings.json β†’ mcpServers:

{
  "mcpServers": {
    "cloudflare-mcp-pro": {
      "command": "node",
      "args": ["projects/cloudflare-mcp-pro/dist/index.js"],
      "env": {
        "CLOUDFLARE_API_TOKEN": "your-token",
        "CLOUDFLARE_ACCOUNT_ID": "your-account-id"
      }
    }
  }
}

Add to Claude Desktop

  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "cloudflare-mcp-pro": {
      "command": "node",
      "args": ["/absolute/path/projects/cloudflare-mcp-pro/dist/index.js"],
      "env": {
        "CLOUDFLARE_API_TOKEN": "your-token",
        "CLOUDFLARE_ACCOUNT_ID": "your-account-id"
      }
    }
  }
}

Human-approval gate

Every mutating tool (any create_*, update_*, delete_*, deploy_*, put_*, edit_*, purge_cache, query_d1, run_ai, …) is gated server-side. Read-only tools (list_*, get_*, verify_token, export_dns_records, analytics) are never gated.

  • Calling a mutating tool without confirm: true returns a confirmation_required preview describing the tool, the risk level, and the (secret-redacted) arguments β€” and does not execute.
  • Re-call the same tool with "confirm": true to actually perform it, after a human has approved.

This gate is enforced in the server regardless of the MCP client, and works alongside the MCP annotations (destructiveHint) that prompt the human in compatible clients like Claude Code. Secret values (e.g. Worker secret text) are redacted from previews and never appear in error messages.

// 1) preview (no confirm) β†’ nothing happens
delete_zone { "zone_id": "..." }
// β†’ { "status": "confirmation_required", "risk": "DESTRUCTIVE β€” ...", ... }

// 2) after human approval
delete_zone { "zone_id": "...", "confirm": true }   // actually deletes

Tools (69)

List tools accept fetch_all: true to follow pagination. Mutating tools accept confirm: true (see the gate above). Every tool advertises MCP annotations (readOnlyHint / destructiveHint / idempotentHint).

Account β€” verify_token, list_accounts

Zones & settings β€” list_zones, get_zone, create_zone, delete_zone, purge_cache, get_zone_analytics, get_zone_setting, update_zone_setting

DNS β€” list_dns_records, create_dns_record, update_dns_record, delete_dns_record, get_dnssec, edit_dnssec, export_dns_records

Workers β€” list_workers, get_worker, deploy_worker, delete_worker, list_worker_routes, create_worker_route, delete_worker_route, put_worker_secret, delete_worker_secret, update_worker_cron

KV β€” list_kv_namespaces, create_kv_namespace, kv_list_keys, kv_get, kv_put, kv_delete

R2 β€” list_r2_buckets, create_r2_bucket, delete_r2_bucket

D1 β€” list_d1_databases, create_d1_database, query_d1

Pages β€” list_pages_projects, get_pages_project

WAF & firewall β€” list_firewall_rulesets, get_ruleset, list_access_rules, create_access_rule, delete_access_rule

Page rules β€” list_page_rules, create_page_rule, delete_page_rule

SSL/TLS β€” list_certificate_packs, get_ssl_verification, order_certificate_pack

Custom hostnames (SaaS) β€” list_custom_hostnames, create_custom_hostname, delete_custom_hostname

Email Routing β€” list_email_rules, create_email_rule, list_email_destinations

Queues β€” list_queues, create_queue, delete_queue

Tunnels β€” list_tunnels, get_tunnel

Turnstile β€” list_turnstile_widgets, create_turnstile_widget

Workers AI β€” list_ai_models, run_ai

Logpush β€” list_logpush_jobs, create_logpush_job

Author

Helbert Paranhos / Strat Academy β€” stratacademy.com.br

License

MIT β€” see LICENSE.

Related MCP Servers

4everland/4everland-hosting-mcp

πŸŽ–οΈ πŸ“‡ 🏠 🍎 🐧 - An MCP server implementation for 4EVERLAND Hosting enabling instant deployment of AI-generated code to decentralized storage networks like Greenfield, IPFS, and Arweave.

☁️ Cloud Platforms0 views
aashari/mcp-server-aws-sso

πŸ“‡ ☁️ 🏠 - AWS Single Sign-On (SSO) integration enabling AI systems to securely interact with AWS resources by initiating SSO login, listing accounts/roles, and executing AWS CLI commands using temporary credentials.

☁️ Cloud Platforms0 views
agentmetal/mcp

πŸŽ–οΈ πŸ“‡ ☁️ - Provision, SSH into, run commands on, and manage Linux VPSes from an agent β€” pay USDC over x402 or by card over HTTP 402, a running box in under 60s. No signup, no API key to buy.

☁️ Cloud Platforms0 views
alexbakers/mcp-ipfs

πŸ“‡ ☁️ - upload and manipulation of IPFS storage

☁️ Cloud Platforms0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Unclaimed listing (imported or pending owner verification). Claim it β†’
β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.