
MCP Cloudflare
io.github.crunchtoolsPublished by GitHub account crunchtoolsv0.1.1Updated Oct 24, 2026
Secure MCP server for Cloudflare DNS, Transform Rules, and Page Rules
The publisher's own server: Cloudflare
Overview
A local MCP server that lets an assistant manage Cloudflare zones, DNS records, Transform Rules, Page Rules, Access apps and cache through a Cloudflare API.
- What you can do
- List zones and get zone details by ID or domain name, and list, get, create, update and delete DNS records of common types with filtering. List and set request header, response header and URL rewrite Transform Rules. List, create, update and delete Page Rules for redirects, cache settings and SSL modes. Inspect Zero Trust Access organizations, apps and policies, and create or delete Access apps and policies. Purge cache by URL, tag, host, prefix or everything.
- When to use it
- Useful when you want an assistant to inspect or change Cloudflare configuration for your domains, such as adding DNS records, setting security headers, adjusting page rules or clearing cache, without opening the dashboard.
- Requirements
- Runs locally over stdio as a Python package installed with uvx or pip, or as a container image. Needs a Cloudflare API token supplied through the CLOUDFLARE_API_TOKEN environment variable, with permissions matching the operations you want (read-only, DNS-only or full management sets are described). Network access to the Cloudflare API.
Installation
In SourceWeft
- Open MCP Cloudflare in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
MCP Cloudflare CrunchTools
A secure MCP (Model Context Protocol) server for Cloudflare DNS, Transform Rules, Page Rules, and cache management.
Overview
This MCP server is designed to be:
- Secure by default - Threat modeling, input validation, and token protection
- No third-party services - Runs locally via stdio, your API token never leaves your machine
- Cross-platform - Works on Linux, macOS, and Windows
- Automatically updated - GitHub Actions monitor for CVEs and update dependencies
- Containerized - Available at
quay.io/crunchtools/mcp-cloudflarebuilt on Hummingbird Python base image
Naming Convention
Why Hummingbird?
The container image is built on the Hummingbird Python base image from Project Hummingbird, which provides:
- Minimal CVE exposure - Hummingbird images are built with a minimal package set, dramatically reducing the attack surface compared to general-purpose images
- Regular updates - Security patches are applied promptly, keeping CVE counts low
- Optimized for Python - Pre-configured Python environment with uv package manager for fast, reproducible builds
- Production-ready - Designed for production workloads with proper signal handling and non-root user defaults
This means your MCP server runs in a hardened environment with fewer vulnerabilities than typical Python container images
Features
Zone Management (2 tools)
list_zones- List all zones accessible by your API tokenget_zone- Get zone details by ID or domain name
DNS Records (5 tools)
list_dns_records- List DNS records with filteringget_dns_record- Get a single DNS recordcreate_dns_record- Create A, AAAA, CNAME, MX, TXT, NS, SRV, CAA recordsupdate_dns_record- Update existing recordsdelete_dns_record- Delete records
Transform Rules (6 tools)
list_request_header_rules/set_request_header_rules- Modify request headerslist_response_header_rules/set_response_header_rules- Modify response headerslist_url_rewrite_rules/set_url_rewrite_rules- URL path/query rewrites
Page Rules (4 tools)
list_page_rules- List all page rulescreate_page_rule- Create redirects, cache settings, SSL modesupdate_page_rule- Modify existing rulesdelete_page_rule- Remove rules
Access (8 tools)
get_access_organization- The Zero Trust organization and its team login domainlist_access_apps/get_access_app- Applications on a zone, with their audience tagscreate_access_app/delete_access_app- Put a hostname behind an Access login, or take it outlist_access_policies- Who an application admitscreate_access_policy/delete_access_policy- Allow, deny or bypass by email, email domain, IP or everyone
Cache Management (1 tool)
purge_cache- Purge by URL, tag, host, prefix, or everything
Installation
With uvx (Recommended)
With pip
With Container
Configuration
Creating a Cloudflare API Token
-
Navigate to API Tokens
- Go to https://dash.cloudflare.com/profile/api-tokens
- Click "Create Token"
- Click "Get started" next to "Create Custom Token"
-
Configure Token Name
- Enter:
mcp-cloudflare-crunchtools
- Enter:
-
Configure Permissions
The Permissions section has three dropdowns per row:
- First dropdown: Resource type (
AccountorZone) - Second dropdown: Specific permission category
- Third dropdown: Access level (
ReadorEdit)
Click "+ Add more" to add each permission row. For full management, add:
- First dropdown: Resource type (
-
Configure Zone Resources
- First dropdown: Select "Include"
- Second dropdown: Select "All zones" or "Specific zone"
-
Configure Client IP Address Filtering (Optional)
- Click "Use my IP" button to restrict token to your current IP
-
Create and Copy Token
- Click "Continue to summary" → "Create Token"
- IMPORTANT: Copy the token immediately - it's only shown once!
Add to Claude Code
Or for the container version:
Permission Sets by Use Case
Read-Only (viewing only)
DNS Management Only
Full Management (all features)
Usage Examples
List Your Zones
Create a DNS Record
Add Security Headers
Purge Cache
Security
This server was designed with security as a primary concern. See SECURITY.md for:
- Threat model and attack vectors
- Defense in depth architecture
- Token handling best practices
- Input validation rules
- Audit logging
Key Security Features
-
Token Protection
- Stored as SecretStr (never accidentally logged)
- Environment variable only (never in files or args)
- Sanitized from all error messages
-
Input Validation
- Pydantic models for all inputs
- Allowlist for record types, actions
- Strict format validation for IDs
-
API Hardening
- Hardcoded API base URL (prevents SSRF)
- TLS certificate validation
- Request timeouts
- Response size limits
-
Automated CVE Scanning
- GitHub Actions scan dependencies weekly
- Automatic PRs for security updates
- Dependabot alerts enabled
Development
Setup
Run Tests
Lint and Type Check
Build Container
License
AGPL-3.0-or-later
Contributing
Contributions welcome! Please read SECURITY.md before submitting security-related changes.
Links
Source: README.md at commit 8ff53ac
Tools
0Version history
1- v0.1.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Cloudflare integrations

Cloudflare
com.cloudflare.mcpOfficial publisher
Cloudflare's documentation MCP server: lets an assistant search Cloudflare docs and read a Pages-to-Workers migration guide.

Bubble to Cloudflare App & Data Migrator
Published by GitHub account Red-Center-Studio
Moves a Bubble app's data, files and UI into the owner's own Cloudflare account (D1, R2, Workers), with audit, plan, preview and verification steps.

Cloudflare R2
Published by GitHub account magurelabs
Uploads files to your own Cloudflare R2 bucket and returns a shareable link, so an assistant can publish files to your object storage.

Cloudflare Tools
Published by GitHub account craft-agent
Cloudflare tools for coding agents: read and change zones, DNS records, Workers, Pages, storage, tunnels and more.

Cloudflare Mcp
Published by GitHub account mrfentmen
Query Cloudflare v4 (API token; set CLOUDFLARE_API_TOKEN, Bearer): zones, accounts, DNS records.