Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
← Back to list

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.25 and xargs -P mitigation.
  • Script generation rules: token from env, pagination handling, jq '.success' error checks, --dry-run support.

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

  1. "Import these 40 DNS records from CSV into example.com" → batch script with rate-limit sleeps and per-record success checks
  2. "Set SSL mode to full and min TLS 1.2 across every active zone" → fleet loop over zone IDs
  3. "Rate limit /api/ to 100 requests per minute per IP" → http_ratelimit ruleset 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/jezweb/claude-skills.git
  3. Create the skills directory: mkdir -p ~/.claude/skills
  4. Copy the skill (including its references folder): cp -r claude-skills/plugins/cloudflare/skills/cloudflare-api ~/.claude/skills/
  5. 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).
  6. Make sure jq is installed: brew install jq or sudo apt install jq.
  7. Restart Claude Code and try a prompt like "use the cloudflare api to bulk-update DNS records".