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.

On 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

  1. claude.ai or Claude Desktop: Customize > Connectors > + Add > Add custom connector, URL https://mcp.cloudflare.com/mcp, then authorize in Cloudflare and select permissions.

  2. Claude Code:

    claude mcp add --transport http cloudflare-api https://mcp.cloudflare.com/mcp

    then run /mcp to sign in.

  3. Or install Cloudflare's skills plugin in Claude Code:

    /plugin marketplace add cloudflare/skills
  4. For 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:

ServerURLWhat it is for
Cloudflare API (recommended)https://mcp.cloudflare.com/mcpThe whole Cloudflare API (over 2,500 endpoints) plus docs search
Documentationhttps://docs.mcp.cloudflare.com/mcpUp-to-date Cloudflare reference answers
Browser Runhttps://browser.mcp.cloudflare.com/mcpFetch web pages, convert them to Markdown, take screenshots
Containerhttps://containers.mcp.cloudflare.com/mcpSpin up a sandbox development environment
Digital Experience Monitoringhttps://dex.mcp.cloudflare.com/mcpQuick insight on critical applications for your organization
Cloudflare One CASBhttps://casb.mcp.cloudflare.com/mcpSpot security misconfigurations in SaaS apps
Agents SDK Documentationhttps://agents.cloudflare.com/mcpToken-efficient search of the Agents SDK docs
Cloudflare Bloghttps://blog.mcp.cloudflare.com/mcpSearch and read Cloudflare Blog posts (GitHub README)
Demo Dayhttps://demo-day.mcp.cloudflare.com/mcpA 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:

ApproachToolsApprox. token cost
Native MCP, full schemas2,5941,170,523
Native MCP, required params only2,594244,047
Code Mode (default)3about 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:read and account:read scopes.
  • 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-tokens with 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 returns user:<id> (and email) or account:<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

  1. 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.)

  2. Claude Code. Add the server (tested), then run /mcp and sign in (untested):

    claude mcp add --transport http cloudflare-api https://mcp.cloudflare.com/mcp
  3. Docs only, no account (tested).

    claude mcp add --transport http cloudflare-docs https://docs.mcp.cloudflare.com/mcp
  4. Claude Code plugin. Cloudflare’s Skills plugin bundles its MCP servers with skills and slash commands for building on Cloudflare:

    /plugin marketplace add cloudflare/skills

    That adds Cloudflare’s plugin marketplace; then install the plugin from it with /plugin install.

  5. 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 search and execute result 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 whoami or the read you actually need.
  • Paid features. Cloudflare says some features may require a paid Workers plan.
  • Use /mcp, not /sse. The retired /sse URL answers with 410 Gone and names the new /mcp URL (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

Sources

Facts checked against these sources on . Page updated . How we check facts

  1. github.com/cloudflare/mcp (opens in a new tab)
  2. raw.githubusercontent.com/cloudflare/mcp/main/README.md (opens in a new tab)
  3. github.com/cloudflare/mcp-server-cloudflare (opens in a new tab)
  4. raw.githubusercontent.com/cloudflare/mcp-server-cloudflare/main/README.md (opens in a new tab)
  5. raw.githubusercontent.com/cloudflare/mcp-server-cloudflare/main/LICENSE (opens in a new tab)
  6. developers.cloudflare.com/agents/model-context-protocol/mcp-servers-for-cloudflare/index.md (opens in a new tab)
  7. registry.modelcontextprotocol.io/v0.1/servers/com.cloudflare.mcp%2Fmcp/versions/latest (opens in a new tab)
  8. claude.com/connectors/cloudflare (opens in a new tab)
  9. code.claude.com/docs/en/mcp (opens in a new tab)
  10. support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp (opens in a new tab)

Related tools

All dev tools 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