返回 MCP 目录
public公开dns本地运行

Cloudflare Workers SDK

Cloudflare Workers SDK 是一套用于构建和部署无服务器代码的工具集,核心组件包括命令行工具 `wrangler`、开发模拟器 `miniflare` 及应用生成器 `create-cloudflare`。它支持全球即时部署,提供高性能、可扩展的无服务器计算能力,并通过文档、社区和工具链简化开发流程,适用于构建高性能 Web 应用和自动化任务。

article

README

Cloudflare Workers SDK

workers-logo
Cloudflare Workers let you deploy serverless code instantly across the globe for exceptional performance, reliability, and scale.

Contribute · Submit an Issue · Join Discord

Wrangler on npm   Discord conversation   X conversation


Quick Start

To get started quickly with a new project, run the command below:

npm create cloudflare@latest
# or
pnpm create cloudflare@latest
# or
yarn create cloudflare@latest

For more info, visit our Getting Started guide.

Documentation

Visit the official Workers documentation here.

Directory

| Package | Description | Links | | ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- | | wrangler | A command line tool for building Cloudflare Workers. | Docs | | create-cloudflare (C3) | A CLI for creating and deploying new applications to Cloudflare. | Docs | | miniflare | A simulator for developing and testing Cloudflare Workers, powered by workerd | Docs | | chrome-devtools-patches | Cloudflare's fork of Chrome DevTools for inspecting your local or remote Workers | | | pages-shared | Used internally to power Wrangler and Cloudflare Pages. It contains all the code that is shared between these clients. | |

Contributing

We welcome new contributors! Refer to the CONTRIBUTING.md guide for details.

Community

Join us in the official Cloudflare Discord to meet other developers, ask questions, or learn more in general.

Links

help

运行方式说明

cloud

托管运行

托管运行通常表示这个 MCP Server 由服务方环境承载,用户一般按页面提供的连接方式或授权流程接入,不需要在本地长期启动一个 MCP 进程

  1. 打开服务方连接页
  2. 完成授权或复制端点
  3. 在 MCP 客户端中连接
terminal

本地运行 / 其它方式

本地运行通常需要用户在自己的电脑或服务器上安装依赖,把 server_config 复制到 MCP 客户端,并按 env_schema 补齐环境变量、密钥或其它配置

  1. 复制 server_config
  2. 安装所需依赖
  3. 补齐环境变量后重启客户端