C

Cloudflare Workers MCP

Deploy and inspect Cloudflare Workers

Cloudflare·No reviews yet
Repo Docs
Share:

About

List, tail logs from, and deploy Cloudflare Workers scripts. Read routes, KV namespaces, R2 buckets, and D1 database bindings tied to your account. Requires a Cloudflare API token scoped to the resources you want to expose.

Example tools

Illustrative tool names — the actual tool set is defined by the server at runtime.

list_resources
Enumerate resources exposed by this MCP
get_resource
Fetch a resource by ID
invoke
Invoke the primary action of this MCP

Screenshots

No screenshots yet.

Frequently Asked Questions

Common questions about Cloudflare Workers MCP.

What is the Cloudflare Workers MCP?
It allows you to manage Cloudflare Workers scripts and their associated resources directly from an MCP client. This includes listing, deploying, and tailing logs for your Workers. It also provides access to routes, KV namespaces, R2 buckets, and D1 database bindings.
How do I install the Cloudflare Workers MCP?
Installation typically involves adding the Cloudflare Workers MCP to your preferred MCP client. You would usually provide the repository URL (https://github.com/cloudflare/mcp-server-cloudflare) to your client, which then handles the setup. Specific steps vary by client.
Does the Cloudflare Workers MCP require credentials?
Yes, it requires a Cloudflare API token. This token must be scoped with appropriate permissions to access the Workers, routes, KV namespaces, R2 buckets, and D1 databases that you intend to manage through the MCP.
What Cloudflare resources can I manage with this MCP?
You can manage Cloudflare Workers scripts, including deployment and log tailing. Additionally, it provides access to configurations like routes and bindings for KV namespaces, R2 buckets, and D1 databases associated with your account.
What are the costs associated with using the Cloudflare Workers MCP?
The MCP itself is open-source and free to use. Costs are incurred based on your Cloudflare Workers usage and any associated Cloudflare services like KV, R2, or D1, according to your Cloudflare billing plan.
Can I manage all Cloudflare services with this MCP?
No, this MCP is specifically designed for Cloudflare Workers and their directly related resources such as KV, R2, and D1 bindings. It does not provide management capabilities for all services offered by Cloudflare.

Install Cloudflare Workers MCP

Claude Desktop

Add this to claude_desktop_config.json.

{
  "mcpServers": {
    "cloudflare-workers": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cloudflare-workers"
      ]
    }
  }
}

Cursor

Add this to ~/.cursor/mcp.json.

{
  "mcpServers": {
    "cloudflare-workers": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cloudflare-workers"
      ]
    }
  }
}

VS Code

Add this to your workspace settings.json.

{
  "mcp.servers": {
    "cloudflare-workers": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cloudflare-workers"
      ]
    }
  }
}

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Discussion(0)

Sign in to join the discussion.

No comments yet.