Cloudflare MCP Servers
- MCP server
- Official
Cloudflare's MCP servers let Claude manage DNS, Workers, R2, D1 and more through one API server, plus focused servers for docs and browser fetching.
MCP serverDev toolsOn this page8 sections
Best for
- Changing DNS records or Workers settings by asking
- Looking up current Cloudflare documentation
- Fetching pages and screenshots with Cloudflare's browser service
Quick install
Remote servers with OAuth; the recommended Cloudflare API server is at https://mcp.cloudflare.com/mcp
- claude.ai or Claude Desktop
Settings > Connectors > Add custom connector, URL
https://mcp.cloudflare.com/mcp, then authorize in Cloudflare and select permissions. For docs only, use
https://docs.mcp.cloudflare.com/mcp;for page fetching and screenshots,https://browser.mcp.cloudflare.com/mcp
claude mcp add --transport http cloudflare-api https://mcp.cloudflare.com/mcpthen run
/mcpto sign in.Or install Cloudflare's skills plugin in Claude Code:
/plugin marketplace add cloudflare/skillsFor docs only, use
https://docs.mcp.cloudflare.com/mcp;for page fetching and screenshots,https://browser.mcp.cloudflare.com/mcp
claude.ai or Claude Desktop: Settings > Connectors > Add custom connector, URL
https://mcp.cloudflare.com/mcp, then authorize in Cloudflare and select permissions.Claude Code:
claude mcp add --transport http cloudflare-api https://mcp.cloudflare.com/mcpthen run
/mcpto sign in.Or install Cloudflare's skills plugin in Claude Code:
/plugin marketplace add cloudflare/skillsFor docs only, use
https://docs.mcp.cloudflare.com/mcp;for page fetching and screenshots,https://browser.mcp.cloudflare.com/mcp
At a glance
- Type
- MCP server
- Made by
- Cloudflare (official)
- Tested by us
- Not yet
- Works with
- Claude.ai
- Claude Desktop
- Claude Code
- Sign-in needed
- YesOAuth: you're redirected to Cloudflare to authorize and pick permissions. API tokens (user or account) also work; tokens with Client IP Address Filtering are not supported.
- Cost
- Cloudflare says some features may require a paid Workers plan. No separate MCP charge is listed.
- License
- Apache-2.0 (mcp-server-cloudflare repository)
- Registry name
com.cloudflare.mcp/mcp- Facts checked
What it does (plain English)
Cloudflare runs a family of hosted MCP servers. An MCP server is a plug-in that gives Claude a new ability; these give Claude access to your Cloudflare account and Cloudflare’s services.
The one Cloudflare recommends is the Cloudflare API MCP server at https://mcp.cloudflare.com/mcp. Cloudflare’s docs call it “the only MCP server you need to work with Cloudflare”: it reaches over 2,500 API endpoints across DNS, Workers, R2, D1, Zero Trust and more, and it searches Cloudflare’s developer docs.
It does this with very few tools, using a pattern Cloudflare calls Code Mode. Claude writes small JavaScript snippets that search the API spec and then call the right endpoint, and the code runs in an isolated sandbox on Cloudflare. Cloudflare’s own comparison:
| Approach | Tools | Approx. token cost |
|---|---|---|
| Native MCP, full schemas | 2,594 | 1,170,523 |
| Native MCP, required params only | 2,594 | 244,047 |
| Code Mode (default) | 3 | about 1,100 |
The tools are search, execute, docs and whoami.
There are also focused servers, including Documentation (https://docs.mcp.cloudflare.com/mcp), Browser Run for fetching pages, Markdown and screenshots (https://browser.mcp.cloudflare.com/mcp), Containers for sandbox dev environments, and the Cloudflare Blog.
Is it for you?
Pick it if your domain, website or Workers app is on Cloudflare and you’d rather say “add an A record” than find the right Dashboard screen. The docs server is useful on its own if you build on Cloudflare and want current answers.
If you’re new to Cloudflare and just want to publish a site, a hosting-focused tool like Netlify MCP or Vercel MCP is a gentler first step.
What you can do with it
Cloudflare’s own example prompts:
- “List all my Workers”
- “Create a KV namespace called ‘my-cache’”
- “Add an A record for api.example.com pointing to 192.0.2.1”
And with the focused servers:
- Docs: “Using Cloudflare docs, how do I cache JSON API responses in a Worker for five minutes?”
- Browser Run: “Fetch my landing page as Markdown and take a screenshot.”
How to set it up
-
claude.ai or Claude Desktop. Cloudflare’s docs list Claude among OAuth clients that can connect. Go to Settings > Connectors > Add custom connector and enter
https://mcp.cloudflare.com/mcp. You’ll be sent to Cloudflare to authorize and choose permissions. Anthropic lists custom connectors for Pro, Max, Team and Enterprise plans. -
Claude Code. Cloudflare gives the URL; with Claude Code’s standard remote-server command:
claude mcp add --transport http cloudflare-api https://mcp.cloudflare.com/mcpRun
/mcpto complete the sign-in. (The command format is from Claude Code’s docs; the server namecloudflare-apimatches Cloudflare’s example config.) -
Claude Code plugin. Cloudflare’s Skills plugin bundles its MCP servers with skills for Wrangler, Durable Objects, the Agents SDK and Workers best practices:
/plugin marketplace add cloudflare/skills -
API token instead of OAuth (for automation): create a token at
https://dash.cloudflare.com/profile/api-tokenswith only the permissions you need and send it as a Bearer token. For account tokens, include Account Resources : Read so the server can detect your account ID. -
Focused servers. Add any of them the same way with their own URL, for example
https://docs.mcp.cloudflare.com/mcp.
Watch out for
- Claude can write real changes. DNS edits take effect quickly and can take a site offline. Grant only the permissions you need during OAuth, and keep tool approval on.
- Results are capped. Each tool result is truncated at about 6,000 tokens by default and marked
--- TRUNCATED ---. Ask narrower questions rather than turning the cap off. - “Claude’s response was interrupted.” Cloudflare’s troubleshooting says this usually means Claude hit its context limit after many chained tool calls; break the request into smaller steps.
- Several servers are deprecated. AI Gateway, Audit Logs, AutoRAG, DNS Analytics, GraphQL, Logpush, Observability, Radar, Workers Bindings and Workers Builds servers are marked deprecated in favour of the API server.
- Use
/mcp, not/sse. The/sseURLs remain only as aliases for Streamable HTTP.
Alternatives
- Vercel MCP or Netlify MCP if your site is hosted there.
- Context7 for docs across many libraries, not only Cloudflare.
- Playwright MCP to run a real browser locally instead of Cloudflare’s Browser Run service.
Sources
- github.com/cloudflare/mcp (opens in a new tab)
- raw.githubusercontent.com/cloudflare/mcp/main/README.md (opens in a new tab)
- github.com/cloudflare/mcp-server-cloudflare (opens in a new tab)
- raw.githubusercontent.com/cloudflare/mcp-server-cloudflare/main/README.md (opens in a new tab)
- raw.githubusercontent.com/cloudflare/mcp-server-cloudflare/main/LICENSE (opens in a new tab)
- developers.cloudflare.com/agents/model-context-protocol/mcp-servers-for-cloudflare/index.md (opens in a new tab)
- registry.modelcontextprotocol.io/v0.1/servers/com.cloudflare.mcp%2Fmcp/versions/latest (opens in a new tab)
- code.claude.com/docs/en/mcp (opens in a new tab)
- support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp (opens in a new tab)
Related tools
Netlify MCP Server
by Netlify
- Connector
- Official
- Tested by us
Netlify's MCP server lets Claude create, deploy and manage Netlify sites: deploys, forms, environment variables, access controls and extensions.
Works with- Claude.ai
- Claude Desktop
- Claude Code
Claude Code official plugin marketplace
by Anthropic
- Plugin
- Official
Anthropic's default Claude Code plugin catalog: 315 plugins from Anthropic and partners, added automatically and installed with one /plugin command.
Works with- Claude Code
- Claude Desktop
Claude Code Templates (aitmpl.com)
by Daniel Ávila (community)
- Subagent repo
- Third-party
A community npx installer and website for copying Claude Code agents, commands, hooks, settings, MCP configs and skills into your project one by one.
Works with- Claude Code
GitHub MCP Server
by GitHub
- MCP server
- Official
GitHub's own MCP server lets Claude read repos, open and triage issues, review pull requests and check Actions runs on your behalf.
Works with- Claude Desktop
- Claude Code