MCP serverPartly tested (needs an account)
Look up Cloudflare docs
Cloudflare MCP servers
Cloudflare's remote MCP servers. The docs server needs no sign-in and answers questions about Cloudflare. Other servers can change your account.
- Works with
- Claude Code, Codex CLI, Gemini CLI
- Good for
- Web developers, Build an app
What it does
Cloudflare's documentation server is a remote MCP server. An MCP server gives your assistant extra tools. A remote one runs on the vendor's computers, so you install nothing. You add its web address to your assistant once.
This server gives your assistant a search tool over the official Cloudflare documentation. When you ask how to set up a redirect, deploy a Worker or connect a domain, the assistant searches the current docs and answers from them. You get fewer outdated steps.
The docs server needs no sign-in and no API key. Cloudflare's own README says so. It only reads public documentation. Your search terms go to Cloudflare. The search uses an AI search index, so it can lag behind or be wrong. Open the cited page before you follow important steps.
It is one of several servers in Cloudflare's official repository. The other servers act on your Cloudflare account, and they need a sign-in or an API token. For broad account work, Cloudflare now recommends its API MCP server at https://mcp.cloudflare.com/mcp. The README marks several older servers as deprecated, for example AI Gateway, Audit Logs, Radar and Workers Builds.
Account servers can change real things, such as DNS records, Workers and storage. An API token with edit rights can delete a DNS record. Start with a read-only token.
The README notes one limit. If a request starts many tool calls, Claude can run out of room and stop in the middle of an answer. Keep questions specific and split big requests.
Who it is for
Anyone who builds or hosts a site on Cloudflare (Pages, Workers, DNS, R2) and wants answers from the current documentation, not from the assistant's memory.
Example prompts
- "Using Cloudflare's docs, how do I redirect www to my root domain?"
- "Search the Cloudflare docs: how do I deploy a static site with Workers?"
- "What are the limits of the Workers free plan according to the docs?"
- "Find the Cloudflare docs page about connecting a custom domain to Pages."
- "Check the Cloudflare docs for how R2 storage is billed."
How to install
claude mcp add --transport http cloudflare-docs https://docs.mcp.cloudflare.com/mcpHow to use it
Add the docs server, then ask Cloudflare questions, for example "how do I add a custom domain to a Worker?". The agent searches the Cloudflare documentation instead of guessing.
Other assistants
Cloudflare gives only the server address. These commands follow each assistant's own docs for a remote server.
Codex CLI:
- Add the server:
codex mcp add cloudflare-docs --url https://docs.mcp.cloudflare.com/mcp- Start Codex and type
/mcpto check it.
Gemini CLI:
- Add the server:
gemini mcp add --scope user --transport http cloudflare-docs https://docs.mcp.cloudflare.com/mcp--scope usersaves the server for all your projects. Without it, Gemini CLI saves it for the current project, and since version 0.65.0 that fails in a folder Gemini CLI does not trust.
Cloudflare also has a plugin that bundles its MCP servers with skills. It is for account work. In Codex CLI:
codex plugin marketplace add cloudflare/skills
codex plugin add cloudflare@cloudflareCheck it works
In Claude Code, run this command in your normal terminal:
claude mcp listcloudflare-docs must show as connected. In any of the three assistants, /mcp shows the server with a documentation search tool. Then ask a Cloudflare question and look for the tool call in the answer.
Common problems
- The answer stops halfway —
Claude's response was interrupted— Claude probably ran out of room. Ask a more specific question, or split the request into smaller ones. - An old config gets an error —
410 Gone— The/sseaddress still works as an alias. Only the old SSE transport is refused. Switch the config to Streamable HTTP and the/mcpaddress. - The server does not appear after you add it —
/mcpdoes not list it — Start a new session. In Gemini CLI, check that you are in the same project, or add it again with-s user. - You need to change your account, not just read docs — the docs server has no account tools — Use the recommended API MCP server at
https://mcp.cloudflare.com/mcp, or the Cloudflare plugin. In Claude Code, run/plugin marketplace add cloudflare/skills, then/plugin install cloudflare@cloudflare.
What to watch out for
- The docs server is read-only and needs no sign-in. The other servers in the repository (for example the API server) need a Cloudflare sign-in and can change your live setup.
- Your questions go to Cloudflare's server.
- An API token with edit rights lets the account servers change or delete DNS records. Start with a read-only token.
- The docs search uses an AI search index that can lag behind or be wrong. Open the cited docs page for important steps.
Licence and author
- Licence
- Apache-2.0
- Author
- Cloudflare
- Source code
- github.com/cloudflare/mcp-server-cloudflare
How we tested it
We installed it on an empty test computer on 12 Oct 2026. Partly tested: installed in a clean test system, but its main features need an account or key we did not use.
Only the docs server was tested. The README lists other servers that need a Cloudflare account; they were not tested. The README gives only the server address. The install line is a command built from the official Claude Code docs. We did not call the search tool.
Technical details of the test
- Date
- 12 Oct 2026
- Method
- In a clean container with no account we sent the MCP initialize and tools/list requests over HTTP to https://docs.mcp.cloudflare.com/mcp. It answered with 2 tools (search_cloudflare_documentation and migrate_pages_to_workers_guide). We also registered it with claude mcp add --transport http, and claude mcp list reported it as connected.
Checked again on 15 Oct 2026
Alternatives
- Context7: Current documentation for many code libraries, not only Cloudflare.
- Cloudflare API MCP server: Acts on your Cloudflare account through its API. It needs a sign-in and care.
FAQ
Is it free? Cloudflare lists no price for the docs server. The README says some features may need a paid Cloudflare Workers plan.
Do I need a Cloudflare account? No. The docs server needs no sign-in and no API key.
Does it change anything in my Cloudflare account? No. The docs server only searches public documentation.
Are these install commands from Cloudflare? No. Cloudflare gives the server address. The commands follow each assistant's own way to add a remote MCP server.
Sources
- github.com/cloudflare/mcp-server-cloudflare
- docs.mcp.cloudflare.com/mcp
- github.com/cloudflare/mcp-server-cloudflare/blob/main/apps/docs-ai-search/README.md
- developers.cloudflare.com/agents/model-context-protocol/mcp-servers-for-cloudflare/
- github.com/cloudflare/skills
- code.claude.com/docs/en/mcp
- developers.openai.com/codex/mcp
- github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md