Cloudflare MCP server for Claude: setup, which URL, safety
- MCP server
- Official
Connect Claude to Cloudflare with the API MCP server at mcp.cloudflare.com/mcp: setup, which server to use, read-only permissions, plus a no-login docs server.
MCP serverDev toolsOn this page11 sections
Best for
- Checking or changing DNS records, Workers and other Cloudflare settings by asking
- Looking up current Cloudflare documentation (no sign-in needed)
- Fetching pages and screenshots with Cloudflare's Browser Run service
Quick install
Remote servers with OAuth; the recommended Cloudflare API server is at https://mcp.cloudflare.com/mcp
- claude.ai or Claude Desktop
Customize > Connectors > + Add > 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: Customize > Connectors > + Add > 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. The docs server connected without sign-in in our test.
- Cost
- Cloudflare says some features may require a paid Workers plan. No separate MCP charge is listed.
- License
- Apache-2.0
- Registry name
com.cloudflare.mcp/mcp- Facts checked
Short answer: to use Cloudflare with Claude, connect the Cloudflare API MCP server at https://mcp.cloudflare.com/mcp, sign in with Cloudflare (OAuth) and grant read-only permissions first. Cloudflare calls it “the only MCP server you need to work with Cloudflare”: it reaches the whole Cloudflare API (DNS, Workers, R2, Zero Trust and more) plus the developer docs.
It suits anyone whose domain, website or Workers app is on Cloudflare and who would rather ask “is my www record pointing to the right place?” than hunt through the dashboard. An MCP server is a plug-in that gives Claude a new ability. Cloudflare hosts these servers, so there is nothing to install on your computer.
What we tested (Claude Code 2.1.334, 3 December 2026): adding the API server worked up to “Needs authentication”; we had no Cloudflare account signed in, so OAuth and real account calls are untested. The docs server connected with no sign-in and answered a Workers caching question from Cloudflare’s docs (14 developers.cloudflare.com links). The old /sse URL returned 410 Gone. Log: research/tests/cloudflare-mcp-2026-12-03/.
Which Cloudflare MCP server should you connect?
Cloudflare’s docs say the product-specific servers are optional and “most people should just use the main Cloudflare API MCP server.” Current servers, from Cloudflare’s docs and GitHub README:
| Server | URL | What it is for |
|---|---|---|
| Cloudflare API (recommended) | https://mcp.cloudflare.com/mcp | The whole Cloudflare API (over 2,500 endpoints) plus docs search |
| Documentation | https://docs.mcp.cloudflare.com/mcp | Up-to-date Cloudflare reference answers |
| Browser Run | https://browser.mcp.cloudflare.com/mcp | Fetch web pages, convert them to Markdown, take screenshots |
| Container | https://containers.mcp.cloudflare.com/mcp | Spin up a sandbox development environment |
| Digital Experience Monitoring | https://dex.mcp.cloudflare.com/mcp | Quick insight on critical applications for your organization |
| Cloudflare One CASB | https://casb.mcp.cloudflare.com/mcp | Spot security misconfigurations in SaaS apps |
| Agents SDK Documentation | https://agents.cloudflare.com/mcp | Token-efficient search of the Agents SDK docs |
| Cloudflare Blog | https://blog.mcp.cloudflare.com/mcp | Search and read Cloudflare Blog posts (GitHub README) |
| Demo Day | https://demo-day.mcp.cloudflare.com/mcp | A minimal demo server (GitHub README) |
Servers for AI Gateway, Audit Logs, AutoRAG, DNS Analytics, GraphQL, Logpush, Observability, Radar, Workers Bindings and Workers Builds are marked deprecated. Cloudflare asks you to move to the API server “at your earliest convenience.”
The connector in Claude’s directory is a different server
Claude’s connector directory has a Cloudflare Developer Platform listing (made by Cloudflare, “Anthropic verified”, added November 2025). Its connector URL is https://bindings.mcp.cloudflare.com/mcp, which Cloudflare’s README lists as the deprecated Workers Bindings server. The listing shows 24 tools for accounts, Workers, KV, R2, D1 and Hyperdrive, including create and delete tools. For DNS, analytics or anything outside those products, and to follow Cloudflare’s own advice, add the API server as a custom connector instead (steps below).
How the API server works (and why it’s cheap on context)
Instead of one tool per API endpoint, it gives Claude four tools (the README’s token table below counts three): search (find endpoints in Cloudflare’s API spec; makes no API calls), execute (call the API), docs (search the developer docs) and whoami (show which user or account you’re connected as). Claude writes small JavaScript snippets, which run in an isolated sandbox on Cloudflare. This is what Cloudflare calls Code Mode. From Cloudflare’s README:
| 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 |
If your client already runs its own Code Mode, https://mcp.cloudflare.com/mcp?codemode=false registers one tool per API method (about 3,000) instead. Cloudflare warns this costs about 244,000 tokens versus about 1,000, so most people should leave it alone. The server also serves Cloudflare’s skills (Wrangler, Durable Objects, Agents SDK, Workers best practices) to clients that support MCP’s Skills extension.
Is it for you?
Pick it if your domain, website or Workers app is on Cloudflare. The docs server is useful on its own if you build on Cloudflare, and it is the easiest way to try Cloudflare’s MCP servers, since it needs no account.
If you are new to Cloudflare and just want to publish a site, a hosting tool like Netlify MCP or Vercel MCP is a gentler first step.
A non-developer use case: check your site
You do not need to write code. Try asking Claude things like these (our examples, not Cloudflare’s):
- “List the DNS records for example.com. Does the A record for www point to the address I expect?”
- “Show request counts for example.com over the last 7 days.”
- “My site looks down. Check my DNS records and tell me anything that looks wrong. Do not change anything.”
Cloudflare’s README includes an example GraphQL Analytics query through the same execute tool (daily request totals for a zone). Treat Claude’s reading of the data as a lead to check, not a verdict.
Cloudflare’s own write examples:
- “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”
With the focused servers, you can ask the Docs server “how do I cache a JSON API response in a Worker for five minutes?” (this is the question we tested) or ask Browser Run to “fetch my landing page as Markdown and take a screenshot.”
Is it safe? Start read-only
Claude can make real changes to your account. A wrong DNS edit can take a site offline.
Least-privilege rule. When Cloudflare sends you to authorize, grant only the permissions you need. For a first session, choose read access only. Keep Claude’s tool approval on. Add write permissions later, for one task, then remove them.
- OAuth is recommended. You are redirected to Cloudflare to authorize and select permissions. Cloudflare’s docs say OAuth connections start with baseline
user:readandaccount:readscopes. - Missing permission? If a call needs a scope you did not grant, the server asks Claude to re-authorize with that scope added, and the tool error names the missing scope. Approve it only if you meant to. Some reads, such as listing zones, return an empty list rather than an error when the scope is missing; the server refuses those too, so an empty list isn’t mistaken for an empty account.
- API token instead (for automation). Create one at
https://dash.cloudflare.com/profile/api-tokenswith only the permissions you need and send it as a Bearer token. User and account tokens both work. For account tokens, include Account Resources : Read so the server can detect your account ID. Tokens with Client IP Address Filtering are not supported. Don’t paste tokens into the chat: the server attaches your credentials itself. - Check who you are connected as. Ask Claude to run
whoami. It returnsuser:<id>(and email) oraccount:<id>(and name). It doesn’t list your permissions. - Anthropic’s advice for custom connectors: review the permissions a server requests and deny what looks unnecessary, watch tool inputs and outputs, and connect only to servers you trust. You can revoke access at any time by disconnecting the connector in Claude’s settings or in Cloudflare.
How to set it up
-
claude.ai or Claude Desktop (custom connector). Go to Customize > Connectors, select + Add, then Add custom connector. Name it, enter
https://mcp.cloudflare.com/mcp, and continue. Keep the detected sign-in settings (Anthropic recommends “Use Claude’s published identity”), then select Add and Connect. Authorize in Cloudflare and pick your permissions. In a chat, select + > Connectors and turn it on. On Team and Enterprise plans an Owner adds the connector first, then each member connects with their own account. Custom connectors are available on all Claude plans; Free users get one. (Untested by us.) -
Claude Code. Add the server (tested), then run
/mcpand sign in (untested):claude mcp add --transport http cloudflare-api https://mcp.cloudflare.com/mcp -
Docs only, no account (tested).
claude mcp add --transport http cloudflare-docs https://docs.mcp.cloudflare.com/mcp -
Claude Code plugin. Cloudflare’s Skills plugin bundles its MCP servers with skills and slash commands for building on Cloudflare:
/plugin marketplace add cloudflare/skillsThat adds Cloudflare’s plugin marketplace; then install the plugin from it with
/plugin install. -
Other servers. Add any server from the table the same way, with its own URL.
New to this? See Your first MCP server in Claude Desktop, or Claude skills vs MCP vs plugins to see how the plugin route differs.
Watch out for
- Results are capped. In Code Mode, each
searchandexecuteresult is cut at about 6,000 tokens and marked--- TRUNCATED ---. Ask narrower questions. - “Claude’s response was interrupted.” Cloudflare says this usually means Claude hit its context limit after many chained tool calls. Break the request into smaller steps.
- Token check fails with 401 (code 1000) on OAuth. Cloudflare says token-verification endpoints always return this on an OAuth connection, even when it works. Don’t reconnect; ask Claude to run
whoamior the read you actually need. - Paid features. Cloudflare says some features may require a paid Workers plan.
- Use
/mcp, not/sse. The retired/sseURL answers with410 Goneand names the new/mcpURL (we saw this in Claude Code).
FAQ
What is the Cloudflare MCP server URL? https://mcp.cloudflare.com/mcp for the full API. For docs only, https://docs.mcp.cloudflare.com/mcp.
Is the Cloudflare MCP server free? Cloudflare lists no separate MCP charge. Some features may need a paid Workers plan, and Claude’s custom connectors work on every Claude plan (one on Free).
Can Claude delete my DNS records or Workers? Yes, if you grant write permissions. Start read-only, keep tool approval on, and add write access for one task at a time.
Should I use the Cloudflare connector in Claude’s directory? It connects to the Workers Bindings server, which Cloudflare now lists as deprecated. Cloudflare recommends the API server, which you add as a custom connector.
Does it work with Claude Code? Yes: claude mcp add --transport http cloudflare-api https://mcp.cloudflare.com/mcp, then /mcp to sign in, or Cloudflare’s skills plugin.
Alternatives
- Vercel MCP or Netlify MCP if your site is hosted there. See also Deploy a website with Claude and Netlify.
- 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)
- claude.com/connectors/cloudflare (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
Notion MCP
by Notion
- MCP server
- Official
Notion's hosted MCP server lets Claude search your workspace, read pages as Markdown, and create or update pages and databases you can access.
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
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
Skill Creator
by Anthropic
- Skill
- Official
Anthropic's skill for writing your own Claude skills: interview, draft SKILL.md, run test prompts, review results, tune the description and package it.
Works with- Claude.ai
- Claude Desktop
- Claude Code