3D MCP Cursor Visualization
Cloudflare MCP Logo - AI-Powered Development Tool for Cursor IDE

Cloudflare MCP

Model Context Protocol Integration

Overview

A Model Context Protocol server for managing Cloudflare resources through natural language. Enables AI assistants to interact with Cloudflare services including Workers, KV, R2, D1, and Analytics through conversational interfaces.

Cloudflare Features

  • KV Store management and operations
  • R2 Storage bucket and object management
  • D1 Database administration and querying
  • Workers deployment and management
  • Analytics data retrieval and analysis
  • Natural language interface for all operations
  • Comprehensive API coverage

Cloudflare Setup & Configuration

Requirements

  • Cloudflare account
  • Account ID
  • API token with appropriate permissions
  • Node.js
  • Claude Desktop or compatible MCP client

Installation Instructions

# Quick Installation
npx @cloudflare/mcp-server-cloudflare init

# Development Setup
pnpm install
pnpm build:watch

# Run Locally
node dist/index.js init

Configuration

# Claude Desktop Configuration
{
  "mcpServers": {
    "cloudflare": {
      "command": "npx",
      "args": ["@cloudflare/mcp-server-cloudflare", "run", "<account-id>"]
    }
  }
}

Cloudflare Available Tools

  • get_kvs
  • kv_get
  • kv_put
  • kv_list
  • kv_delete
  • r2_list_buckets
  • r2_create_bucket
  • r2_delete_bucket
  • r2_list_objects
  • r2_get_object
  • r2_put_object
  • r2_delete_object
  • d1_list_databases
  • d1_create_database
  • d1_delete_database
  • d1_query
  • worker_list
  • worker_get
  • worker_put
  • worker_delete
  • analytics_get

Cloudflare Required Inputs

account_id

Type
string
Description
Your Cloudflare account ID
Required
Yes

zone_id

Type
string
Description
Zone ID for analytics operations
Required
No

namespace_id

Type
string
Description
KV namespace identifier
Required
No

database_id

Type
string
Description
D1 database identifier
Required
No

Cloudflare Use Cases

  • Deploy and manage Workers with natural language
  • Manage KV store data and operations
  • Handle R2 storage buckets and objects
  • Execute D1 database queries and management
  • Retrieve and analyze domain analytics
  • Automate Cloudflare resource management
  • Cross-service data operations (KV to R2)
  • Infrastructure as code through conversation

Frequently Asked Questions

A Model Context Protocol server for managing Cloudflare resources through natural language. Enables AI assistants to interact with Cloudflare services including Workers, KV, R2, D1, and Analytics through conversational interfaces.
Cloudflare account, Account ID, API token with appropriate permissions, Node.js, Claude Desktop or compatible MCP clientView detailed requirements
Follow the installation instructions in the setup section above.View installation guide

Cloudflare MCP provides the following tools:

  • get_kvs
  • kv_get
  • kv_put
  • kv_list
  • kv_delete
  • r2_list_buckets
  • r2_create_bucket
  • r2_delete_bucket
  • r2_list_objects
  • r2_get_object
  • r2_put_object
  • r2_delete_object
  • d1_list_databases
  • d1_create_database
  • d1_delete_database
  • d1_query
  • worker_list
  • worker_get
  • worker_put
  • worker_delete
  • analytics_get