PlugWiki
Cloudflare MCP logo

Cloudflare MCP, Cloudflare's official MCP servers

Official · by CloudflareRemote
Gethttps://docs.mcp.cloudflare.com/mcpcloudflare/mcp-server-cloudflareDocs

Lets Claude, ChatGPT, Cursor and other AI assistants manage your Cloudflare account, like Workers, DNS and storage, and search Cloudflare's docs.

Use the main Cloudflare server at mcp.cloudflare.com. It reaches the whole Cloudflare API, so your assistant can list zones, edit DNS records or check a Worker. The single-product servers, such as Documentation, Browser Run and Container, are optional extras. It changes your live account, so approve only the permissions the job needs when you sign in.

Good for

  • Developers who build and deploy on Cloudflare Workers and want their assistant to check and change settings
  • Site owners who manage DNS, caching and security rules by asking in plain words
  • Ops and platform teams who automate Cloudflare account work from CI with an API token
  • Anyone writing Cloudflare code who wants current docs in the chat, no account needed

Works in

2 supported · 5 with issues · 7 should work

Tap an app to see how to set it up and any known problems.

Install Cloudflare MCP

Claude Code

  1. 1

    Copy this prompt.

    Add the Cloudflare MCP server to Claude Code. Run this command:
    
    claude mcp add --transport http cloudflare-api https://mcp.cloudflare.com/mcp
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

This is Cloudflare's main API server. It covers the whole Cloudflare API through code execution, and the first connection sends you to Cloudflare to approve the permissions you choose. For CI or scripts, create a Cloudflare API token and send it in an Authorization: Bearer <token> header instead. Cloudflare also runs single-product servers: Documentation (https://docs.mcp.cloudflare.com/mcp, no sign-in), Browser Run and Container, each at its own address ending in /mcp. The old /sse addresses were retired and return 410, so use /mcp only.

From the vendor's docs. Source.

Tools

  • Searches Cloudflare's developer docs

    (Documentation server) Looks up current Cloudflare documentation for a question, so the assistant answers from up-to-date reference instead of memory.

    Try: “How do I set up a Workers cron trigger? Check the Cloudflare docs.”

    Read · search_cloudflare_documentation

  • Searches Cloudflare docs from the API server

    (Cloudflare API server) Searches Cloudflare developer documentation alongside the API tools, so you can look up how a feature works before changing it.

    Try: “Look up the Cloudflare docs on D1 limits.”

    Read · docs

  • Shows which Cloudflare account is connected

    (Cloudflare API server) Returns the ID of the connected user or account token, plus email or name. Useful to confirm which account the assistant is acting on.

    Try: “Which Cloudflare account am I connected as?”

    Read · whoami

  • Calls Cloudflare API endpoints with code

    (Cloudflare API server) Lets the assistant write JavaScript that calls the Cloudflare API on your account, for example to list zones or change settings. Results are capped at about 6,000 tokens.

    Try: “List all zones in my Cloudflare account.”

    Delete · execute

  • Turns a web page into Markdown

    (Browser Run server) Fetches a page and converts it to Markdown, which is easier for an assistant to read than raw HTML.

    Try: “Fetch https://example.com/pricing as Markdown.”

    Read · get_url_markdown

  • Fetches a page's HTML

    (Browser Run server) Loads a page in a remote browser and returns its HTML, including content added by scripts.

    Try: “Get the HTML of https://example.com.”

    Read · get_url_html_content

  • Takes a screenshot of a web page

    (Browser Run server) Captures an image of a page, optionally at a viewport size you choose.

    Try: “Screenshot https://example.com at mobile width.”

    Read · get_url_screenshot

  • Renders a web page as a PDF

    (Browser Run server) Renders a page to a PDF document you can save or share.

    Try: “Make a PDF of https://example.com/report.”

    Read · get_url_pdf

  • Gets a page's HTML and screenshot together

    (Browser Run server) Returns both the HTML and a screenshot of a page in one call.

    Try: “Snapshot https://example.com so I can compare text and layout.”

    Read · get_url_snapshot

  • Pulls page elements by CSS selector

    (Browser Run server) Extracts the elements on a page that match a CSS selector, such as all product titles.

    Try: “Scrape every h2 on https://example.com/blog.”

    Read · scrape_url_elements

  • Extracts structured data from a page with AI

    (Browser Run server) Uses AI to pull structured JSON from a page, guided by a prompt and an optional JSON schema.

    Try: “Extract product names and prices from this page as JSON.”

    Read · get_url_json

  • Lists the links on a page

    (Browser Run server) Returns every link found on a web page.

    Try: “List all links on https://example.com.”

    Read · get_url_links

Read from the source code

Pros and cons

Good

  • One server at mcp.cloudflare.com reaches the whole Cloudflare API.
  • Hosted by Cloudflare, so nothing runs on your machine.
  • Sign-in with your Cloudflare account lets you pick the permissions, and you can drop write scopes.
  • An API token works for CI and scripts.
  • The Documentation server needs no account and answers from current Cloudflare docs.
  • Cloudflare publishes plugins for Claude Code, Cursor, Codex and VS Code.

Watch out

  • It can change and delete live resources, so permissions need care.
  • Many single-product servers are deprecated and still show up in the Claude directory and MCP Registry.
  • Each server asks for its own sign-in, and Claude Code loses it when you log out.
  • ChatGPT sign-in hangs or ends with no tools for some users.
  • Turning code mode off passes Codex's tool limit and the server is dropped.
  • Some features may need a paid Cloudflare Workers plan.

Permissions

medium risk · 4 things to watch

Medium risk

The main server can change or delete real resources on your Cloudflare account, including DNS and Workers. Sign in with only the permissions you need, or use a read-only API token.

What it can do

Watch out for

  • It can change and delete things on your live account

    Signed-in servers can create, change and delete Workers, KV, R2, D1 and DNS. Grant only the permissions the job needs, or use a read-only token. github.com

  • The MCP Registry lists the wrong token header

    The registry entry says 'Authentication'; the servers expect 'Authorization: Bearer <token>'. One user got 401 errors from the registry's name. github.com

  • Docs and Blog servers are open to anyone

    These two need no sign-in and only read public Cloudflare content. A maintainer confirmed this is expected. github.com

  • Memory bugs in the code sandbox runtime were fixed

    Check Point found memory bugs in workerd, the runtime under Code Mode, in August 2026. Cloudflare fixed its hosted platform and no CVEs were assigned. research.checkpoint.com

Security advisories

No published security advisories as of Nov 1, 2026.

Technical details
Turning on read-onlyUse a Cloudflare API token with only read permissions as the Bearer token, or untick write scopes under Edit Permissions on the OAuth consent screen. The Docs and Blog servers only read public content.
Talks tomcp.cloudflare.com. docs.mcp.cloudflare.com. Code Mode runs generated code in an isolate with outbound fetch off by default
Scopes
  • OAuth: permissions you approve on Cloudflare's consent screen, with optional write scopes you can untick

  • API token: the permissions on the Cloudflare user or account token you pass as a Bearer token

Alternatives

Use the official Cloudflare server; it is the pick for almost everyone. Two community servers run on your own machine instead, but each has only a few GitHub stars.

ServerOfficialRunsSign-inCan change thingsGitHub stars
Cloudflare MCP (official)This pageOfficialHostedAccount or tokenYes4.4K
Cloudflare MCP ProCommunityLocal––3
mcp-server-cloudflare (ofershap)CommunityLocal––4

What people say

People like how much one Cloudflare server covers and dislike the sign-in friction and the leftover deprecated servers.

What people like

  • The main API server reaches the whole Cloudflare API with a handful of tools that cost about 1,000 tokens of context.
  • Splitting tools by product gives smaller surfaces that teams find easier to reason about.
  • Sign-in downscopes the token to the permissions you approve.

Common complaints

  • Most product servers are now deprecated, and the Claude directory and MCP Registry still point people at them.
  • Every server needs its own OAuth sign-in, and those sign-ins are lost when the client resets its credentials.
  • ChatGPT connections are unreliable: sign-in hangs or finishes with no tools attached.
  • Chained tool calls on Observability can fill Claude's context and cut replies off.

In their words

2 more quotes

Questions

Which Cloudflare MCP server should I use?

Use the main Cloudflare API server. Cloudflare's docs say most people should, because it already covers the full Cloudflare API. Add a single-product server, such as Documentation or Browser Run, only if you want a small set of purpose-built tools.

Is the Cloudflare MCP server free?

Yes, connecting is free. Cloudflare's README notes some features may need a paid Workers plan, depending on the products you use.

What is the Cloudflare MCP server URL?

https://mcp.cloudflare.com/mcp for the main API server. The Documentation server is https://docs.mcp.cloudflare.com/mcp. Add the URL in your AI app and sign in with your Cloudflare account.

Do the deprecated Cloudflare servers still work?

Yes. Ten servers are deprecated: AI Gateway, Audit Logs, AutoRAG, DNS Analytics, GraphQL, Logpush, Observability, Radar, Workers Bindings and Workers Builds. Their tools still run but get no new features, and Cloudflare asks you to move to the main server, which covers the same APIs.

Why does my Cloudflare MCP URL ending in /sse fail?

Cloudflare retired every /sse URL on October 22, 2026, and they now return 410 Gone. Change the URL to end in /mcp, for example https://docs.mcp.cloudflare.com/mcp.

Why does the Claude connector show different tools?

The Cloudflare Developer Platform entry in Claude's directory points at the Workers Bindings server, which is deprecated. The official MCP Registry entry is also out of date and lists older servers and retired /sse URLs. For the current tools, add the main server as a custom connector using the install box above.

Do I need an API token, or can I sign in?

Signing in is the default: you approve permissions on Cloudflare when you connect. For CI or scripts with no browser, send a Cloudflare user or account API token as a Bearer token in the Authorization header.

Does the Cloudflare documentation server need an account?

No. The Documentation server is open and needs no sign-in, because it only reads public Cloudflare docs.

Can it delete things, and can I make it read-only?

Yes, it can create, change and delete resources such as Workers, KV, R2, D1 and DNS records. To limit it, untick write scopes under Edit Permissions when you sign in, or use an API token that has only read permissions.

Should I still use npx @cloudflare/mcp-server-cloudflare?

No. That local package dates from March 2025 and the maintainer is retiring it. Connect to the hosted /mcp URLs instead.

Examples

  • Manage account resources through the main Cloudflare API server

    Add an A record for api.example.com pointing to 192.0.2.1

    Source
  • Look up current Cloudflare docs while writing a Worker (Documentation server, no sign-in)

    Using the Cloudflare docs, how do I bind a D1 database to my Worker in wrangler.jsonc?

    Source
  • Fetch a page as markdown or take a screenshot (Browser Run server)

    Fetch https://example.com as markdown and take a screenshot of it.

    Source
  • Debug a Worker from its logs (Observability server, deprecated; the main server reaches the same data)

    Can you tell me about any potential issues on this particular worker 'my-worker-name'?

    Source

Information

updated Nov 2, 2026

Publisher
Cloudflare (official)
Endpoint
https://docs.mcp.cloudflare.com/mcp
Transport
Streamable HTTP
Auth
OAuth
License
Apache-2.0
Last commit
Oct 22, 2026
Open issues
41
Listed in
Official MCP registry, Docker MCP Catalog

Cloudflare docs: MCP servers for CloudflareGitHubOfficial MCP RegistryChangelogIssues

Other Cloudflare MCP servers

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 26
  1. Cloudflare API MCP Server · github.com
  2. Cloudflare MCP servers README · github.com
  3. MCP servers for Cloudflare · developers.cloudflare.com
  4. github.com · github.com
  5. github.com · github.com
  6. github.com · github.com
  7. github.com · github.com
  8. Code Mode: give agents an entire API in 1,000 tokens · blog.cloudflare.com
  9. Optional OAuth scopes · developers.cloudflare.com
  10. Registry and directory list deprecated servers · github.com
  11. Docs server open access · github.com
  12. When agentic glue melts · research.checkpoint.com
  13. Deprecate product servers · github.com
  14. Retire /sse endpoints · github.com
  15. Cloudflare Developer Platform connector · claude.com
  16. Retire the local npm package · github.com
  17. Cloudflare Skills plugin · github.com
  18. Cloudflare ChatGPT plugin: OAuth succeeds but no MCP tools are exposed · github.com
  19. What stops an agent on a domain-specific server changing production DNS or Workers? · github.com
  20. Document static API-token auth · github.com
  21. [ChatGPT] OAuth connection hangs for official Cloudflare plugin and custom MCP · github.com
  22. [Connection guide] Claude Code · github.com
  23. Workers Observability README · raw.githubusercontent.com
  24. Cloudflare MCP Pro · github.com
  25. mcp-server-cloudflare · github.com
  26. Codex drops the server with code mode off · github.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.