CodexSpot
C

Cloudflare MCP Server

Integrates AI assistants with Cloudflare through MCP, enabling management of DNS zones, Workers scripts, and KV storage from within your AI workflow.

stdioLocalApiKeynpm

What This Server Exposes

Tools

list_zoneslist_workerskv_get

Setup Instructions

  1. 1Log in to the Cloudflare dashboard and navigate to My Profile > API Tokens
  2. 2Create an API token with the minimum required permissions (e.g. Zone:Read, Workers:Edit)
  3. 3Add the Cloudflare server config to your Claude Desktop configuration
  4. 4Set the CLOUDFLARE_API_TOKEN environment variable
  5. 5Restart Claude Desktop

Configuration

Claude Desktop Configuration

claude_desktop_config.json
{
  "mcpServers": {
    "cloudflare": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cloudflare"
      ],
      "env": {
        "CLOUDFLARE_API_TOKEN": "your-cloudflare-api-token"
      }
    }
  }
}

Environment Variables

CLOUDFLARE_API_TOKEN
Cloudflare API token with permissions for the resources you want to manage
Required🔒 Secret

Server Manifest

No official server.json manifest found. Generate one with our MCP server.json Generator →

Compatibility

Claude DesktopClaude Code

Safety Notes

Your Cloudflare API token can modify DNS records, deploy Workers, and manage KV data. Scope the token to only the permissions and zones required. Rotate tokens periodically and never commit them to version control.

This listing is for informational purposes only. CodexSpot is not affiliated with Cloudflare MCP Server.