Cloudflare MCP Server — Hosted for Any AI Agent
MCP Server shield Key RequiredCloudflare Workers, KV, R2, D1, Pages, DNS via Cloudflare's official MCP
Use with AI AssistantsMCP
Connect Claude, Cursor, or any MCP-compatible client — then call tools directly
① Add This MCP Server
Paste into your AI client config — then all its tools are available instantly.
{
"mcpServers": {
"cloudflare-platform": {
"url": "https://mcp.aerostack.dev/s/aerostack/mcp-cloudflare",
"headers": {
"Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
}
}
}
}Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.
② Call a Tool
Ask your AI assistant to call a specific tool, or send raw JSON-RPC:
Natural Language Prompt
“Use the list_zones tool to list all dns zones (domains) in the cloudflare account with status and nameserver details”
Using a Workspace?
Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.
description Overview
Cloudflare Platform MCP
Official proxy MCP — Cloudflare Workers, KV, R2, D1, Pages, DNS via Cloudflare's official MCP
Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-cloudflare
Overview
Cloudflare Platform is a proxy MCP server that forwards requests directly to the official Cloudflare MCP endpoint at https://mcp.cloudflare.com/mcp. All tools are maintained by Cloudflare — new tools are available immediately without any Aerostack update.
Type: Proxy (hosted by Cloudflare)
Auth: Bearer token via CLOUDFLARE_API_TOKEN
Available Tools
- list_zones — List all DNS zones (domains) in the Cloudflare account with status and nameserver details
- purge_cache — Purge cached files from Cloudflare's edge for a specific zone by URLs or purge everything
- get_analytics — Retrieve traffic analytics for a Cloudflare zone including requests, bandwidth, and threats
- list_workers — List all Cloudflare Workers scripts deployed in the account with their metadata
- update_dns_record — Create or update a DNS record (A, CNAME, MX, TXT, etc.) for a Cloudflare zone
Configuration
| Variable | Required | Description | How to Get |
|---|---|---|---|
CLOUDFLARE_API_TOKEN |
Yes | Cloudflare API Token with required permissions | dash.cloudflare.com → My Profile → API Tokens → Create Token |
CLOUDFLARE_ACCOUNT_ID |
Yes | Your Cloudflare Account ID | dash.cloudflare.com → right sidebar when viewing any zone |
Setup
Add to Aerostack Workspace
- Go to app.aerostack.dev/workspaces → Create Workspace
- Inside your workspace → Add Server → search "Cloudflare Platform"
- Enter your
CLOUDFLARE_API_TOKENwhen prompted — stored encrypted, injected automatically
Once added, every AI agent in your workspace can use Cloudflare tools automatically.
Usage
Example Prompts
"List all my Cloudflare items and summarize the most recent ones"
"Find anything related to [keyword] in Cloudflare"
"Create a new entry with the following details: ..."
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-cloudflare \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-CLOUDFLARE-API-TOKEN: your-key' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_zones","arguments":{}}}'
License
MIT
terminal Tools (5)
Available tools on this MCP server. Each tool can be called directly from any AI agent.
list_zones #1 List all DNS zones (domains) in the Cloudflare account with status and nameserver details
purge_cache #2 Purge cached files from Cloudflare's edge for a specific zone by URLs or purge everything
get_analytics #3 Retrieve traffic analytics for a Cloudflare zone including requests, bandwidth, and threats
list_workers #4 List all Cloudflare Workers scripts deployed in the account with their metadata
update_dns_record #5 Create or update a DNS record (A, CNAME, MX, TXT, etc.) for a Cloudflare zone
Details
Publisher
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
Tags
More in Devops
Browse Devops MCPs →Asana Project Management
by @aerostack
Tasks, projects, sections, comments, teams, custom fields via Asana's official MCP
Atlassian Cloud
by @aerostack
Jira issues, sprints, Confluence pages via Atlassian's official MCP
Datadog Observability
by @aerostack
Dashboards, monitors, logs, metrics, incidents, SLOs, APM traces via Datadog's official MCP
Figma Design
by @aerostack
Files, frames, components, comments, variables via Figma's official MCP
GitHub API
by @aerostack
GitHub repos, PRs, issues, branches, code search via GitHub's official hosted MCP
Grafana Cloud Observability
by @aerostack
Dashboards, alerting, Loki logs, Tempo traces, Prometheus metrics via Grafana's official MCP
Frequently asked questions
What is the Cloudflare MCP server and what can it do? +
The Cloudflare MCP server is hosted on Aerostack and exposes these tools to your AI agent: `list_zones`, `purge_cache`, `get_analytics`, `list_workers`, `update_dns_record`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.
Is the Cloudflare MCP server hosted, or do I have to run it myself? +
It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.
Which AI agents and editors can use the Cloudflare MCP server? +
Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same Cloudflare MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.
How do I install the Cloudflare MCP server in Claude Desktop? +
Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-cloudflare": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-cloudflare"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.
How do I use the Cloudflare MCP server in Cursor? +
In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-cloudflare", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-cloudflare"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.
Does Cloudflare MCP require authentication? +
Yes. Cloudflare uses Bearer token authentication. Set your token as a workspace secret in the Aerostack dashboard.