Skip to content
MCP-Bridge
Cloud Infrastructure

Cloudflare API Claude Desktop Config

Add the Cloudflare API MCP server to Claude Desktop with this ready-to-use configuration.

Setup Instructions

  1. Open Claude Desktop
  2. Go to Settings → Developer → Edit Config → claude_desktop_config.json
  3. Paste the JSON below into the file
  4. Set your API Key in the env section
  5. 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_TOKEN

Replace your_cloudflare_api_token with your actual cloudflare api token

Endpoints

GET/zones

List zones

GET/zones/{zone_id}/dns_records

List DNS records

POST/zones/{zone_id}/dns_records

Create DNS record