Building a Remote MCP Server on Cloudflare (Without Auth)
@1362chenbai
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This example deploys a remote MCP server on Cloudflare Workers without requiring authentication. It is intended for developers who need to expose MCP tools over the internet using Cloudflare's infrastructure.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy by clicking the "Deploy to Workers" button or running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless from the command line. Customize tools by adding them inside the init() method of src/index.ts. Connect clients such as the Cloudflare AI Playground or Claude Desktop (via the mcp-remote proxy).
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploys a remote MCP server with no authentication.
- Runs on Cloudflare Workers globally.
- Add custom tools using
this.server.tool(...). - Connects directly to Cloudflare AI Playground.
- Works with Claude Desktop via mcp-remote proxy.
- Uses SSE (Server-Sent Events) transport.
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploying MCP tools accessible from any remote client.
- Quickly prototyping MCP servers with Cloudflare's free tier.
- Testing MCP tools from the Cloudflare AI Playground.
- Integrating MCP tools with local MCP clients like Claude Desktop.
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
What transport protocol does the server use?
The server uses SSE, as indicated by the /sse URL path.
Does the server require authentication?
No, this server is designed without authentication.
How do I deploy the server?
Deploy by clicking the "Deploy to Workers" button or running `npm create