Cloudflare MCP server
Cloudflare's remote MCP servers: build and manage Workers, KV, R2, D1, and Hyperdrive from an agent.
Cloudflare ships a suite of official remote MCP servers, each scoped to a product area such as documentation, Workers builds, observability, Radar, AI Gateway, and DNS analytics — sixteen in total, all hosted on the *.mcp.cloudflare.com domain with Cloudflare OAuth built in. The most generally useful for building applications is the Workers Bindings server at https://bindings.mcp.cloudflare.com/mcp, documented here. It connects an agent to the Workers developer platform so it can list and read your Workers, manage KV namespaces, R2 buckets, D1 databases, and Hyperdrive configs, run SQL against D1, and search the Cloudflare documentation, all the storage and compute primitives you bind into a Worker.
The canonical deployment is the hosted remote endpoint with an interactive Cloudflare OAuth login, so there is nothing to install locally — point any MCP client that speaks Streamable HTTP at the URL and authorize. The server also accepts a Cloudflare API token for headless use. Because every server in the suite shares the same OAuth and transport, you can mix the bindings server with the observability or Radar servers in the same client and only grant the scopes each one needs.
Quick install
Copy-paste configs are provided for all 8 supported clients. Pick your client below.
Add to ~/.claude.json
{
"mcpServers": {
"cloudflare": {
"type": "http",
"url": "https://bindings.mcp.cloudflare.com/mcp"
}
}
}claude mcp add --transport http cloudflare https://bindings.mcp.cloudflare.com/mcpHeads up
- First tool call opens a browser to authorize.
Available tools
| Tool | Description |
|---|---|
| accounts_list | List all accounts in your Cloudflare account. |
| set_active_account | Set the active account used for tool calls that require an account ID. |
| kv_namespaces_list | List the Workers KV namespaces in your account. |
| kv_namespace_create | Create a new Workers KV namespace. |
| kv_namespace_delete | Delete a Workers KV namespace. |
| kv_namespace_get | Get the details of a Workers KV namespace. |
| kv_namespace_update | Update the title of a Workers KV namespace. |
| workers_list | List the Workers deployed in your account. |
| workers_get_worker | Get the details of a Cloudflare Worker. |
| workers_get_worker_code | Get the source code of a Cloudflare Worker (may be the bundled version). |
| r2_buckets_list | List R2 buckets in your Cloudflare account. |
| r2_bucket_create | Create a new R2 bucket. |
| r2_bucket_get | Get details about a specific R2 bucket. |
| r2_bucket_delete | Delete an R2 bucket. |
| d1_databases_list | List all of the D1 databases in your Cloudflare account. |
| d1_database_create | Create a new D1 database in your Cloudflare account. |
| d1_database_delete | Delete a D1 database in your Cloudflare account. |
| d1_database_get | Get a D1 database in your Cloudflare account. |
| d1_database_query | Run a SQL query against a D1 database. |
| hyperdrive_configs_list | List the Hyperdrive configurations in your account. |
| hyperdrive_config_create | Create a new Hyperdrive configuration. |
| hyperdrive_config_delete | Delete a Hyperdrive configuration. |
| hyperdrive_config_get | Get the details of a Hyperdrive configuration. |
| hyperdrive_config_edit | Edit the settings of a Hyperdrive configuration. |
| search_cloudflare_documentation | Search the Cloudflare documentation for up-to-date reference information. |
| migrate_pages_to_workers_guide | Returns the guide to read before migrating a Pages project to Workers. |
What you can do with it
Scaffold a Workers app end to end
Ask the agent to spin up a D1 database, a KV namespace, and an R2 bucket, then wire them into a Worker as bindings without leaving the chat.
Inspect production from the agent
Have the agent list your deployed Workers, pull a Worker's source, and run a read query against a D1 database to answer a question about live data.
FAQ
- Is it free?
- Yes. The MCP servers are free and open source; you only pay for whatever Cloudflare resources (Workers, D1, R2, KV) you actually use under your normal account plan.
- Does it support remote/OAuth?
- Yes. Every Cloudflare MCP server is a hosted remote endpoint on *.mcp.cloudflare.com with built-in Cloudflare OAuth; the Workers Bindings server lives at https://bindings.mcp.cloudflare.com/mcp. A Cloudflare API token can be used for headless access.