MCP ConfigsApr 8, 2026·3 min read

Wrangler MCP — Cloudflare Workers for AI Agents

MCP server for managing Cloudflare Workers, KV, R2, and D1 from AI agents. Deploy serverless functions, manage storage, and query databases through Claude Code tool calls.

MC
MCP Hub · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

{
  "mcpServers": {
    "cloudflare": {
      "command": "npx",
      "args": ["-y", "@cloudflare/mcp-server-cloudflare"],
      "env": {
        "CLOUDFLARE_API_TOKEN": "your-token"
      }
    }
  }
}

Now ask your AI agent:

"Deploy this Worker script to Cloudflare"
"List all KV namespaces"
"Query the users table in D1"
"Upload this file to R2 bucket"

What is Wrangler MCP?

Wrangler MCP is Cloudflare's official MCP server that gives AI agents access to the Cloudflare developer platform. Manage Workers (serverless functions), KV (key-value store), R2 (object storage), D1 (SQLite database), and more — all through structured MCP tool calls. Deploy, query, and manage cloud infrastructure without leaving your AI coding session.

Answer-Ready: Cloudflare's official MCP server for AI agents. Manage Workers, KV, R2, D1, and Queues through tool calls. Deploy serverless functions, query databases, manage storage from Claude Code or Cursor. Official Cloudflare product.

Best for: Developers deploying to Cloudflare with AI coding agents. Works with: Claude Code, Cursor, Claude Desktop. Setup time: Under 3 minutes.

Core Tools

Workers (Serverless)

Tool What It Does
worker_list List all Workers
worker_deploy Deploy a Worker script
worker_delete Remove a Worker
worker_get Get Worker details and code
worker_logs View Worker logs

KV (Key-Value Store)

Tool What It Does
kv_list_namespaces List KV namespaces
kv_get Read a key
kv_put Write a key-value pair
kv_delete Delete a key
kv_list_keys List keys in namespace

D1 (SQLite Database)

Tool What It Does
d1_list List databases
d1_query Execute SQL query
d1_create Create new database

R2 (Object Storage)

Tool What It Does
r2_list_buckets List buckets
r2_get_object Download object
r2_put_object Upload object
r2_delete_object Delete object

Use Cases

Use Case Example
Deploy API "Create a Worker that returns JSON from D1"
Data Management "Query all users created today from D1"
File Storage "Upload build artifacts to R2"
Config Management "Store API config in KV namespace"
Edge Functions "Deploy a rate limiter Worker"

FAQ

Q: Is this the official Cloudflare MCP? A: Yes, published by Cloudflare under @cloudflare/mcp-server-cloudflare.

Q: Can it deploy full applications? A: It deploys individual Workers. For full Wrangler workflows (wrangler.toml, multi-script), use the Wrangler CLI directly.

Q: Is it free? A: Cloudflare Workers has a free tier (100K requests/day). The MCP server itself is free.

🙏

Source & Thanks

Created by Cloudflare. Official MCP server.

cloudflare/mcp-server-cloudflare

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets