drio
Open app

Cloudflare

Source

Deploy, configure & interrogate your resources on the Cloudflare developer platform (e.g. Workers/KV/R2/D1)

Catalog onlyCatalog onlySTDIO

Overview

Cloudflare MCP Server is a tool designed to deploy, configure, and interact with resources on the Cloudflare developer platform, including Workers, KV storage, R2 storage, and D1 databases, through the Model Context Protocol (MCP).

To use the MCP Server, you need to run the installation command, initialize the server, and then you can issue commands in natural language to manage your Cloudflare resources.

  • Natural language processing commands for resource management - Management capabilities for Workers, KV stores, R2 storage, and D1 databases - Analytics retrieval for user accounts
  1. Deploying and managing Cloudflare Workers with ease.
  2. Efficiently handling key-value store operations in KV namespaces.
  3. Managing R2 buckets and objects programmatically.
  4. Executing SQL queries against D1 databases with simplified commands.

Add to your AI client

Use these steps to connect Cloudflare in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

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

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

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

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

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

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

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

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

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

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

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

FAQ

Is it necessary to use Claude Desktop to operate the MCP Server?

Claude Desktop is recommended for interaction, but you can also run it locally for testing.

What resources can I manage with this tool?

You can manage Cloudflare Workers, KV namespaces, R2 buckets, and D1 databases.

How do I get analytics data?

You can retrieve analytics data by issuing the `analytics_get` command with the appropriate parameters.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":48,"uuid":"40ace9e6-1456-4f74-838e-54e4503d2e05","name":"cloudflare","title":"Cloudflare","description":"Deploy, configure & interrogate your resources on the Cloudflare developer platform (e.g. Workers/KV/R2/D1)","avatar_url":"https://r2.trys.ai/imgs/21vsqrwmu-1733450401263.png","created_at":"$D2024-12-05T16:27:19.593Z","updated_at":"$D2024-12-13T07:39:24.621Z","status":"created","author_name":"","author_avatar_url":"","tags":"cloudflare,api-management,mcp","category":"cloud-platforms","is_featured":true,"sort":1,"url":"https://github.com/cloudflare/mcp-server-cloudflare","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]