MCP Server with Cloudflare Workers
@sivakumarl
About MCP Server with Cloudflare Workers
MCP Server with Cloudflare Workers
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"my-mcp-worker": {
"command": "npx",
"args": [
"create-cloudflare@latest",
"my-mcp-worker"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP Server with Cloudflare Workers?
MCP Server with Cloudflare Workers enables AI agents and assistants to interact with services via the Model Context Protocol (MCP). It uses Cloudflare Workers and the workers-mcp package to build scalable MCP servers that expose APIs to AI assistants.
How to use MCP Server with Cloudflare Workers?
Create a new Worker project with npx create-cloudflare@latest, install the workers-mcp package, and run npx workers-mcp setup. Write MCP methods in src/index.ts using WorkerEntrypoint and ProxyToSelf. Deploy with npx wrangler deploy, test locally with npx workers-mcp proxy, and secure with npx wrangler secret put MCP_SECRET.
Key features of MCP Server with Cloudflare Workers
- Build MCP servers using Cloudflare Workers
- Uses workers-mcp package for MCP compliance
- ProxyToSelf ensures protocol adherence
- Deploy globally on Cloudflare’s edge network
- Integrate with external APIs easily
- Secure with shared-secret authentication
Use cases of MCP Server with Cloudflare Workers
- Expose a personalized greeting tool for AI assistants
- Fetch and return weather data from an external API
- Allow AI agents to query any existing REST API
- Create custom MCP tools for private services
FAQ from MCP Server with Cloudflare Workers
What are the prerequisites for using MCP Server with Cloudflare Workers?
You need a Cloudflare account, Node.js, and the Wrangler CLI installed (npm install -g wrangler).
How do I test my MCP server locally?
Run npx workers-mcp proxy to start a local proxy that MCP clients like Claude Desktop can connect to.
How can I secure my MCP server?
Use npx wrangler secret put MCP_SECRET to add a shared-secret authentication mechanism.
How do I deploy the MCP server?
Run npx wrangler deploy to deploy your Worker; afterward, use npm run deploy to redeploy updates.
Where can I find more details about building MCP servers with Cloudflare Workers?
Refer to the Cloudflare MCP documentation.
Frequently asked questions
What are the prerequisites for using MCP Server with Cloudflare Workers?
You need a Cloudflare account, Node.js, and the Wrangler CLI installed (`npm install -g wrangler`).
How do I test my MCP server locally?
Run `npx workers-mcp proxy` to start a local proxy that MCP clients like Claude Desktop can connect to.
How can I secure my MCP server?
Use `npx wrangler secret put MCP_SECRET` to add a shared-secret authentication mechanism.
How do I deploy the MCP server?
Run `npx wrangler deploy` to deploy your Worker; afterward, use `npm run deploy` to redeploy updates.
Where can I find more details about building MCP servers with Cloudflare Workers?
Refer to the [Cloudflare MCP documentation](https://developers.cloudflare.com/agents/guides/build-mcp-server/).
Basic information
More Cloud & Infrastructure MCP servers
Cloudflare MCP Server
cloudflare
Nippy
NippyNippy is drag-and-drop hosting (nippy.host) with an MCP server: connect it and your assistant can publish HTML, folders of photos, or file downloads to a live *.nippy.site URL — and keep editing the site in place at the
AWS Model Context Protocol (MCP) Server
alexei-ledA lightweight service that enables AI assistants to execute AWS CLI commands (in safe containerized environment) through the Model Context Protocol (MCP). Bridges Claude, Cursor, and other MCP-aware AI tools with AWS CLI for enhanced cloud infrastructure management.
Supabase MCP Server
supabase-communityConnect Supabase to your AI assistants
GCP MCP
eniayomiA Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with your Google Cloud Platform environment. This allows for natural language querying and management of your GCP resources during conversations.
Comments