MCP server to manage Cloudflare Workers, KV, R2, Pages, DNS, and cache from your IDE
MCP Server Cloudflare โ Workers, KV, R2, DNS & Cache
This Model Context Protocol (MCP) server (io.github.ofershap/cloudflare) provides IDE-based management for Cloudflare Workers, KV, R2, Pages, DNS, and cache. It is part of the MCP ecosystem and targets developer workflows related to Cloudflare resources.
๐ ๏ธ Key Features
Manage Cloudflare Workers
Manage Cloudflare KV
Manage Cloudflare R2
Manage Cloudflare Pages
Manage Cloudflare DNS
Manage Cloudflare cache
๐ Use Cases
Configure and maintain Cloudflare components from within an IDE
Manage data storage (KV, R2) alongside application runtime (Workers, Pages)
Handle DNS and cache-related tasks during development
โก Developer Benefits
Align Cloudflare operations with Model Context Protocol (MCP) tooling
Uses TypeScript in the project context (as indicated by topics)
โ ๏ธ Limitations
Capabilities are limited to the Cloudflare areas listed: Workers, KV, R2, Pages, DNS, and cache.
An MCP server that lets your AI assistant manage Cloudflare Workers, KV, R2, DNS, and cache purging. Vercel, Railway, and Netlify all have MCP servers โ now Cloudflare does too.
code
You: "List my Workers and purge cache for example.com"
AI: Found 3 Workers: api-gateway, auth-worker, image-resizer
โ Cache purged for https://example.com
Works with Claude Desktop, Cursor, and VS Code Copilot.
This repo is an Agent Plugins 1.0.0 package: plugin.json, portable mcp.json, and skills/ ship together with the MCP server.
For Cursor, clone the repo and copy or symlink it to ~/.cursor/plugins/local/mcp-server-cloudflare, then reload the window. Skills and MCP show up under Customize > Plugins.
Agent Plugins v1 does not ship OAuth. Set CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID in your MCP client env (see Quick Start). One-click install is not offered because credentials stay in env.
Install and run via npm package mcp-server-cloudflare-dns (not the unrelated mcp-server-cloudflare stub on npm).
FAQ
What npm package do I install?
Use npx -y mcp-server-cloudflare-dns. The repo is named mcp-server-cloudflare on GitHub; npm publishes as mcp-server-cloudflare-dns.
Which env vars are required?
CLOUDFLARE_API_TOKEN for all API calls. CLOUDFLARE_ACCOUNT_ID for Workers, KV, and R2 tools.
Can I install it as an Agent Plugin in Cursor?
Yes, via ~/.cursor/plugins/local/mcp-server-cloudflare. Configure the same env vars in Cursor MCP settings.
What can this MCP manage?
Zones and DNS, Workers scripts, KV namespaces, R2 bucket listing, and cache purge for a zone.
Why no one-click Cursor button?
API token and account id cannot be embedded in a portable install link. Use the JSON under Quick Start.