Cloudflare Workers, KV, D1 & R2 MCP Server MCP Configuration

Deploy Cloudflare Workers, inspect KV namespaces, run D1 SQL queries, manage R2 object buckets, and analyze edge telemetry directly from MCP clients.

Select Blueprint

Transport: stdio · 38ms Cloudflare global edge API
Cloudflare Workers, KV, D1 & R2 MCP Server @cloudflare/mcp-server-cloudflare
Install.sh
{
  "mcpServers": {
    "cloudflare": {
      "command": "npx",
      "args": [
        "-y",
        "@cloudflare/mcp-server-cloudflare"
      ],
      "env": {
        "CLOUDFLARE_ACCOUNT_ID": "bf497e498dc6fa5ef210ad3ff3e19916",
        "CLOUDFLARE_API_TOKEN": "cf_api_token_workers_kv_d1_scoped"
      }
    }
  }
}
Ready 5-client compiler ready · cloudflare

Environment Variables for Cloudflare Workers, KV, D1 & R2 MCP Server

Variable Key Requirement Example Format Guidance
CLOUDFLARE_ACCOUNT_ID Required bf497e498dc6fa5ef210ad3ff3e19916 32-character hexadecimal Cloudflare Account identifier.
CLOUDFLARE_API_TOKEN Required cf_api_token_workers_kv_d1_scoped Scoped Cloudflare API Token with Workers Scripts, Workers KV Storage, and D1 Edit permissions.

Recurring & Sponsor Tiers

Team Registry Pro
$19/mo · 25 developer seats
Weekly Ecosystem Sponsor
$99/wk · Header & llms.txt slot