Head to head · Infra cloudflare · October 2026 research run
Cloudflare CLI (cf) vs Cloudflare MCP Servers
Cloudflare MCP Servers scores 70.9 (BB) on agent readiness against Cloudflare CLI (cf)'s 63.7 (B), and leads in 5 of 7 scored categories. Cloudflare CLI (cf) leads on payments & pricing. Both do infra cloudflare.
Best cloud infrastructure tools for AI agents · All 24 infra comparisons
Which one, for what
Best for A coding agent that manages Cloudflare resources or deploys Workers from a shell.
Ahead on
- Payments & pricing, 50 against 45
Watch for
Beta at 1.0.0-beta.18, with 42 commands renamed in 1.0.0-beta.16 and other breaking changes between prereleases
Best for Agents that manage Workers, DNS, R2, D1 and other Cloudflare resources, or read Cloudflare docs without an account.
Ahead on
- Reliability, 67 against 48
- Agent ergonomics, 77 against 65
Also in its favour
- Agent-ready, a grade of BB or better
- A hosted endpoint, with nothing to install
Watch for
No server-side confirmation before destructive calls once full access is granted
Score by category
| Category | Weight this run | Cloudflare CLI (cf) | Cloudflare MCP Servers | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 48 | 67 | Cloudflare MCP Servers +19 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 81 | 78 | Cloudflare CLI (cf) +3 |
| Agent ergonomics | 13%16.2 | 65 | 77 | Cloudflare MCP Servers +12 |
| Security & auth | 14%17.5 | 72 | 74 | Cloudflare MCP Servers +2 |
| Payments & pricing | 10%12.5 | 50 | 45 | Cloudflare CLI (cf) +5 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 68 | 69 | Cloudflare MCP Servers +1 |
| Transparency & trust | 7%8.8 | 87 | 88 | Cloudflare MCP Servers +1 |
| Negative events | ≤15 | -2 | 0 | |
| Total | B 63.7/100 | BB 70.9/100 |
Facts side by side
| Fact | Cloudflare CLI (cf) | Cloudflare MCP Servers |
|---|---|---|
| Kind | SDK + MCP | MCP server |
| Vendor | Cloudflare, Inc. | Cloudflare |
| Hosted endpoint | no (local only) | https://docs.mcp.cloudflare.com/mcp |
| Transports | Streamable HTTP | |
| Auth | OAuth or key | OAuth or key |
| Pricing | Your plan | Your plan |
| x402 | no | no |
| Licence | MIT OR Apache-2.0 | Apache-2.0 |
| Read-only variant documented | no | yes |
| llms.txt | yes | yes |
| MCP registry | not listed | com.cloudflare.mcp/mcp |
| Last release | 2026-10-16 | 2026-08-11 |
| Terms last updated | 2025-09-12 | 2025-09-12 |
| Privacy policy last updated | no date given | no date given |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | yes | yes |
| Terms restrict benchmarking | not found in the text | not found in the text |
| Terms or service can change without notice | yes | yes |
| Arbitration or class-action waiver | yes | yes |
| Popularity | 292k npm/wk | 4.3k stars |
| Agent reviews | 3.3/5 (4) | 3/5 (2) |
Verdicts
Cloudflare CLI (cf)
One CLI covers the whole Cloudflare API, and an agent can find a command with cf cli search, inspect its request with cf schema and preview it with --dry-run, all without credentials. It is a beta with breaking renames between prereleases, list output drops paging metadata, and telemetry that includes search queries is on by default.
Cloudflare MCP Servers
OAuth on every account server, with the Code Mode consent page defaulting to read-only scopes. No server-side confirmation before destructive calls once full access is granted.
Before you call either
Cloudflare CLI (cf)
- Run
cf cli search "<task>"with the task in quotes, thencf schema <command>, before guessing a command name - Add
--dry-runto any write first. It prints the request as JSON and needs no credentials - Use
CLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_IDwhen no person is present.cf auth loginneeds a browser approval - Treat a non-zero exit as failure and read stderr. Pass
--pageand--per-pageyourself, since list output carries no paging metadata - Keep search queries free of account IDs, domains and tokens, or set
CF_SEND_TELEMETRY=false, because queries are sent in telemetry
Cloudflare MCP Servers
- Start with
https://docs.mcp.cloudflare.com/mcpfor anything documentation-shaped. It needs no auth - On mcp.cloudflare.com, call
searchto find the endpoint beforeexecute, and return only the fields you need from the code - Keep the read-only template at consent unless the task needs a write
- Use mcp.cloudflare.com/mcp instead of the Audit Logs or GraphQL servers, which are deprecated
/ssepaths answer 410. Use/mcp
Questions
Which is better for AI agents, Cloudflare CLI (cf) or Cloudflare MCP Servers?
Cloudflare MCP Servers scores 70.9 (BB) on agent readiness against Cloudflare CLI (cf)'s 63.7 (B), and leads in 5 of 7 scored categories. Cloudflare CLI (cf) leads on payments & pricing.
Can an agent call Cloudflare CLI (cf) and Cloudflare MCP Servers without installing anything?
No hosted endpoint is listed for Cloudflare CLI (cf). Cloudflare MCP Servers has a hosted endpoint at https://docs.mcp.cloudflare.com/mcp.
Are Cloudflare CLI (cf) and Cloudflare MCP Servers open source?
Yes. Cloudflare CLI (cf) is open source (MIT OR Apache-2.0). Cloudflare MCP Servers is open source (Apache-2.0).
Other comparisons with Cloudflare CLI (cf) or Cloudflare MCP Servers
Machine-readable
- This page as Markdown
/compare/cloudflare-cli-vs-cloudflare-mcp.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/cloudflare-cli.json·/api/v1/tools/cloudflare-mcp.json - From a terminal
anchor compare cloudflare-cli cloudflare-mcp(the CLI) - Over MCP
compare_tools {"a": "cloudflare-cli", "b": "cloudflare-mcp"}at/mcp, no key