Cloudflare MCP

v1.0.0โ€ขCloud Servicesโ€ขstable

๐Ÿ“‡ โ˜๏ธ - Manage Cloudflare Workers, KV, R2, Pages, DNS, and cache from your

cloudflaremcpai-integration
Share:
3,763
Stars
0
Downloads
0
Weekly
0/5

What is Cloudflare MCP?

Cloudflare MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to ๐Ÿ“‡ โ˜๏ธ - manage cloudflare workers, kv, r2, pages, dns, and cache from your

๐Ÿ“‡ โ˜๏ธ - Manage Cloudflare Workers, KV, R2, Pages, DNS, and cache from your

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP protocol support

Use Cases

Manage Workers, KV, R2, and DNS from AI
Control Cloudflare Pages and cache settings
cloudflare

Maintainer

LicenseApache 2.0
Languagetypescript
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y mcp-server-cloudflare-dns

Manual Installation

npx -y mcp-server-cloudflare-dns

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Cloudflare MCP

The Cloudflare MCP Server suite provides AI agents with direct access to the full range of Cloudflare platform services through the Model Context Protocol. It exposes dedicated servers for Workers, KV, R2, DNS analytics, observability, browser rendering, AI Gateway, audit logs, and more โ€” all accessible from Claude or any MCP-compatible client. Teams use it to manage, debug, and analyze their Cloudflare infrastructure conversationally without leaving their AI workflow.

Prerequisites

  • A Cloudflare account with the relevant services enabled (Workers, R2, DNS, etc.)
  • A Cloudflare API token with appropriate scopes for the servers you want to use (created in the Cloudflare dashboard)
  • Node.js 18+ installed for running mcp-remote
  • An MCP client such as Claude Desktop
1

Choose the Cloudflare MCP servers you need

Cloudflare provides multiple specialized MCP servers hosted at *.mcp.cloudflare.com. Decide which you need: Documentation, Workers Bindings, Workers Builds, Observability, Container, Browser Rendering, Logpush, AI Gateway, Audit Logs, DNS Analytics, Digital Experience Monitoring, CASB, or GraphQL.

2

Create API tokens in Cloudflare dashboard

Navigate to Cloudflare Dashboard > My Profile > API Tokens. Create tokens with the appropriate permissions for each server you intend to use (e.g., Zone:Read for DNS, Workers:Edit for Workers servers). Save the tokens securely.

3

Install mcp-remote for clients without native remote MCP support

For MCP clients that cannot connect to remote HTTP-based MCP servers natively, use mcp-remote as a bridge. It handles authentication and connection to Cloudflare's hosted endpoints.

npx mcp-remote https://observability.mcp.cloudflare.com/mcp
4

Add Cloudflare MCP servers to your client config

Configure each desired Cloudflare MCP server in your claude_desktop_config.json. Each server has its own remote URL. Authentication is handled through OAuth in the browser when first connecting.

{
  "mcpServers": {
    "cloudflare-observability": {
      "command": "npx",
      "args": ["mcp-remote", "https://observability.mcp.cloudflare.com/mcp"]
    },
    "cloudflare-dns": {
      "command": "npx",
      "args": ["mcp-remote", "https://dns-analytics.mcp.cloudflare.com/mcp"]
    },
    "cloudflare-workers": {
      "command": "npx",
      "args": ["mcp-remote", "https://workers-bindings.mcp.cloudflare.com/mcp"]
    }
  }
}
5

Authenticate via OAuth on first use

On the first request to a Cloudflare MCP server, mcp-remote will open a browser window for you to authorize via the Cloudflare OAuth flow. After authorization, the token is cached locally for subsequent requests.

6

Verify connection and query a service

Ask your AI client a question about your Cloudflare account to confirm the server is working, such as listing DNS records or checking Workers analytics.

Cloudflare MCP Examples

Client configuration

Claude Desktop config for Cloudflare observability and DNS analytics MCP servers using mcp-remote.

{
  "mcpServers": {
    "cloudflare-observability": {
      "command": "npx",
      "args": ["mcp-remote", "https://observability.mcp.cloudflare.com/mcp"]
    },
    "cloudflare-dns-analytics": {
      "command": "npx",
      "args": ["mcp-remote", "https://dns-analytics.mcp.cloudflare.com/mcp"]
    },
    "cloudflare-browser": {
      "command": "npx",
      "args": ["mcp-remote", "https://browser-rendering.mcp.cloudflare.com/mcp"]
    }
  }
}

Prompts to try

Example prompts that use Cloudflare MCP capabilities.

- "Show me the error rate and P99 latency for my Workers in the last hour"
- "List all DNS records for example.com and flag any that look misconfigured"
- "Fetch the page at https://example.com, convert it to markdown, and summarize it"
- "Search my AI Gateway logs for any prompts containing the word 'password' in the last 24 hours"
- "Show me the audit log entries from the past week for my Cloudflare account"
- "What Workers are deployed to my account and what KV namespaces do they use?"

Troubleshooting Cloudflare MCP

Authentication fails or OAuth browser window does not open

Ensure npx can execute mcp-remote and that your system has a default browser configured. If behind a proxy, set HTTP_PROXY and HTTPS_PROXY environment variables. Re-run the connection to trigger a fresh OAuth flow.

Context length errors when querying observability data

Cloudflare recommends keeping queries specific and time-bounded. Instead of 'show all logs', ask for 'the last 50 error log entries from Worker X in the past hour' to avoid exceeding token limits.

mcp-remote command not found

Ensure Node.js 18+ is installed and npx is on your PATH. Run 'npx --version' to verify. If it still fails, try installing mcp-remote globally: npm install -g mcp-remote.

Frequently Asked Questions about Cloudflare MCP

What is Cloudflare MCP?

Cloudflare MCP is a Model Context Protocol (MCP) server that ๐Ÿ“‡ โ˜๏ธ - manage cloudflare workers, kv, r2, pages, dns, and cache from your It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Cloudflare MCP?

Install via npm with the command: npx -y mcp-server-cloudflare-dns. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Cloudflare MCP?

Cloudflare MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Cloudflare MCP free to use?

Yes, Cloudflare MCP is open source and available under the Apache 2.0 license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "cloudflare": { "command": "npx", "args": ["-y", "mcp-server-cloudflare-dns"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide โ†’

Ready to use Cloudflare MCP?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides