Cloudflare

Official

Deploy, configure & interrogate your resources on the Cloudflare developer platform (e.g. Workers/KV/R2/D1)

About Cloudflare MCP Server

The Cloudflare MCP server provides a comprehensive interface for AI applications to interact with cloudflare features. It enables AI assistants to help with various tasks related to integration workflows.

Features

Tools
Resources

Category

Integration
Getting Started

To use the Cloudflare MCP server in your AI application, follow these steps:

  1. Install the MCP client SDK for your platform
  2. Connect to the Cloudflare MCP server
  3. Authenticate with your Cloudflare credentials
  4. Start using the tools, resources, and prompts provided by the server

Example Code


// Connect to the Cloudflare MCP server
const server = await mcp.connect("cloudflare");

// Authenticate
await server.authenticate();

// Use a tool
const result = await server.tools.listRepositories({
  // Parameters
});

// Access a resource
const resource = await server.resources.repositoryContent({
  // Parameters
});

// Use a prompt
const response = await server.prompts.summarizePR({
  // Parameters
});
                      
Installation

npm

npm install @mcp/server-cloudflare

pip

pip install mcp-server-cloudflare
Compatible With
Claude for Desktop
Perplexity
Cursor
MCP Agent Framework