Cloudflare API Claude Desktop Config
Add the Cloudflare API MCP server to Claude Desktop with this ready-to-use configuration.
Setup Instructions
- Open Claude Desktop
- Go to Settings → Developer → Edit Config →
claude_desktop_config.json - Paste the JSON below into the file
- Set your API Key in the
envsection - Restart Claude Desktop
Configuration JSON
Copy the entire block into your claude_desktop_config.json
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": [
"-y",
"@cloudflare/mcp-server"
],
"env": {
"CLOUDFLARE_API_TOKEN": "your_cloudflare_api_token"
}
}
}
}Environment Variables
CLOUDFLARE_API_TOKENReplace your_cloudflare_api_token with your actual cloudflare api token
Endpoints
GET
/zonesList zones
GET
/zones/{zone_id}/dns_recordsList DNS records
POST
/zones/{zone_id}/dns_recordsCreate DNS record