Edge Computing Stack for Claude Code
Configuration
{
"mcpServers": {
"cloudflare-mcp": {
"command": "npx",
"args": [
"-y",
"@cloudflare/mcp-server-cloudflare"
],
"env": {
"CLOUDFLARE_API_TOKEN": "YOUR_CLOUDFLARE_API_TOKEN",
"CLOUDFLARE_ACCOUNT_ID": "YOUR_CLOUDFLARE_ACCOUNT_ID"
}
},
"vercel-mcp": {
"command": "npx",
"args": [
"-y",
"vercel-mcp"
],
"env": {
"VERCEL_API_TOKEN": "YOUR_VERCEL_API_TOKEN"
}
},
"upstash-mcp": {
"command": "npx",
"args": [
"-y",
"@upstash/mcp-server@latest"
],
"env": {
"UPSTASH_EMAIL": "YOUR_UPSTASH_EMAIL",
"UPSTASH_API_KEY": "YOUR_UPSTASH_API_KEY"
}
},
"turso-mcp": {
"command": "npx",
"args": [
"-y",
"mcp-turso"
],
"env": {
"TURSO_DATABASE_URL": "YOUR_TURSO_DATABASE_URL",
"TURSO_AUTH_TOKEN": "YOUR_TURSO_AUTH_TOKEN"
}
},
"redis-mcp": {
"command": "npx",
"args": [
"-y",
"redis-mcp"
],
"env": {
"REDIS_URL": "YOUR_REDIS_URL"
}
}
}
}CLI Commands
Alternatively, add each server via the Claude Code CLI:
claude mcp add cloudflare-mcp -e CLOUDFLARE_API_TOKEN=YOUR_CLOUDFLARE_API_TOKEN -e CLOUDFLARE_ACCOUNT_ID=YOUR_CLOUDFLARE_ACCOUNT_ID -- npx -y @cloudflare/mcp-server-cloudflare
claude mcp add vercel-mcp -e VERCEL_API_TOKEN=YOUR_VERCEL_API_TOKEN -- npx -y vercel-mcp
claude mcp add upstash-mcp -e UPSTASH_EMAIL=YOUR_UPSTASH_EMAIL -e UPSTASH_API_KEY=YOUR_UPSTASH_API_KEY -- npx -y @upstash/mcp-server@latest
claude mcp add turso-mcp -e TURSO_DATABASE_URL=YOUR_TURSO_DATABASE_URL -e TURSO_AUTH_TOKEN=YOUR_TURSO_AUTH_TOKEN -- npx -y mcp-turso
claude mcp add redis-mcp -e REDIS_URL=YOUR_REDIS_URL -- npx -y redis-mcpWhere to save
Paste the config above into:
~/.claude.jsonEnvironment Variables
Replace the YOUR_ placeholders with your actual values.
CLOUDFLARE_API_TOKENrequiredCloudflare API token
Used by: Cloudflare MCP
CLOUDFLARE_ACCOUNT_IDrequiredCloudflare account ID
Used by: Cloudflare MCP
VERCEL_API_TOKENrequiredVercel API token
Used by: Vercel MCP
UPSTASH_EMAILrequiredUpstash account email
Used by: Upstash MCP
UPSTASH_API_KEYrequiredUpstash management API key
Used by: Upstash MCP
TURSO_DATABASE_URLrequiredTurso database URL
Used by: Turso MCP
TURSO_AUTH_TOKENrequiredTurso authentication token
Used by: Turso MCP
REDIS_URLrequiredRedis connection URL
Used by: Redis MCP
What’s in this stack
Interact with Cloudflare services including Workers, KV, R2, D1, and DNS management from your AI editor.
Deploy Workers, manage KV storage, and configure edge rules across Cloudflare's global network for sub-50ms response times worldwide.
Connect to the Vercel API to manage deployments, projects, domains, and environment variables from your AI editor.
Ship edge functions and serverless APIs with automatic geographic routing, preview deployments, and built-in analytics.
Create and manage Upstash serverless Redis databases, list keys, run commands, and interact with your Upstash account using natural language.
Access serverless Redis and Kafka from edge functions with per-request pricing and global replication for consistent low latency.
Query and manage Turso-hosted LibSQL databases, run SQL statements, inspect schemas, and handle database operations from your AI editor.
Run embedded SQLite databases replicated to edge locations — giving you a relational database that follows your users.
Interact with Redis databases. Get, set, and manage keys, run commands, and monitor your Redis instances from your AI editor.
Cache frequently accessed data at the edge layer to minimize origin requests and deliver instant responses to end users.