Cloud InfrastructureAPI KeyOfficial MCP
Cloudflare API MCP Server
Manage Cloudflare DNS, CDN, Workers, and security settings through your AI agent.
Quick Setup
Transport: STDIO
Command: npx -y @cloudflare/mcp-server
Environment Variables
CLOUDFLARE_API_TOKENExample: your_cloudflare_api_token
MCP Server Configuration
Add this to your claude_desktop_config.json or Cursor MCP settings.
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": ["-y","@cloudflare/mcp-server"],
"env": {
"CLOUDFLARE_API_TOKEN": "your_cloudflare_api_token"
}
}
}
}Endpoints
GET
/zonesList zones
GET
/zones/{zone_id}/dns_recordsList DNS records
POST
/zones/{zone_id}/dns_recordsCreate DNS record