SuperAPIAI Directory

mcp-server-cloudflare

github.com · AI developer platforms

Manage Cloudflare Workers, KV, R2, Pages, DNS and cache.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

mcp-server-cloudflare is an MCP server designed to enable AI assistants (such as Claude Desktop, Cursor, VS Code Copilot) to directly manage Cloudflare's Workers, KV, R2, DNS, and cache purging. It fills the gap for Cloudflare in the MCP ecosystem, allowing developers to operate Cloudflare resources through natural language instructions.

Main Capabilities

This MCP server supports the following operations:

  • List Cloudflare zones and DNS records
  • Create and delete DNS records
  • Manage Workers scripts
  • Perform KV operations (such as listing keys in a namespace)
  • List R2 buckets
  • Purge the cache for a specified zone

Usage

  1. Create an API Token in the Cloudflare dashboard > API Tokens, and grant permissions as needed:
    • Zone:Read — for listing zones and DNS
    • Zone:Edit — for creating/deleting DNS records
    • Workers Scripts:Edit — for managing Workers
    • Workers KV Storage:Edit — for KV operations
    • Zone:Cache Purge — for cache purging
  2. Set the environment variables CLOUDFLARE_API_TOKEN (required for all API calls) and CLOUDFLARE_ACCOUNT_ID (required for Workers, KV, and R2 operations).
  3. Configure the server in the MCP client. For Claude Desktop, add it to claude_desktop_config.json; for Cursor, add it to .cursor/mcp.json.
  4. Install and run via the npm package: use npx -y mcp-server-cloudflare-dns (note: the GitHub repository is named mcp-server-cloudflare, but the npm published name is mcp-server-cloudflare-dns, avoid using the unrelated mcp-server-cloudflare stub).
  5. For Cursor, you can also clone the repository and copy or symlink it to ~/.cursor/plugins/local/mcp-server-cloudflare, then reload the window. Skills and MCP will appear under Customize > Plugins.

Applicable Scenarios

  • Developers want to quickly query and manage Cloudflare resources through an AI assistant
  • Directly perform DNS record management, Workers deployment, KV operations, etc. in the IDE
  • Need natural language interaction to simplify Cloudflare operation workflows

Limitations

  • Agent Plugins v1 does not support OAuth, so environment variables must be set manually.
  • No one-click installation is provided, because credentials need to remain in environment variables.
  • A valid Cloudflare API Token and Account ID are required.
  • The feature scope is limited to the operations listed above; other Cloudflare services are not currently provided.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools