Cloudflare MCP Server

Deploy Workers, query D1, inspect KV and R2.

Official — published by the vendor of the system it connects to.

Manage Workers, run D1 queries, browse KV namespaces and R2 buckets, and read analytics — the whole edge stack over one endpoint.

Install Cloudflare MCP Server

Paste this into your MCP client config — Claude Desktop, Claude Code, Cursor, VS Code and Windsurf all read the same shape — then restart the client.

npx -y @cloudflare/mcp-server-cloudflare init

Config for each MCP client

The same server, in the shape each client expects. Copy the block for yours, restart it, and Cloudflare MCP Server appears in your next session.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "cloudflare": {
      "command": "npx",
      "args": [
        "-y",
        "@cloudflare/mcp-server-cloudflare",
        "init"
      ]
    }
  }
}

Full Claude Desktop setup guide

Claude Code

terminal
claude mcp add cloudflare -- npx -y @cloudflare/mcp-server-cloudflare init

Full Claude Code setup guide

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "cloudflare": {
      "command": "npx",
      "args": [
        "-y",
        "@cloudflare/mcp-server-cloudflare",
        "init"
      ]
    }
  }
}

Full Cursor setup guide

VS Code

.vscode/mcp.json
{
  "servers": {
    "cloudflare": {
      "command": "npx",
      "args": [
        "-y",
        "@cloudflare/mcp-server-cloudflare",
        "init"
      ]
    }
  }
}

Full VS Code setup guide

Windsurf

mcp_config.json
{
  "mcpServers": {
    "cloudflare": {
      "command": "npx",
      "args": [
        "-y",
        "@cloudflare/mcp-server-cloudflare",
        "init"
      ]
    }
  }
}

Full Windsurf setup guide

Details

Repository
https://github.com/cloudflare/mcp-server-cloudflare
Homepage
https://github.com/cloudflare/mcp-server-cloudflare
Category
Cloud Service
Stars
3400
Installs per month
31000
Last checked

Frequently asked questions

How do I install Cloudflare MCP Server?

Add it to your MCP client's config with the command `npx -y @cloudflare/mcp-server-cloudflare init`, or paste the ready-made JSON block above into Claude Desktop, Cursor, VS Code or Windsurf. Claude Code users can run `claude mcp add cloudflare` instead. Restart the client and the tools appear in the next session.

Does Cloudflare MCP Server need an API key?

No credential is recorded for this listing, which usually means it runs against something local or public rather than an authenticated API. Check the repository's README before assuming, and if you find otherwise, tell us and we will correct the listing.

Which clients work with Cloudflare MCP Server?

Any MCP client. Claude Desktop, Claude Code, Cursor, VS Code with Copilot, Windsurf, Zed, Cline and Continue all speak the Model Context Protocol, so a server written once works in all of them — only the location of the config file differs.

Is Cloudflare MCP Server free?

The server itself is free and open source, and you run it yourself. It is published by the vendor of the system it connects to, so that service's own pricing applies to whatever it reaches.

Other Cloud Service servers

All Cloud Service MCP servers · The full MCP server list · Install guides