mcpservers.md

Cloudflare MCP

Official Cloudflare MCP server — manage Workers, KV, D1, R2, and DNS through AI-powered conversation.

TRUSTED · Official
{
  "mcpServers": {
    "cloudflare": {
      "command": "npx",
      "args": ["-y", "@cloudflare/mcp-server-cloudflare", "run", "<your-account-id>"]
    }
  }
}

Paste into your client's MCP configuration file.

"List all my Cloudflare Workers and show which ones were updated in the last week"

Easy Setup

API key or simple config

Light usage
  • You're building on Cloudflare Workers and want AI help deploying and debugging
  • You need to manage KV, D1, or R2 data without using wrangler directly
  • You want to update DNS records or page rules quickly
  • You're setting up a new Cloudflare Worker project from scratch
  • You use AWS Lambda, Vercel Edge, or another edge platform
  • You need to edit Cloudflare Access policies with complex rules
  • You need enterprise-only features not exposed via the public API
1

Worker Deployment

Deploy or update a Worker and verify it's live.

"Deploy this Worker code to my-api.workers.dev and tell me when it's live"

2

KV & D1 Data Ops

Read and write data in KV namespaces or D1 databases.

"Query the users table in my D1 database and show rows where signup_date is today"

3

DNS Management

Add, update, or verify DNS records across your zones.

"Add a CNAME record for staging.mysite.com pointing to my-app.pages.dev"

Cloudflare runs huge parts of the internet — websites, small backend services, databases, file storage, and the rules that point a domain name to the right server. If you've ever followed a tutorial that said 'add a DNS record' or 'deploy a Worker,' that's Cloudflare. This server lets your AI assistant do all of that for you in plain English. Tell Claude 'deploy this code as a Worker named hello-api,' or 'add a CNAME record for staging.mysite.com pointing to my-app.pages.dev,' and it carries out the action. It can also read and write data in your KV stores and D1 databases, manage files in R2 storage, and check whether something you just deployed is live. For someone shipping a small product, this means you can keep building inside one conversation instead of jumping between dashboards and command-line tools. For someone learning, the AI explains what each change does before you commit. The trade-off: a misplaced command can take a production site down, so use a scoped API token, not a global one, and review actions before approving them.

The official Cloudflare MCP server gives AI assistants comprehensive access to Cloudflare's developer platform. Deploy and manage Workers, interact with KV and D1 databases, manage R2 storage, and configure DNS — through natural language.

Maintained by Cloudflare with growing API coverage. Essential for teams building on the Cloudflare stack.

GitHub 3.4kUpdated Feb 16, 2025MIT
Claude Cursor Windsurf Cline
#cloudflare#workers#serverless#edge#official