GM

gutmutcode/mcp-server-cloudflare

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

10 stars 5 forks 质量 57 趋势 18Apache-2.0

Cloudflare MCP server for IDE ( Cline, Windsurf, Cursor, etc )

概览

Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems. In this repository, we provide an installer as well as an MCP Server for Cloudflare's API. This lets you use Claude Desktop, and IDE like VSCode (Cline) and Windsurf or any MCP Client, to use natural language to accomplish things on your Cloudflare account, e.g.: * Please deploy me a new Worker with an example durable object. * Can you tell me about the data in my D1 database named '...'? * Can you copy all the entries from my KV namespace '...' into my R2 bucket '...'? 1. Run npx @gutmutcode/mcp-server-cloudflare init 2. Restart Claude Desktop, you should see a small 🔨 icon that shows the following tools available for use: 3. Check out the Cline configuration file, you should see a cloudflare section with your Cloudflare account ID. 4. Check out your Windsurf MCP configuration file, you should see a cloudflare section either.

README

以下为原文 README 节选,完整内容请查看原文。

Cloudflare MCP Server for IDE

Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems. In this repository, we provide an installer as well as an MCP Server for Cloudflare’s API.

This lets you use Claude Desktop, and IDE like VSCode (Cline) and Windsurf or any MCP Client, to use natural language to accomplish things on your Cloudflare account, e.g.:

  • Please deploy me a new Worker with an example durable object.
  • Can you tell me about the data in my D1 database named '...'?
  • Can you copy all the entries from my KV namespace '...' into my R2 bucket '...'?

Demo

Setup

  1. Run npx @gutmutcode/mcp-server-cloudflare init

  2. Restart Claude Desktop, you should see a small 🔨 icon that shows the following tools available for use:

  3. Check out the Cline configuration file, you should see a cloudflare section with your Cloudflare account ID.

  4. Check out your Windsurf MCP configuration file, you should see a cloudflare section either. Windsurf has limitation on the use of MCP tools, so you can’t use too many tools at the same time. (Unlike Cline and Claude)

Features

KV Store Management

  • get_kvs: List all KV namespaces in your account
  • kv_get: Get a value from a KV namespace
  • kv_put: Store a value in a KV namespace
  • kv_list: List keys in a KV namespace
  • kv_delete: Delete a key from a KV namespace

R2 Storage Management

  • r2_list_buckets: List all R2 buckets in your account
  • r2_create_bucket: Create a new R2 bucket
  • r2_delete_bucket: Delete an R2 bucket
  • r2_list_objects: List objects in an R2 bucket
  • r2_get_object: Get an object from an R2 bucket
  • r2_put_object: Put an object into an R2 bucket
  • r2_delete_object: Delete an object from an R2 bucket

D1 Database Management

  • d1_list_databases: List all D1 databases in your account
  • d1_create_database: Create a new D1 database
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →