CM

cloudflare/mcp-server-cloudflare

分析与监控官方

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

4426 stars 563 forks 质量 63 趋势 52Apache-2.0

模型上下文协议(MCP)是一种新的标准化协议,用于管理大型语言模型(LLM)与外部系统之间的上下文。

概览

模型上下文协议(MCP)是一种新的标准化协议,用于管理大型语言模型(LLM)与外部系统之间的上下文。在这个仓库中,你可以找到多个MCP服务器,允许你通过MCP客户端(如Cursor、Claude)连接Cloudflare的服务,并通过你的Cloudflare账户使用自然语言完成任务。 这些MCP服务器允许你的MCP客户端读取账户中的配置、处理信息、基于数据提出建议,甚至为你做出建议的更改。所有这些操作都可以在Cloudflare的众多服务中实现,包括应用开发、安全和性能。 它们支持通过 /mcp 的可流式 http 传输和通过 /sse 的 sse 传输(已弃用)。 该仓库包含以下服务器: Cloudflare 提供两类 MCP 服务器: - (MCP.云火。

概述(AI 翻译)

模型上下文协议(MCP)是一种新的标准化协议,用于管理大型语言模型(LLM)与外部系统之间的上下文。在这个仓库中,你可以找到多个MCP服务器,允许你通过MCP客户端(如Cursor、Claude)连接Cloudflare的服务,并通过你的Cloudflare账户使用自然语言完成任务。

这些MCP服务器允许你的MCP客户端读取账户中的配置、处理信息、基于数据提出建议,甚至为你做出建议的更改。所有这些操作都可以在Cloudflare的众多服务中实现,包括应用开发、安全和性能。

该仓库中的每台服务器都通过全新的SDK v2服务器工厂,在/mcp和/sse处暴露相同的无状态可流式HTTP处理程序。/sse仍作为URL兼容性别名存在;它不使用已弃用的HTTP+SSE传输方式。遗留SSE GET /sse请求会收到410 Gone 问题详情响应,并有两个迁移选项:配置现有URL使用可流式HTTP,或切换到推荐的/mcp URL,以便未来兼容。

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

README

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

Cloudflare MCP Server

Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems. In this repository, you can find several MCP servers allowing you to connect to Cloudflare’s service from an MCP client (e.g. Cursor, Claude) and use natural language to accomplish tasks through your Cloudflare account.

These MCP servers allow your MCP Client to read configurations from your account, process information, make suggestions based on data, and even make those suggested changes for you. All of these actions can happen across Cloudflare’s many services including application development, security and performance.

Every server in this repository exposes a stateless Streamable HTTP handler at /mcp through a fresh SDK v2 server factory. The retired /sse URL answers every request with a 410 Gone Problem Details response that names the /mcp URL; MCP clients show its message in their connection error. Modern 2026 requests and stateless 2025 requests share the same request-scoped implementation without an MCP protocol session. OAuth, credentials, account selection, application caches, and product Durable Objects remain application/security state where required.

Cloudflare offers the following MCP servers. The domain-specific servers are included in this repository, while the recommended Cloudflare API MCP Server is maintained in cloudflare/mcp:

Server Name Description Server URL
Cloudflare API MCP Server (recommended) Best when you want broad access across Cloudflare’s APIs through code execution https://mcp.cloudflare.com/mcp
Documentation server Get up-to-date reference information on Cloudflare https://docs.mcp.cloudflare.com/mcp
Container server Spin up a sandbox development environment https://containers.mcp.cloudflare.com/mcp
Browser Run server Fetch web pages, convert them to markdown and take screenshots https://browser.mcp.cloudflare.com/mcp
在 GitHub 查看完整 README

安装

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

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