Back to MCP Catalog

Cloudflare MCP Server

Cloud PlatformsTypeScript
A Model Context Protocol server for Cloudflare services
Available Tools

listAccounts

Lists all Cloudflare accounts the authenticated user has access to

listWorkers

Lists all Workers in a specified Cloudflare account

getWorkerAnalytics

Retrieves analytics data for a specific Worker

radarInternetTraffic

Gets internet traffic data from Cloudflare Radar

radarAttacks

Retrieves information about cyber attacks from Cloudflare Radar

graphqlQuery

Executes a GraphQL query against Cloudflare's GraphQL API

The Cloudflare MCP Server provides a standardized way to interact with various Cloudflare services through the Model Context Protocol. It enables AI assistants to access and manipulate Cloudflare resources, including Workers, Radar, and other Cloudflare products. This implementation serves as both a template for other Cloudflare services and a production-ready server that authenticates users through Cloudflare OAuth.

Overview

The Cloudflare MCP Server is a monorepo containing multiple Model Context Protocol (MCP) server implementations for various Cloudflare services. This allows AI assistants to interact with Cloudflare's platform and services through a standardized protocol.

Installation

To use the Cloudflare MCP Server with your AI assistant, add the following configuration to your assistant's settings:

{
  "mcpServers": {
    "cloudflare": {
      "url": "https://mcp.cloudflare.com"
    }
  }
}

For specific Cloudflare services, you can use their dedicated endpoints:

  • Workers: https://workers-mcp.cloudflare.com
  • Radar: https://radar-mcp.cloudflare.com
  • GraphQL: https://graphql-mcp.cloudflare.com

Authentication

The Cloudflare MCP Server uses Cloudflare OAuth for authentication. When you first connect to the server through your AI assistant, you'll be prompted to authenticate with your Cloudflare account credentials.

Local Development

If you want to run the server locally for development:

  1. Clone the repository:

    git clone https://github.com/cloudflare/mcp-server-cloudflare.git
    cd mcp-server-cloudflare
    
  2. Install dependencies:

    pnpm install
    
  3. Start the development server:

    pnpm dev
    

For local development, you can use dev mode authentication by setting the appropriate environment variables as described in the repository's CONTRIBUTING.md file.

Available Services

The repository includes MCP servers for several Cloudflare services:

  1. Workers MCP Server: Interact with Cloudflare Workers, manage deployments, and access analytics.

  2. Radar MCP Server: Access Cloudflare Radar data for internet insights and trends.

  3. GraphQL MCP Server: Query Cloudflare's GraphQL API for various services.

Each service provides specific tools and capabilities for interacting with different aspects of the Cloudflare platform.

Contributing

Contributions to the Cloudflare MCP Server are welcome. Please refer to the CONTRIBUTING.md file in the repository for guidelines on how to contribute.

Related MCPs

AWS CLI
Cloud PlatformsPython

Execute AWS CLI commands securely through AI assistants

Kubernetes
Cloud PlatformsGo

Connect to and manage Kubernetes clusters through natural language

Kubernetes Management
Cloud PlatformsTypeScript

Manage Kubernetes clusters directly from your AI assistant

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.