Cloudflare MCP Server
Official Cloudflare MCP servers enabling AI assistants like Claude and Cursor to manage your entire Cloudflare account — DNS, Workers, R2, Zero Trust, and more — using natural language via secure remote MCP endpoints.
Overview
Cloudflare MCP Server refers to the official suite of Model Context Protocol (MCP) servers provided by Cloudflare. These remote servers allow AI assistants (Claude Desktop, Cursor, Windsurf, AI Playground, etc.) to interact with your Cloudflare account using natural language.
Cloudflare offers two main categories:
- Code Mode API MCP Server (
mcp.cloudflare.com): A highly token-efficient server that exposes the entire Cloudflare API (over 2,500 endpoints) using just two smart tools:search()andexecute(). Ideal for broad access across all products. - Product-specific MCP Servers: Focused servers for targeted use cases like DNS, Workers Observability, Documentation (vectorized), and more.
All servers support secure OAuth authentication and can be added directly to your MCP client.
Key Features
- Full API Coverage (Code Mode): Access DNS, Workers, R2, D1, Zero Trust, Pages, KV, Durable Objects, and every other Cloudflare product with minimal token usage (~1,000 tokens fixed cost).
- Product-Specific Tools: Dedicated servers for DNS management, Workers logs & observability, documentation search, and more.
- Natural Language Operations: "Deploy a new Worker from my GitHub repo", "Update my DNS records for example.com", or "Check R2 bucket usage and suggest optimizations".
- Secure Remote Access: OAuth-based authentication with Cloudflare's managed remote servers.
- Multiple Transports: Supports streamable HTTP and SSE.
- Developer-Friendly: Official documentation, easy client configuration, and integration with Cloudflare's Agents SDK.
Use Cases
- Infrastructure Management: Deploy, update, and monitor Workers, Pages, and R2 storage conversationally.
- DNS & Domain Operations: Add, edit, or troubleshoot DNS records and zones.
- Security & Zero Trust: Manage access policies, tunnels, and security settings.
- Observability & Debugging: Analyze logs, performance, and suggest improvements.
- Documentation Assistance: Query up-to-date Cloudflare docs in real time.
- AI-Driven DevOps: Combine with other MCP servers for full-stack automation pipelines.
How to Use (Quick Start)
- Open your MCP client (Claude Desktop, Cursor, etc.).
- Add a remote MCP server using one of the official URLs (e.g.,
https://mcp.cloudflare.com/mcpfor Code Mode). - Authenticate with your Cloudflare account via OAuth when prompted.
- Start prompting naturally: "List my Workers and show their status" or "Create a new DNS A record for my domain".
Detailed setup instructions and server URLs are available in the Cloudflare MCP Servers documentation and the GitHub repository.
Official Repositories
- Main MCP Servers Catalog: https://github.com/cloudflare/mcp-server-cloudflare
- Code Mode API Server: https://github.com/cloudflare/mcp
- Workers MCP Tooling: https://github.com/cloudflare/workers-mcp
Cloudflare also provides guides for building and deploying your own custom remote MCP servers on Cloudflare Workers.
Compatibility
- Clients: Claude Desktop/Code, Cursor, Windsurf, Cloudflare AI Playground, and any MCP-compliant tool.
- Authentication: Secure OAuth (recommended and managed by Cloudflare).
- License: Open-source components under Cloudflare's repositories.
Cloudflare's MCP servers represent one of the most comprehensive and production-ready integrations for AI-powered infrastructure management, leveraging Cloudflare's global network and developer platform.