Creativity · MCP — server
MCP Cloudflare Server
Cloudflare ships a family of MCP servers that expose the Workers platform, KV, R2, D1, Durable Objects, DNS, and observability features as Model Context Protocol tools. An MCP client like Claude Desktop or Cursor can deploy a Worker, read logs, manage DNS records, or query a D1 database — all authenticated by a scoped Cloudflare API token.
MCP facts
- Kind
- server
- Ecosystem
- anthropic-mcp
- Language
- TypeScript / Node.js
- Transports
- stdio, http
Capabilities
- Tools: list_workers, get_worker_source, deploy_worker (via wrangler)
- Tools: kv_list, kv_get, kv_put, r2_list_objects, d1_query
- Tools: dns_records_list, dns_record_create/update/delete
- Observability: workers_logs, analytics_query for a given zone/account
Install
npx -y @cloudflare/mcp-server-cloudflare Configuration
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": ["-y", "@cloudflare/mcp-server-cloudflare"],
"env": {
"CLOUDFLARE_API_TOKEN": "xxx",
"CLOUDFLARE_ACCOUNT_ID": "abc123"
}
}
}
} Frequently asked questions
Do I have to run Cloudflare MCP locally?
No — Cloudflare hosts its MCP servers at mcp.cloudflare.com endpoints that speak HTTP + OAuth. Claude Desktop and Cursor can connect directly without running wrangler locally, which keeps your API token on the server side.
Which tokens do I need?
Create a Cloudflare API token with the minimum zones and accounts, granting Workers:Edit, D1:Edit, KV Storage:Edit, and DNS:Edit only where required. Avoid the Global API Key — it cannot be scoped.
Can the agent deploy a Worker for me?
Yes — the Workers MCP integrates wrangler's publish flow. Gate this behind a preview environment or require human approval before the agent touches production.
Sources
- Cloudflare MCP servers — accessed 2026-04-20
- Cloudflare API tokens — accessed 2026-04-20