Lists all Cloudflare accounts the authenticated user has access to
Lists all Workers in a specified Cloudflare account
Retrieves analytics data for a specific Worker
Gets internet traffic data from Cloudflare Radar
Retrieves information about cyber attacks from Cloudflare Radar
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.
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.
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:
https://workers-mcp.cloudflare.com
https://radar-mcp.cloudflare.com
https://graphql-mcp.cloudflare.com
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.
If you want to run the server locally for development:
Clone the repository:
git clone https://github.com/cloudflare/mcp-server-cloudflare.git
cd mcp-server-cloudflare
Install dependencies:
pnpm install
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.
The repository includes MCP servers for several Cloudflare services:
Workers MCP Server: Interact with Cloudflare Workers, manage deployments, and access analytics.
Radar MCP Server: Access Cloudflare Radar data for internet insights and trends.
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.
Contributions to the Cloudflare MCP Server are welcome. Please refer to the CONTRIBUTING.md file in the repository for guidelines on how to contribute.