ofershap/mcp-server-cloudflare · Archived

cloudflare-management

Manage Cloudflare Workers, KV, R2, DNS, and cache via MCP. Use when the user asks to list zones, edit DNS records, purge cache, inspect Workers, read/write KV, or list R2 buckets on Cloudflare.

First seen Mar 5, 2026

Installation

$ npx skills add ofershap/mcp-server-cloudflare --skill cloudflare-management

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 4
License LICENSE
Default branch main
Open issues 1
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,645 B
  • docs SUMMARY.md 222 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Cloudflare Management via MCP

Use this skill when you need to manage Cloudflare zones, DNS records, Workers, KV storage, R2 buckets, or cache purging.

Available Tools

Tool What it does
cf_zones List Cloudflare zones (domains)
cfdnslist List DNS records for a zone
cfdnscreate Create a DNS record
cfdnsdelete Delete a DNS record
cfworkerslist List Workers scripts
cfworkerdelete Delete a Workers script
cfkvnamespaces List KV namespaces
cfkvkeys List keys in a KV namespace
cfkvget Get a value from KV
cfkvput Write a value to KV
cfkvdelete Delete a KV key
cfr2buckets List R2 storage buckets
cfcachepurge Purge cache (all or specific URLs)

Workflow

  1. Start with cf_zones to discover available zones and get zone IDs
  2. Use zone IDs for DNS operations (cfdnslist, cfdnscreate, cfdnsdelete)
  3. Workers, KV, and R2 use the account ID (configured via CLOUDFLAREACCOUNTID)
  4. Cache purge requires a zone ID and optionally specific URLs

Key Patterns

  • DNS record creation requires zone_id, type (A, CNAME, MX, TXT), name, and content
  • KV operations need a namespaceid; get it from cfkv_namespaces first
  • Cache purge with no URLs purges everything for the zone; confirm with the user before doing this
  • All tools require CLOUDFLAREAPITOKEN and CLOUDFLAREACCOUNTID env vars

Error Scenarios

  • 403 or authentication errors: token missing, wrong permissions, or account id not set for Workers/KV/R2
  • Zone or record not found: run cfzones and cfdns_list to confirm ids before create/delete
  • KV namespace errors: pick namespaceid from cfkv_namespaces before get/put/delete
  • Cache purge failures: confirm zone id and URL list format; full-zone purge needs explicit user approval

Safety

  • Always confirm before deleting DNS records, Workers, or KV keys
  • Always confirm before purging all cache (use specific URLs when possible)
  • DNS propagation takes time; warn users that changes may not be instant