Official Cloud & Infra

Cloudflare

Cloudflare's official remote MCP servers for the Cloudflare API, Workers, docs, and observability.

Works with: Claude DesktopClaude CodeCursorWindsurf

Official server · page last edited

How to install the Cloudflare MCP server

Add this to your Claude Desktop MCP configuration:

Add https://mcp.cloudflare.com/mcp (the Code Mode server) as a remote MCP server and authorize with OAuth. For automation, use a Cloudflare API token as a bearer token. Domain servers such as https://observability.mcp.cloudflare.com/mcp are listed in the repository.

Add this to your Claude Code MCP configuration:

Add https://mcp.cloudflare.com/mcp (the Code Mode server) as a remote MCP server and authorize with OAuth. For automation, use a Cloudflare API token as a bearer token. Domain servers such as https://observability.mcp.cloudflare.com/mcp are listed in the repository.

Add this to your Cursor MCP configuration:

Add https://mcp.cloudflare.com/mcp (the Code Mode server) as a remote MCP server and authorize with OAuth. For automation, use a Cloudflare API token as a bearer token. Domain servers such as https://observability.mcp.cloudflare.com/mcp are listed in the repository.

Add this to your Windsurf MCP configuration:

Add https://mcp.cloudflare.com/mcp (the Code Mode server) as a remote MCP server and authorize with OAuth. For automation, use a Cloudflare API token as a bearer token. Domain servers such as https://observability.mcp.cloudflare.com/mcp are listed in the repository.

Built by ContextBoltThis directory is built by ContextBolt: MCP-native memory and SEO tools that run alongside Cloudflare in the same client.

Explore ContextBolt

Cloudflare’s official MCP servers are hosted, remote endpoints. The recommended one is the Code Mode server at https://mcp.cloudflare.com/mcp, which gives Claude broad access across Cloudflare’s APIs. Cloudflare also runs domain-specific servers for documentation, Workers bindings, builds, observability, browser rendering, AI Gateway and more. The older npm package @cloudflare/mcp-server-cloudflare was last published in March 2025. For developers running infrastructure on Cloudflare, this collapses dashboard tab-switching into single prompts.

Why use it

Cloudflare’s dashboard is good but spread across many product surfaces. Claude with the MCP server can answer “what’s the status of my last Workers deploy?” or “how much R2 storage am I using?” without you opening four tabs.

For solo founders running on Cloudflare’s stack (which is plenty), it’s one of the higher-leverage integrations.

What it actually does

The Code Mode server exposes the Cloudflare API through code execution, so Claude works with a small set of general tools rather than one tool per endpoint. The domain-specific servers give curated tools for one product area, such as observability, Workers bindings or Radar.

Practical patterns:

  • “Show me my last five Workers builds and their status.”
  • “Search my Worker logs for errors in the last hour.”
  • “List my Workers and tell me which ones have no recent deploys.”

Gotchas

Broad permissions are powerful. Access that can edit Workers can deploy code; access that can edit DNS can take your site down. Default to read-only and grant write only where needed.

Some operations are async. Workers deployments, R2 uploads, and zone-level changes can take seconds to propagate. The server returns the queued state; Claude needs to poll or wait.

Pair with GitHub for an end-to-end deploy loop: open a PR with code, merge it, watch the Cloudflare deploy, run a smoke test. Each step is a tool call.

Built by ContextBolt

This directory is built by ContextBolt

We build MCP-native tools that give your AI the context it cannot reach on its own. Bookmarks turns your saved posts into agent-queryable memory. SEO puts live keyword and ranking data inside Claude. Both run alongside Cloudflare in the same client.

Explore the products →

Cloudflare MCP server: FAQs

Does it support D1 (SQL) databases?

Cloudflare's Workers Bindings server covers storage, AI and compute primitives for building Workers, and the Code Mode server reaches the wider Cloudflare API. Check Cloudflare's docs for the exact D1 operations each server supports before you rely on it.

Can it deploy Workers?

Cloudflare's Workers Builds server lets you get insights on and manage Workers Builds, and the Code Mode server has broad access across Cloudflare's APIs. Default to read-only permissions for most workflows; grant deploy permissions only when you specifically want Claude to ship code.

How is auth handled?

OAuth is the recommended route. Connect to a server URL and Cloudflare redirects you to authorize and pick permissions. For CI or automation you can use a Cloudflare API token instead, created at dash.cloudflare.com/profile/api-tokens. Limit it to the specific zones, accounts, or services you want Claude to access.

Does it handle Pages deployments?

Cloudflare lists no Pages-specific server, so check its docs for current Pages support. Its Workers Builds server covers build insights for Workers. Combine with the GitHub MCP server for an end-to-end deploy flow.

What about Workers AI?

Cloudflare has an AI Gateway server that searches your logs and shows details about prompts and responses. Useful if you're routing Claude through Cloudflare AI Gateway.