Deploy, configure and query resources on the Cloudflare developer platform such as Workers, KV, R2 and D1.
Setup
Choose your client, copy the config, then fill in any required environment variables.
Local
claude mcp add cloudflare -- node path/to/your/main.js~/.codex/config.toml
[mcp_servers.cloudflare]
command = "node"
args = ["path/to/your/main.js"]
# codex mcp add cloudflare -- node path/to/your/main.js~/.cursor/mcp.json
{
"mcpServers": {
"cloudflare": {
"command": "node",
"args": [
"path/to/your/main.js"
]
}
}
}.vscode/mcp.json
{
"servers": {
"cloudflare": {
"type": "stdio",
"command": "node",
"args": [
"path/to/your/main.js"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"cloudflare": {
"command": "node",
"args": [
"path/to/your/main.js"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"cloudflare": {
"command": "node",
"args": [
"path/to/your/main.js"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"cloudflare": {
"command": "node",
"args": [
"path/to/your/main.js"
]
}
}
}Remote
claude mcp add --transport http cloudflare https://docs.mcp.cloudflare.com/mcp~/.codex/config.toml
[mcp_servers.cloudflare]
url = "https://docs.mcp.cloudflare.com/mcp"
# codex mcp add cloudflare --url https://docs.mcp.cloudflare.com/mcp~/.cursor/mcp.json
{
"mcpServers": {
"cloudflare": {
"url": "https://docs.mcp.cloudflare.com/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"cloudflare": {
"type": "http",
"url": "https://docs.mcp.cloudflare.com/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"cloudflare": {
"httpUrl": "https://docs.mcp.cloudflare.com/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://docs.mcp.cloudflare.com/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"cloudflare": {
"url": "https://docs.mcp.cloudflare.com/mcp"
}
}
}