
@cloudflare/mcp-server-cloudflare
by geelen
Cloudflare MCP Server
Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems. In this repository, we provide an installer as well as an MCP Server for Cloudflare's API.
This lets you use Claude Desktop, or any MCP Client, to use natural language to accomplish things on your Cloudflare account, e.g.:
Please deploy me a new Worker with an example durable object.Can you tell me about the data in my D1 database named '...'?Can you copy all the entries from my KV namespace '...' into my R2 bucket '...'?
Demo
<div align="center"> <a href="https://www.youtube.com/watch?v=vGajZpl_9yA"> <img src="https://img.youtube.com/vi/vGajZpl_9yA/maxresdefault.jpg" alt="Demonstrating the newly-released MCP server to explore Cloudflare properties, like Workers, KV, and D1." width="600"/> </a> </div>Setup
-
Make sure you are logged in to Cloudflare via Wrangler:
npx wrangler loginThis authentication is required for the MCP server to access your Cloudflare resources when testing locally.
-
Run
npx @cloudflare/mcp-server-cloudflare init
- Restart Claude Desktop, you should see a small π¨ icon that shows the following tools available for use:
Paid Features
Some features in this MCP server require a paid Cloudflare Workers plan:
- Observability and Analytics: The
analytics_gettool and related analytics features require a paid Workers plan to access these metrics - Other premium Cloudflare features like advanced D1 database capabilities and higher usage limits also require appropriate paid plans
Ensure your Cloudflare account has the necessary subscription level for the features you intend to use.
Features
KV Store Management
get_kvs: List all KV namespaces in your accountkv_get: Get a value from a KV namespacekv_put: Store a value in a KV namespacekv_list: List keys in a KV namespacekv_delete: Delete a key from a KV namespace
R2 Storage Management
r2_list_buckets: List all R2 buckets in your accountr2_create_bucket: Create a new R2 bucketr2_delete_bucket: Delete an R2 bucketr2_list_objects: List objects in an R2 bucketr2_get_object: Get an object from an R2 bucketr2_put_object: Put an object into an R2 bucketr2_delete_object: Delete an object from an R2 bucket
D1 Database Management
d1_list_databases: List all D1 databases in your accountd1_create_database: Create a new D1 databased1_delete_database: Delete a D1 databased1_query: Execute a SQL query against a D1 database
Workers Management
worker_list: List all Workers in your accountworker_get: Get a Worker's script contentworker_put: Create or update a Worker scriptworker_delete: Delete a Worker script
Durable Objects
durable_objects_list: List all Durable Objects namespacesdurable_objects_create: Create a new Durable Objects namespacedurable_objects_delete: Delete a Durable Objects namespacedurable_objects_list_instances: List all instances for a specific Durable Objects namespacedurable_objects_get_instance: Get details about a specific Durable Objects instancedurable_objects_delete_instance: Delete a specific Durable Objects instance
Queues
queues_list: List all Queues in your accountqueues_create: Create a new Queuequeues_delete: Dele
Related servers

n8n
by n8n-io
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

@modelcontextprotocol/server-everything
OfficialMCP server that exercises all the features of the MCP protocol

@modelcontextprotocol/server-filesystem
OfficialMCP server for filesystem access