Cloudflare Control
Provides tools for managing Cloudflare infrastructure including DNS records (create, update, delete, list), zone configuration, SSL/TLS settings, cache purging, analytics retrieval, and Page Rules.
Enables inspection and listing of deployed Cloudflare Workers scripts within an account.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Cloudflare Controlupdate the A record for api.example.com to point to 203.0.113.42"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Stop context-switching between dashboards to manage your infrastructure.
Cloudflare Control is an MCP server that lets your AI assistant manage DNS records, purge cache, inspect Workers, configure SSL, and pull analytics directly from Cloudflare, no browser required.
Quick Start
Add this to your mcpServers config:
{
"mcpServers": {
"cloudflare-control": {
"url": "https://your-cloud-run-url/mcp",
"env": {
"CLOUDFLARE_API_TOKEN": "your_token_here"
}
}
}
}Generate your API token at Cloudflare dashboard > My Profile > API Tokens. Grant it Zone:Read, DNS:Edit, Cache Purge, and Workers Scripts:Read permissions.
Before / After
Before: Open Cloudflare dashboard, navigate to the right zone, find DNS records, identify the record ID, edit the value, wait for propagation confirmation.
After:
Prompt: "Update the A record for api.example.com to point to 203.0.113.42"
1. list_zones -> finds zone_id for example.com: "abc123xyz"
2. list_dns_records(zone_id: "abc123xyz", name: "api.example.com") -> finds record_id: "rec456"
3. update_dns_record(zone_id: "abc123xyz", record_id: "rec456", type: "A", name: "api.example.com", content: "203.0.113.42")
Result: { "message": "DNS record updated", "record": { "name": "api.example.com", "content": "203.0.113.42", "proxied": true } }Tools
Tool | What it does |
| List all domains in your Cloudflare account with IDs and status |
| Get full metadata for a specific zone by ID |
| List A, AAAA, CNAME, MX, TXT and other DNS records for a zone |
| Create a new DNS record (A, CNAME, TXT, MX, etc.) |
| Update an existing DNS record by record ID |
| Permanently remove a DNS record from a zone |
| Purge cached content for specific URLs or the entire zone |
| Fetch request counts, bandwidth, threats, and cache stats over a time range |
| List all deployed Cloudflare Workers scripts in an account |
| Read SSL mode, minimum TLS version, and HSTS config for a zone |
| Set SSL/TLS encryption mode (off, flexible, full, full_strict) |
| List URL-based Page Rules including redirects and cache overrides |
Who is this for?
Solo founders and indie hackers who manage multiple domains and want to make DNS changes without leaving their AI workflow.
Platform engineers who need to purge cache, audit Workers, or triage SSL errors fast during an incident.
Agencies managing client infrastructure who want to delegate Cloudflare operations to an AI assistant with read/write API access.
Health Check
GET /healthReturns:
{ "status": "ok", "server": "cloudflare-control", "version": "1.0.0", "tools": 12 }Also available at GET /.
Environment Variables
Variable | Required | Description |
| Yes | Cloudflare API token with zone and DNS permissions |
| No | HTTP port (default: 8080) |
Built by Mastermind HQ
MIT License
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/josephtandle/cloudflare-mcp-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server