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`).
@sivakumarl
Basic information
MCP Server with Cloudflare Workers
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"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
Fetch the live tool list by running this server in a temporary sandbox using the button above.
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.
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.
You need a Cloudflare account, Node.js, and the Wrangler CLI installed (`npm install -g wrangler`).
Run `npx workers-mcp proxy` to start a local proxy that MCP clients like Claude Desktop can connect to.
Use `npx wrangler secret put MCP_SECRET` to add a shared-secret authentication mechanism.
Run `npx wrangler deploy` to deploy your Worker; afterward, use `npm run deploy` to redeploy updates.
Refer to the [Cloudflare MCP documentation](https://developers.cloudflare.com/agents/guides/build-mcp-server/).

Web hosting for websites built with AI. Connect your HostingFor.AI account and your AI assistant can publish and maintain your site directly: upload files, manage DNS records for custom domains, run SQL against your MySQ

Manage ZAP-Hosting game servers, VPS, dedicated servers, TeamSpeak, Discord bots and domains from Claude, ChatGPT, Cursor or Gemini via OAuth.
The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
Deploy and manage SnapDeploy apps (Docker containers on AWS) from Claude Code, Cursor, Codex or Gemini CLI: builds, logs, env vars, add-ons, domains.
Connect Supabase to your AI assistants
Comments