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
Protocol Latency Profile
stdio (Local Node/NPX)1.4ms IPC
SSE (HTTP EventStream)28ms Edge
Streamable HTTP (/mcp)19ms Stateless
Transport:
stdio · 38ms Cloudflare global edge API
Cloudflare Workers, KV, D1 & R2 MCP Server
@cloudflare/mcp-server-cloudflare
Compiling MCP client configuration…
{
"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"
}
}
}
}
Inspect Sandbox & Env Secret Policy
All synthesized MCP definitions isolate secret keys via interactive prompt inputs and wrap Win11 child processes safely.
"inputs": [{ "type": "promptString", "id": "api_key", "password": true }]
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. |
Agency & Team Registry Lifetime Buyout
$49 one-time payment
- Unlimited seats & shared .cursor/mcp.json lockfiles
- Windows 11 cmd /c wrapper & secret-leak CI validation
- Private internal MCP server blueprint hosting
Recurring & Sponsor Tiers
Team Registry Pro
$19/mo · 25 developer seats
Weekly Ecosystem Sponsor
$99/wk · Header & llms.txt slot