Skip to content

Cloudflare MCP Servers

You just deployed a Cloudflare Worker that handles authentication. It works in dev, but something is off in production — the KV reads are returning stale data and the R2 bucket permissions look wrong. You open four browser tabs: the Workers dashboard, the KV namespace viewer, the R2 bucket settings, and the Cloudflare docs. You copy values between tabs, cross-reference configuration, and lose twenty minutes before finding the issue. A single mistyped namespace binding name.

Cloudflare’s MCP servers bring your entire edge infrastructure into your AI’s context. The AI reads your Worker code, inspects KV namespaces, queries D1 databases, checks R2 buckets, and searches the Cloudflare docs — all from one conversation in your editor.

  • Setup for Cloudflare’s managed remote MCP servers
  • Overview of all 16 available servers and when to use each
  • Prompts for Workers deployment, KV/R2 management, D1 queries, and documentation lookup
  • OAuth authentication flow and account selection

Cloudflare runs remote MCP servers — unlike most MCP servers that run locally on your machine, these are hosted services that authenticate via OAuth. When you first connect, a browser window opens for Cloudflare login. After authentication, you select which Cloudflare account to use, and the MCP server operates with your account permissions.

All Cloudflare MCP servers follow the same URL pattern: https://{service}.mcp.cloudflare.com/mcp

Cloudflare provides 16 managed MCP servers, but you do not need all of them. Start with the ones that match your stack:

ServerURLWhat It Does
Documentationhttps://docs.mcp.cloudflare.com/mcpSearch Cloudflare’s reference docs
Workers Bindingshttps://bindings.mcp.cloudflare.com/mcpManage Workers + bound resources (KV, R2, D1, Durable Objects, Queues, Vectorize, Hyperdrive)
Workers Buildshttps://builds.mcp.cloudflare.com/mcpInspect and manage Workers build history
Observabilityhttps://observability.mcp.cloudflare.com/mcpQuery Workers logs, errors, and analytics
Radarhttps://radar.mcp.cloudflare.com/mcpInternet traffic, trends, and URL scans
Containerhttps://containers.mcp.cloudflare.com/mcpSpin up a sandbox container for the agent
Browser Renderinghttps://browser.mcp.cloudflare.com/mcpFetch pages, screenshots, and markdown via a headless browser
Logpushhttps://logs.mcp.cloudflare.com/mcpSummarize Logpush job health
AI Gatewayhttps://ai-gateway.mcp.cloudflare.com/mcpInspect AI Gateway logs, prompts, and responses
AI Search (AutoRAG)https://autorag.mcp.cloudflare.com/mcpList and query AutoRAG document indexes
Audit Logshttps://auditlogs.mcp.cloudflare.com/mcpQuery account audit logs and generate reports
DNS Analyticshttps://dns-analytics.mcp.cloudflare.com/mcpOptimize DNS performance and debug issues
Digital Experience Monitoringhttps://dex.mcp.cloudflare.com/mcpInsights into org connectivity and app health
Cloudflare One CASBhttps://casb.mcp.cloudflare.com/mcpSurface SaaS security misconfigurations
GraphQLhttps://graphql.mcp.cloudflare.com/mcpQuery the Cloudflare analytics GraphQL API
Agents SDK Docshttps://agents.cloudflare.com/mcpReference docs for building on the Agents SDK
Section titled “Setup: Bindings + Builds + Observability (Recommended Starting Point)”

This trio covers most Workers work: Workers Bindings reaches your KV, R2, D1, Durable Objects, Queues, Vectorize, and Hyperdrive resources; Workers Builds inspects deployments; Observability queries logs and errors.

{
"mcpServers": {
"cloudflare-bindings": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://bindings.mcp.cloudflare.com/mcp"]
},
"cloudflare-builds": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://builds.mcp.cloudflare.com/mcp"]
},
"cloudflare-observability": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://observability.mcp.cloudflare.com/mcp"]
}
}
}

Each server triggers its own OAuth flow on first use. After the first authorization, credentials are cached locally.

KV, R2, and D1 access all flow through the Workers Bindings server — there is no separate per-primitive server to add. Point your prompts at the namespaces and databases bound to your Workers.

The Docs MCP server is underrated. Instead of searching docs.cloudflare.com in a browser, the AI searches Cloudflare’s documentation directly and applies what it finds to your code.

{
"mcpServers": {
"cloudflare-docs": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://docs.mcp.cloudflare.com/mcp"]
}
}
}

OAuth flow fails. Cloudflare’s OAuth redirects to localhost. If something blocks localhost callbacks (VPN, corporate proxy, browser extensions), the flow hangs. Try a different browser or temporarily disable the proxy.

Wrong account selected. If you have multiple Cloudflare accounts, the MCP server lets you choose which one to use. If you are seeing the wrong Workers or KV namespaces, disconnect and reconnect to select the correct account.

Rate limiting. Cloudflare MCP servers are backed by the Cloudflare API, which has rate limits. If you hit them, reduce the scope of your prompts. Instead of “list all KV keys,” try “list the first 50 KV keys matching the prefix ‘user:’.”

Stale data after deployments. If you deploy a Worker through Wrangler and then ask the MCP server about it, there may be a brief delay before the new deployment appears. Wait 10-15 seconds and try again.

Too many MCP servers slow down startup. Each Cloudflare MCP server adds tool descriptions to the AI’s context. If you have all 16 connected, that is hundreds of tool descriptions competing for attention. Connect only the servers you actively need.