Back to MCP directory
publicPublicdnsLocal runtime

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

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client