Cloudflare MCP
๐ โ๏ธ - Manage Cloudflare Workers, KV, R2, Pages, DNS, and cache from your
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
Maintainer
Works with
Installation
NPM
npx -y mcp-server-cloudflare-dnsManual Installation
npx -y mcp-server-cloudflare-dnsConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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.
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.
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/mcpAdd 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"]
}
}
}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.
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.
Cloudflare MCP Alternatives โ Similar Cloud Services Servers
Looking for alternatives to Cloudflare MCP? Here are other popular cloud services servers you can use with Claude, Cursor, and VS Code.
Open WebUI
โ 138.2kUser-friendly AI Interface (Supports Ollama, OpenAI API, ...)
Anything LLM
โ 60.4kThe all-in-one AI productivity accelerator. On device and privacy first with no annoying setup or configuration.
LocalAI
โ 46.4kLocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.
Nacos
โ 33.0kan easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.
Xiaozhi ESP32
โ 26.7kๆฌ้กน็ฎไธบxiaozhi-esp32ๆไพๅ็ซฏๆๅก๏ผๅธฎๅฉๆจๅฟซ้ๆญๅปบESP32่ฎพๅคๆงๅถๆๅกๅจใBackend service for xiaozhi-esp32, helps you quickly build an ESP32 device control server.
Gateway
โ 11.8kA blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardrails with 1 fast & friendly API.
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.
Set Up Cloudflare MCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.