Cloudflare Docs
https://docs.mcp.cloudflare.com/mcp
Search Cloudflare product documentation and fetch the official guide for migrating Pages projects to Workers.
80.0/100
#19 of 33 · #17 in Docs & knowledge
Fix it with your coding agent
Free. Paste this into Claude Code, Cursor or Codex inside your server's repo.
Improve the MCP server at https://docs.mcp.cloudflare.com/mcp so AI agents can use it better. It scored 80/100 (B+) on the Agnost MCP Leaderboard.
Top fixes:
1. Add a description to search_cloudflare_documentation's query parameter explaining expected input (natural-language question vs keywords) and good examples like 'R2 presigned URLs'.
2. State what search_cloudflare_documentation returns (doc snippets, titles, URLs, result count) and finish the truncated product list (Workers, Pages, R2...) or replace it with 'any Cloudflare product'.
3. Rewrite migrate_pages_to_workers_guide to say it returns the full migration guide text, that it takes no inputs, and to use it instead of search for Pages-to-Workers migration steps.
Per-tool fixes:
- migrate_pages_to_workers_guide: Returns the official Cloudflare guide (markdown) for migrating a Pages project to Workers, covering wrangler config, Functions-to-Worker conversion, static assets and routing. Takes no inputs. Call it before planning or performing any Pages-to-Workers migration. It does not say what the tool returns (the full guide text? markdown?). It does not describe what the guide covers (config changes, routing, Functions conversion). No outputSchema — agents can't tell what the tool returns
- search_cloudflare_documentation: Search Cloudflare developer docs and return the top semantically matching text chunks with their source URLs. Use for any question about Cloudflare products, configuration, limits, or pricing. Param query: a natural-language question or keywords, e.g. 'R2 multipart upload limits'. The 'query' parameter has no description, format guidance, or example (natural language question vs keywords). It does not say how many chunks come back, or whether results include source URLs. The long product list uses tokens but adds little beyond 'any Cloudflare product'. 1 of 1 parameter(s) have no description
Keep tool names stable. Add readOnlyHint/destructiveHint annotations and outputSchema where missing.Score breakdown
Weighted by what breaks agents in 100M+ real MCP calls.
Error quality
3 bad-input tests · 2 clear errors
78/100 · 20 pts
↳ Clear errors that name the fix get ~3× more successful retries
Task success across agents
opus-5-5: 3/3 · haiku-5-5: 3/3 · gpt-5.5: 3/3 · first-call success 100% · 1.1 calls/task
99/100 · 15 pts
↳ The same tool can fail 0% of the time in one client and 13% in another
Tool count & token cost
2 tools · ~766 tokens · 1 overlapping pairs
94/100 · 15 pts
↳ The top 3 tools usually get >99% of calls; the rest just cost context
Schema & docs accuracy
Descriptions 64/100 · output matched schema 8/8
79/100 · 15 pts
↳ Declared output schemas that don't match real output break calls
Response size
median ~7,555 tokens · p95 ~8,270 · no limit params
52/100 · 10 pts
↳ Big responses overflow the agent's context; ~30% of search responses exceed 25k tokens
Latency & long calls
median 2482ms · p95 9636ms · 0 timeouts
74/100 · 10 pts
↳ After a client cancels a long call, ~39% of sessions end
Connection & login
handshake 164ms · Streamable HTTP
100/100 · 10 pts
↳ After a login or permission error, ~1 in 5 sessions end
Metadata & discoverability
metadata 20/100 · Listed in the official MCP Registry ✓ · mcp.json manifest ✕ · Setup page in the browser ✕
27/100 · 5 pts
↳ The basics. Necessary, but not what makes agents succeed
What your errors look like to an agent
We sent deliberately bad inputs. Errors that name the bad field and the valid values get ~3× more successful retries in real agent traffic.
Left out a required field · search_cloudflare_documentation.query
Model sees it · "Input validation error: Invalid arguments for tool search_cloudflare_documentation: query: Invalid input: expected string, received undefined"
Sent the wrong type · search_cloudflare_documentation.query
Model sees it · "Input validation error: Invalid arguments for tool search_cloudflare_documentation: query: Invalid input: expected string, received number"
Called a tool that doesn't exist · —
Protocol error (often hidden from the model) · "Tool __agnost_nonexistent_tool__ not found"
We let a real AI agent use it
3 AI models got realistic tasks and the full tool list. We checked if the first call was right, how many calls it took, and if it finished the job. It used ~3,890 tokens per task on average.
opus-5-5How do I generate a presigned URL for an object in Cloudflare R2?
Right tool first try · 13.0s · search_cloudflare_documentation
opus-5-5What are the CPU time limits for Cloudflare Workers on the free plan?
Right tool first try · 10.7s · search_cloudflare_documentation
opus-5-5I want to move my Cloudflare Pages site to Workers. What steps should I follow?
Right tool first try · 7.6s · migrate_pages_to_workers_guide
haiku-5-5How do I generate a presigned URL for an object in Cloudflare R2?
Right tool first try · 7.5s · search_cloudflare_documentation
haiku-5-5What are the CPU time limits for Cloudflare Workers on the free plan?
Right tool first try · 20.2s · search_cloudflare_documentation → search_cloudflare_documentation
haiku-5-5I want to move my Cloudflare Pages site to Workers. What steps should I follow?
Right tool first try · 5.4s · migrate_pages_to_workers_guide
gpt-5.5How do I generate a presigned URL for an object in Cloudflare R2?
Right tool first try · 8.8s · search_cloudflare_documentation
gpt-5.5What are the CPU time limits for Cloudflare Workers on the free plan?
Right tool first try · 5.6s · search_cloudflare_documentation
gpt-5.5I want to move my Cloudflare Pages site to Workers. What steps should I follow?
Right tool first try · 6.4s · migrate_pages_to_workers_guide
Top 3 fixes
- 1
Add a description to search_cloudflare_documentation's query parameter explaining expected input (natural-language question vs keywords) and good examples like 'R2 presigned URLs'.
- 2
State what search_cloudflare_documentation returns (doc snippets, titles, URLs, result count) and finish the truncated product list (Workers, Pages, R2...) or replace it with 'any Cloudflare product'.
- 3
Rewrite migrate_pages_to_workers_guide to say it returns the full migration guide text, that it takes no inputs, and to use it instead of search for Pages-to-Workers migration steps.