Cloudflare API (Direct REST)
Teaches Claude to hit the Cloudflare REST API directly for bulk, fleet-wide, and scripted operations that wrangler or MCP handle poorly.
Web & APIIntermediate★ 1,025⑂ 103AI score 9/10Last updated: Jul 2, 2026
What it does
Gives Claude a practical playbook for the Cloudflare REST API (api.cloudflare.com/client/v4).
- Tool-choice matrix: which tasks belong to wrangler, MCP, or raw API (single ops → wrangler/MCP; bulk/fleet/scripted → API).
- Auth setup: create a minimally scoped API token, verify it, and look up zone/account IDs.
- Ready workflows: bulk DNS create/export/IP find-and-replace, custom hostnames for white-label SaaS domains, email routing rules, cache purge (files/tags/prefixes), bulk redirect rules generated from CSV, fleet-wide zone settings, WAF and rate-limit rulesets, Worker routes, GraphQL analytics.
- Rate limits: real numbers (1200 req/5 min, 1000 purges/day) plus
sleep 0.25andxargs -Pmitigation. - Script generation rules: token from env, pagination handling,
jq '.success'error checks,--dry-runsupport.
D1/R2/KV/Vectorize/Queues patterns live in the bundled references/developer-platform-api.md.
Who it's for
- Agencies and freelancers managing many domains or client zones
- Teams running Workers-based SaaS that provision customer custom hostnames
- DevOps/infra engineers doing domain migrations, IP swaps, or hundreds of redirects
Examples
- "Import these 40 DNS records from CSV into example.com" → batch script with rate-limit sleeps and per-record success checks
- "Set SSL mode to full and min TLS 1.2 across every active zone" → fleet loop over zone IDs
- "Rate limit /api/ to 100 requests per minute per IP" →
http_ratelimitruleset call
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/jezweb/claude-skills/HEAD/plugins/cloudflare/skills/cloudflare-api/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the plugins/cloudflare/skills/cloudflare-api folder from the GitHub repo jezweb/claude-skills into my ~/.claude/skills/cloudflare-api/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/jezweb/claude-skills.git && mkdir -p ~/.claude/skills && cp -r claude-skills/plugins/cloudflare/skills/cloudflare-api ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/jezweb/claude-skills.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the skill (including its references folder):
cp -r claude-skills/plugins/cloudflare/skills/cloudflare-api ~/.claude/skills/ - In the Cloudflare dashboard go to My Profile → API Tokens and create a token with only the scopes you need, then export it:
export CLOUDFLARE_API_TOKEN="your-token"(add it to ~/.zshrc or ~/.bashrc to persist). - Make sure
jqis installed:brew install jqorsudo apt install jq. - Restart Claude Code and try a prompt like "use the cloudflare api to bulk-update DNS records".
View source on GitHub ↗License: MIT