
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A tutorial project demonstrating how to build and deploy an MCP server on Cloudflare Workers using the workers-mcp package.
Cloudflare Workers MCP server example is cataloged as an MCP server attributed to sivakumarl. A tutorial project demonstrating how to build and deploy an MCP server on Cloudflare Workers using the workers-mcp package. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Cloudflare Workers MCP server example are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, the guide uses Wrangler Secrets to add a shared-secret authentication mechanism to the MCP server.
Yes, the guide demonstrates extending the MCP server with external API integrations such as fetching weather data.
README.md · f75f790cf410 · 采集于 2026-11-13 13:51:00 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Model Context Protocol (MCP) is an open standard that enables AI agents and assistants to interact with services. By setting up an MCP server, you can allow AI assistants to access your APIs directly.
Cloudflare Workers, combined with the workers-mcp package, provide a powerful and scalable solution for building MCP servers.
Before starting, ensure you have:
npm install -g wrangler)First, initialize a new Cloudflare Worker project:
npx create-cloudflare@latest my-mcp-worker
cd my-mcp-worker
Then, authenticate your Cloudflare account:
wrangler login
Update your wrangler.toml file with the correct account details:
name = "my-mcp-worker"
main = "src/index.ts"
compatibility_date = "2025-03-03"
account_id = "your-account-id"
To enable MCP support, install the workers-mcp package:
npm install workers-mcp
Run the setup command to configure MCP:
npx workers-mcp setup
This will:
Update your src/index.ts to define your MCP server:
import { WorkerEntrypoint } from 'cloudflare:workers';
import { ProxyToSelf } from 'workers-mcp';
export default class MyWorker extends WorkerEntrypoint<Env> {
/**
* A friendly greeting from your MCP server.
* @param name {string} The name of the user.
* @return {string} A personalized greeting.
*/
sayHello(name: string) {
return `Hello from an MCP Worker, ${name}!`;
}
/**
* @ignore
*/
async fetch(request: Request): Promise<Response> {
return new ProxyToSelf(this).fetch(request);
}
}
You can extend your MCP server by integrating with external APIs. Here's an example of fetching weather data:
export default class WeatherWorker extends WorkerEntrypoint<Env> {
/**
* Fetch weather data for a given location.
* @param location {string} The city or ZIP code.
* @return {object} Weather details.
*/
async getWeather(location: string) {
const response = await fetch(`https://api.weather.example/v1/${location}`);
const data = await response.json();
return {
temperature: data.temp,
conditions: data.conditions,
forecast: data.forecast
};
}
async fetch(request: Request): Promise<Response> {
return new ProxyToSelf(this).fetch(request);
}
}
Once your Worker is set up, deploy it to Cloudflare:
npx wrangler deploy
After deployment, your Worker is live and AI assistants can discover and use your MCP tools.
To update your MCP server, redeploy with:
npm run deploy
To test your MCP setup locally:
npx workers-mcp proxy
This command starts a local proxy allowing MCP clients (like Claude Desktop) to connect.
To secure your MCP server, use Wrangler Secrets:
npx wrangler secret put MCP_SECRET
This adds a shared-secret authentication mechanism to prevent unauthorized access.
Congratulations! You have successfully built and deployed an MCP server using Cloudflare Workers. You can now extend it with more features and expose new tools for AI assistants.
For more details, check the Cloudflare MCP documentation.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Cloudflare Workers MCP server example from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/my-mcp-worker)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.