icon for mcp server

Cloudflare Workers Bindings

HTTP-SSE

MCP server supporting remote connections with Cloudflare OAuth for Workers Platform resource management.

Cloudflare Workers Bindings MCP Server

This is a Model Context Protocol (MCP) server that supports remote MCP connections, with Cloudflare OAuth built-in.

It integrates tools for managing resources in the Cloudflare Workers Platform, which you can connect to your Worker via Bindings.

🔨 Available Tools

Currently available tools:

CategoryToolDescription
Accountaccounts_listList all accounts in your Cloudflare account
set_active_accountSet active account to be used for tool calls that require accountId
KV Namespaceskv_namespaces_listList all of the kv namespaces in your Cloudflare account
kv_namespace_createCreate a new kv namespace in your Cloudflare account
kv_namespace_deleteDelete a kv namespace in your Cloudflare account
kv_namespace_getGet details of a kv namespace in your Cloudflare account
kv_namespace_updateUpdate the title of a kv namespace in your Cloudflare account
Workersworkers_listList all Workers in your Cloudflare account
workers_get_workerGet the details of a Cloudflare Worker
workers_get_worker_codeGet the source code of a Cloudflare Worker
R2 Bucketsr2_buckets_listList r2 buckets in your Cloudflare account
r2_bucket_createCreate a new r2 bucket in your Cloudflare account
r2_bucket_getGet details about a specific R2 bucket
r2_bucket_deleteDelete an R2 bucket
D1 Databasesd1_databases_listList all of the D1 databases in your Cloudflare account
d1_database_createCreate a new D1 database in your Cloudflare account
d1_database_deleteDelete a d1 database in your Cloudflare account
d1_database_getGet a D1 database in your Cloudflare account
d1_database_queryQuery a D1 database in your Cloudflare account
Hyperdrivehyperdrive_configs_listList Hyperdrive configurations in your Cloudflare account
hyperdrive_config_createCreate a new Hyperdrive configuration in your Cloudflare account
hyperdrive_config_deleteDelete a Hyperdrive configuration in your Cloudflare account
hyperdrive_config_getGet details of a specific Hyperdrive configuration in your Cloudflare account
hyperdrive_config_editEdit (patch) a Hyperdrive configuration in your Cloudflare account

This MCP server is still a work in progress, and we plan to add more tools in the future.

Prompt Examples

  • List my Cloudflare accounts.
  • Set my active account to 'YOUR_ACCOUNT_ID'. (Replace YOUR_ACCOUNT_ID with an actual ID)
  • Show me my KV namespaces.
  • Create a new KV namespace called 'my-kv-store'.
  • Get the details for KV namespace 'YOUR_NAMESPACE_ID'. (Replace YOUR_NAMESPACE_ID)
  • Delete the KV namespace 'NAMESPACE_TO_DELETE_ID'. (Replace NAMESPACE_TO_DELETE_ID)
  • List my Cloudflare Workers.
  • Get the code for the 'my-worker-script' worker.
  • Show me my R2 buckets.
  • Create an R2 bucket named 'my-new-bucket'.
  • Get details for the R2 bucket 'my-data-bucket'.
  • Delete the R2 bucket 'old-bucket'.
  • List my D1 databases.
  • Create a D1 database named 'analytics-db'.
  • Get details for D1 database 'YOUR_D1_DB_ID'. (Replace YOUR_D1_DB_ID)
  • Run the query 'SELECT * FROM customers LIMIT 10;' on D1 database 'YOUR_D1_DB_ID'. (Replace YOUR_D1_DB_ID)
  • Delete the D1 database 'TEMP_DB_ID'. (Replace TEMP_DB_ID)
  • List my Hyperdrive configurations.
  • Create a Hyperdrive config named 'prod-db-cache' for my database. (You might need to provide more origin details)
  • Get details for Hyperdrive config 'YOUR_HYPERDRIVE_ID'. (Replace YOUR_HYPERDRIVE_ID)
  • Update the cache settings for Hyperdrive config 'YOUR_HYPERDRIVE_ID'. (Replace YOUR_HYPERDRIVE_ID)
  • Delete the Hyperdrive config 'OLD_HYPERDRIVE_ID'. (Replace OLD_HYPERDRIVE_ID)

Access the remote MCP server from any MCP Client

If your MCP client has first class support for remote MCP servers, the client will provide a way to accept the server URL (https://bindings.mcp.cloudflare.com) directly within its interface (for example in Cloudflare AI Playground).

If your client does not yet support remote MCP servers, you will need to set up its respective configuration file using mcp-remote to specify which servers your client can access.

Replace the content with the following configuration:

{ "mcpServers": { "cloudflare": { "command": "npx", "args": ["mcp-remote", "https://bindings.mcp.cloudflare.com/sse"] } } }

Once you've set up your configuration file, restart MCP client and a browser window will open showing your OAuth login page. Proceed through the authentication flow to grant the client access to your MCP server. After you grant access, the tools will become available for you to use.

Interested in contributing, and running this server locally? See CONTRIBUTING.md to get started.

Related MCP Server Picks for You

Be the First to Experience MCP Now