Cloudflare API MCP server
Cloudflare's API MCP server provides access to the entire Cloudflare API — over 2,500 endpoints across DNS, Workers, R2, Zero Trust, and every other product — through just two Code Mode tools, search and execute, where the model writes JavaScript against a typed API client.
Endpoint and access
OAuth sign-in: the first time you connect, your client opens the vendor's own authorization prompt in a browser.
https://mcp.cloudflare.com/mcpChecks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Endpoint and vendor documentation share a domain
- Uptime 100% over 90 days
- Availability 2 of 2 checks passed in 30 days
About Cloudflare API
The Cloudflare API MCP server provides access to the entire Cloudflare API, covering DNS, Workers, R2, Zero Trust, and other products. It exposes this functionality through two Code Mode tools where the model writes JavaScript against a typed API client.
This server suits tasks such as automating Cloudflare configuration from CI, calling any Cloudflare API endpoint across multiple products from one connection, and searching the API surface to find the right endpoint before execution.
A Cloudflare account is required. Access is established via OAuth sign-in, where the client opens the vendor's authorization prompt in a browser for the first connection.
What you can do with it
- Search the Cloudflare API surface to find the right endpoint before executing it.
- Call any Cloudflare API endpoint across DNS, Workers, R2, and Zero Trust from one connection.
- Automate Cloudflare configuration from CI with an API token passed as a bearer token.
Tools
Reported by the attributed source; not independently observed by Koskamo.
90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-02: 3 of 3 checks answered
- 2026-11-03: 4 of 4 checks answered
- 2026-11-04: 4 of 4 checks answered
- 2026-11-05: 4 of 4 checks answered
- 2026-11-06: 4 of 4 checks answered
- 2026-11-07: 2 of 2 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 4 of 4 checks answered
- 2026-11-27: 3 of 3 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 2 of 2 (100%)
- Average latency
- 226 ms
- 95th percentile latency
- 234 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 217 ms · metadata changed · refuses unauthenticated initialize (HTTP 401)
- · probe · passed · 235 ms · metadata changed · refuses unauthenticated initialize (HTTP 401)
Try asking
Reviewed prompts from cited playbooks. Connect the listed servers before using them.
Create a Cloudflare chat agent using the AI SDK and Workers AI. Configure Wrangler to bind the AI model and a Durable Object for SQLite state. Implement three tools: 1) 'getWeather' which runs automatically on the server. 2) 'getUserTimezone' which is a client-side tool handled by the browser. 3) 'calculate' which requires user approval if the absolute value of either number exceeds 1000. Ensure the agent streams responses and prunes messages appropriately.Please update the DNS record for example.com to point to 192.0.2.1 using the Cloudflare API.How do I configure authentication for the Cloudflare API MCP server?Agent playbooks using this server
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http cloudflare-api https://mcp.cloudflare.com/mcpCodex
codex mcp add cloudflare-api --url https://mcp.cloudflare.com/mcpCursor
{
"mcpServers": {
"cloudflare-api": {
"url": "https://mcp.cloudflare.com/mcp"
}
}
}Cline
{
"mcpServers": {
"cloudflare-api": {
"type": "streamableHttp",
"url": "https://mcp.cloudflare.com/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"cloudflare-api": {
"type": "http",
"url": "https://mcp.cloudflare.com/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http cloudflare-api https://mcp.cloudflare.com/mcpClaude Desktop
https://mcp.cloudflare.com/mcpWindsurf
{
"mcpServers": {
"cloudflare-api": {
"serverUrl": "https://mcp.cloudflare.com/mcp"
}
}
}Let your agent find its tools
Find servers like Cloudflare API from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other cloud and infrastructure servers
Frequently asked questions
- What tasks does this server support?
- It supports automating Cloudflare configuration from CI, calling any Cloudflare API endpoint across DNS, Workers, R2, and Zero Trust, and searching the API surface to find the right endpoint before execution.
- What are the prerequisites for using this server?
- You need a Cloudflare account. The server uses OAuth sign-in, which opens the vendor's authorization prompt in a browser during the first connection.
Do you run Cloudflare API?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.