Cloudflare MCP Server — Manage DNS, CDN & Workers Through AI
The Cloudflare MCP server lets your AI assistant manage your Cloudflare account — DNS records, CDN settings, Workers, and security configuration.
Capabilities
- Manage DNS records
- Configure CDN and caching
- Deploy and manage Workers
- View analytics and metrics
- Adjust security settings
Setup
Create a Cloudflare API token from the Cloudflare dashboard with appropriate permissions.
Visit our Cloudflare MCP page or use:
{"mcpServers":{"cloudflare":{"command":"npx","args":["-y","@cloudflare/mcp-server"],"env":{"CLOUDFLARE_API_TOKEN":"your_token"}}}}Try It
“List all DNS records for my domain” or “Add an A record pointing to 1.2.3.4.” Perfect for infrastructure-as-code workflows.
Leveraging Edge Computing with Cloudflare MCP
Cloudflare's edge network offers incredibly low-latency execution for serverless functions. By hooking an MCP server directly into Cloudflare Workers, your AI agents can perform real-time data lookups and execute distributed scripts globally without waiting for a traditional backend response. This dramatically improves the interactivity of your Claude Desktop experience.
When setting this up, ensure your Cloudflare API token restricts access specifically to the Workers and KV namespaces required for the task. You do not want your AI agent accidentally purging your entire CDN cache or altering DNS records unless explicitly intended. Always run a scoped test using the Wrangler CLI before fully deploying the configuration.
More APIs: Browse all 115+ MCP server configs.