ofershap avatar

Cloudflare

ofershap/mcp-server-cloudflare

Connects your AI assistant directly to the Cloudflare API for managing infrastructure across Workers, KV storage, R2 buckets, DNS records, and cache purging. You get 13 tools covering the full lifecycle: list and delete Workers scripts, read and write KV key-value pairs, manage DNS records for your zones, list R2 buckets, and purge cache by URL or entirely. Requires a Cloudflare API token with appropriate permissions and your account ID. Works through stdio transport with Claude Desktop, Cursor, or VS Code Copilot. Reach for this when you want to script Cloudflare operations conversationally instead of switching to the dashboard or writing API calls manually.

GitHub stars
3
tools
2
transport
STDIO
last updated
Mar 10, 2026

Tools

2 tools

Public tool metadata for what this MCP can expose to an agent.

searchSearch the Cloudflare OpenAPI spec. All $refs are pre-resolved inline. Products: ai, cloudforce-one, access, magic, workers, realtime, devices, dlp, email-security, stream, ai-search, brand-protection, gateway, email, intel, api_gateway, addressing, browser-rendering, dex, bui...1 params

Search the Cloudflare OpenAPI spec. All $refs are pre-resolved inline. Products: ai, cloudforce-one, access, magic, workers, realtime, devices, dlp, email-security, stream, ai-search, brand-protection, gateway, email, intel, api_gateway, addressing, browser-rendering, dex, bui...

Parameters* required
codestring
JavaScript async arrow function to search the OpenAPI spec
executeExecute JavaScript code against the Cloudflare API. First use the 'search' tool to find the right endpoints, then write code using the cloudflare.request() function. Available in your code: interface CloudflareRequestOptions { method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE...2 params

Execute JavaScript code against the Cloudflare API. First use the 'search' tool to find the right endpoints, then write code using the cloudflare.request() function. Available in your code: interface CloudflareRequestOptions { method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE...

Parameters* required
account_idstring
Your Cloudflare account ID. Optional if you have only one account (will be auto-selected)
codestring
JavaScript async arrow function to execute

Sponsors

Readme

MCP Server Cloudflare — Workers, KV, R2, DNS & Cache for AI Assistants

npm version npm downloads CI License: MIT Agent Plugins

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.

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.


View the full README on GitHub

Details

Repository
github.com/ofershap/mcp-server-cloudflare
Category
Cloud & Infrastructure
Package
mcp-server-cloudflare-dns
Transport
STDIO
Registry
MCP registry, active

More from ofershap

Related Cloud & Infrastructure MCP servers

View all
1alisaitteke avatarDocker Mcpalisaitteke/docker-mcpMCP server for managing Docker containers, images, networks, volumes, and registries2stars
2jonnybottles avatarAzure Updatesjonnybottles/azure-updates-mcpMCP server for Azure Updates RSS feed - search, filter, and summarize Azure service updates1stars
3helbertparanhos avatarVercel MCP Prohelbertparanhos/vercel-mcp-proComplete Vercel MCP: deploys, logs, projects, env, domains, DNS, certs via the full REST API0stars
4aws avatarAWS MCP Serverio.github.aws/aws-mcpA managed MCP server enabling AI agents to access AWS using docs, API calls, and SOP workflows.0stars
5crunchtools avatarMCP Cloudflarecrunchtools/mcp-cloudflareSecure MCP server for Cloudflare DNS, Transform Rules, and Page Rules0stars
6itunified-io avatarCloudflare MCP Serveritunified-io/mcp-cloudflareCloudflare MCP Server — 84 tools for DNS, Tunnels, WAF, Zero Trust, R2, KV & Workers0stars