Cloudfare

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

Overview

What is Cloudfare

mcp-server-cloudflare is a server that implements the Model Context Protocol (MCP), a standardized protocol designed for managing context between large language models (LLMs) and external systems, specifically tailored for integration with Cloudflare's API.

How to Use

To use mcp-server-cloudflare, run the command `npx @cloudflare/mcp-server-cloudflare init` to set it up. Ensure you are authenticated with Cloudflare, and then restart your MCP client (e.g., Claude Desktop) to access the available tools.

Key Features

Key features include the ability to deploy Cloudflare Workers, manage KV namespaces, and interact with D1 databases using natural language commands. Some advanced features may require a paid Cloudflare Workers plan.

Where to Use

mcp-server-cloudflare is primarily used in cloud computing environments, particularly for developers and teams working with Cloudflare's services to automate and manage their cloud infrastructure.

Use Cases

Use cases include deploying new Cloudflare Workers, querying data from D1 databases, and managing KV storage, all through natural language interactions, enhancing productivity and ease of use.

Usage

Installation

Generate your exclusive SSE URL:

MCP Server Configuration (for all clients):

Installation in Cursor

Click on the Cursor settings icon in the top right, find the MCP option, then click the + button in the top right of that page and add the configuration in the config panel.

Note: Do not delete previously added configuration items

After completion, restart Cursor, chat with Cursor, and you can use MCP functions

Installation in Claude

Find this json file at the following path: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json If this file doesn't exist, create one and paste the content above into the file.

Note: Do not delete previously added configuration items.

After completion, restart Claude, and you can use MCP functions through the Claude dialog

SDK

Installation in Python

Install composio-toolset by running the following commands in your terminal:

pip install composio_openai

Python example code:

from composio_openai import ComposioToolSet, App
from openai import OpenAI

openai_client = OpenAI()
composio_toolset = ComposioToolSet(entity_id="default")

tools = composio_toolset.get_tools(apps=[App.GITHUB])

Installation in TypeScript

Install composio-core by running the following commands in your terminal:

npm install -g composio_core

TypeScript example code:

import { OpenAI } from "openai";
import { OpenAIToolSet } from "composio-core";

const openaiClient = new OpenAI();
const composioToolset = new OpenAIToolSet();

const tools = await composioToolset.getTools({
  apps: ["github"],
});

Content