Cloudflare

Cloudflare documentation MCP server

Keyless MCP server that searches Cloudflare's developer docs: Workers, R2, D1, KV, Zero Trust and more, plus a Workers coding prompt.

Developer toolsGuided#mcp#cloudflare#documentation#workers#ai-agents

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Cloudflare runs a family of remote MCP servers. The documentation server at https://docs.mcp.cloudflare.com/mcp is the public one: it searches Cloudflare's developer documentation so an AI assistant can answer questions about Workers, Pages, R2, D1, KV, Durable Objects, Queues, Workers AI, Vectorize, AI Gateway, Zero Trust, DNS, CDN and the rest with current, cited text instead of memory. It needs no Cloudflare account and no token. The other Cloudflare MCP servers (the API server at https://mcp.cloudflare.com/mcp, Browser Run, Containers, observability and so on) act on your account and sign you in with OAuth or a Cloudflare API token; they are not covered here.

  • Endpoint (Streamable HTTP, stateless): https://docs.mcp.cloudflare.com/mcp
  • Server name reported: docs-ai-search; it answers server/discover (2026-07-28) and the older initialize handshake. The retired /sse URLs of Cloudflare's servers answer 410 Gone.

Tools and prompts (checked live with tools/list and prompts/list on 2026-11-18)

ToolWhat it doesArguments
search_cloudflare_documentationSemantic search of developers.cloudflare.com; returns matching chunks with page URL and titlequery (string, required)
migrate_pages_to_workers_guideReturns the Pages-to-Workers migration guidenone

Prompt: workers-prompt-full, a detailed prompt for generating Cloudflare Workers code (no arguments). The server has no resources.

Add it to your AI client

Claude Code (terminal; add --scope user to use it in every project):

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

Claude Desktop / claude.ai: Settings > Connectors > Add custom connector, then enter a name and the URL https://docs.mcp.cloudflare.com/mcp.

Cursor: add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "cloudflare-docs": {
      "url": "https://docs.mcp.cloudflare.com/mcp"
    }
  }
}

VS Code (GitHub Copilot agent mode): add to .vscode/mcp.json:

{
  "servers": {
    "cloudflare-docs": {
      "type": "http",
      "url": "https://docs.mcp.cloudflare.com/mcp"
    }
  }
}

Credentials

None. If you later add Cloudflare's account servers, create a scoped API token at https://dash.cloudflare.com/profile/api-tokens or use the OAuth sign-in your client offers; never paste a token into this keyless server.

Run order

  1. Start here: a search, the migration guide, and the Workers prompt.
  2. More searches: R2, Durable Objects, D1, Zero Trust.
  3. Plain HTTP: server/discover, tools/list, tools/call, prompts/list and prompts/get as raw JSON-RPC.

Only mcpUrl is needed and it is already set; edit query in each request.

Limits

Free and public; Cloudflare does not publish a rate limit for it. Search results are long (several documentation chunks, often tens of kilobytes), so ask one specific question per call.

Common errors

What you seeMeaningWhat to do
HTTP 410 GoneYou used an old /sse URLUse https://docs.mcp.cloudflare.com/mcp
-32601 Method not foundCalled resources/* (not offered)Use tools and prompts only
HTTP 400 -32022Unsupported protocol versionUse 2026-07-28 or initialize
Irrelevant chunksQuery too vagueName the product and the task in the query

Links

  • Cloudflare MCP servers (list and setup): https://developers.cloudflare.com/agents/model-context-protocol/mcp-servers-for-cloudflare/
  • Source: https://github.com/cloudflare/mcp-server-cloudflare (apps/docs-ai-search)
  • Cloudflare developer docs: https://developers.cloudflare.com

Endpoints 12

1. Start here

  • MCPSearch the docs (search_cloudflare_documentation){{mcpUrl}}Semantic search over developers.cloudflare.com. Returns the most relevant chunks of documentation, each wrapped in <result> with the page url, title and the…
  • MCPPages to Workers migration guide (migrate_pages_to_workers_guide){{mcpUrl}}Returns Cloudflare's step-by-step guide for moving a Pages project to Workers with static assets: config conversion, deploy commands, Pages Functions…
  • MCPWorkers coding prompt (workers-prompt-full){{mcpUrl}}Fetches the server's one prompt, workers-prompt-full: a long system-style prompt that tells a model how to write Cloudflare Workers code (TypeScript, ES…

2. More searches

  • MCPR2: presigned URLs{{mcpUrl}}Finds how to give temporary upload or download access to an R2 object without sharing credentials, using S3-compatible presigned URLs. The top result is the…
  • MCPDurable Objects: alarms{{mcpUrl}}Searches for the Durable Objects Alarms API, which wakes an object at a scheduled time for periodic or delayed work. Useful to compare with Cron Triggers and…
  • MCPD1: migrations with Wrangler{{mcpUrl}}Looks up how to create and apply D1 database migrations with Wrangler, locally and on the remote database. Answers include the commands and where migration…
  • MCPZero Trust: protect an app with Access{{mcpUrl}}Searches the Zero Trust docs for putting a self-hosted application behind Cloudflare Access with an identity provider. Shows that the server covers security…

3. The same calls as plain HTTP

  • POSTserver/discover (plain HTTP){{mcpUrl}}Plain HTTP version of what the native client does first on a 2026-07-28 server: one POST that returns supported protocol versions, capabilities, server name…
  • POSTtools/list (plain HTTP){{mcpUrl}}Lists the tools with their JSON Schema inputSchema in one stateless POST. Compare the names with the native requests above; if a server renames a tool, this…
  • POSTtools/call search_cloudflare_documentation (plain HTTP){{mcpUrl}}Calls search_cloudflare_documentation with a raw JSON-RPC body: params.name is the tool, params.arguments its input, _meta carries the protocol version and…
  • POSTprompts/list (plain HTTP){{mcpUrl}}Lists the prompts the server offers; here the single workers-prompt-full with its description. Clients show prompts as commands a user can pick, then fetch…
  • POSTprompts/get workers-prompt-full (plain HTTP){{mcpUrl}}Fetches the prompt's messages as raw JSON-RPC: params.name names the prompt and the Mcp-Name header repeats it. The result is a messages array with one long…

API details

Base URL
https://docs.mcp.cloudflare.com/mcp
Authentication
None declared in the description
Operations
12 operations on 12 pathsPOST 12
Main resources
1. Start here 32. More searches 43. The same calls as plain HTTP 5
Description format
Swastik Codes guided collection, API version checked against the docs on 2026-11-18

How to test the Cloudflare documentation MCP server in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Cloudflare documentation MCP server collection, without the publisher's secrets.
  3. Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
  4. Send a requestPick an endpoint, for example “Search the docs (search_cloudflare_documentation)” (POST {{mcpUrl}}), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Cloudflare documentation MCP server?

Keyless MCP server that searches Cloudflare's developer docs: Workers, R2, D1, KV, Zero Trust and more, plus a Workers coding prompt. It is listed under Developer tools and has 12 endpoints.

Who publishes the Cloudflare documentation MCP server?

It is listed from Cloudflare's public API description (an OpenAPI document), not published by Cloudflare on Swastik Codes. Anyone who controls cloudflare.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Cloudflare documentation MCP server?

Requests go to https://docs.mcp.cloudflare.com/mcp. Endpoint paths are added to this base URL.

How do I authenticate with the Cloudflare documentation MCP server?

Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.

How many endpoints does the Cloudflare documentation MCP server have?

12 operations on 12 paths (12 POST). The largest groups are 1. Start here, 2. More searches, 3. The same calls as plain HTTP.

Is forking the Cloudflare documentation MCP server free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.