Building a Remote MCP Server on Cloudflare (Without Auth)
@Mani-sarvam
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This example enables you to deploy a remote MCP server that requires no authentication on Cloudflare Workers, using Server-Sent Events (SSE) as the transport. It is intended for developers who want a quick, publicly accessible MCP endpoint for prototyping or tool integration.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy using the "Deploy to Workers" button or the CLI command npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools by editing the init() method in src/index.ts with this.server.tool(...). Connect remote clients such as Cloudflare AI Playground or Claude Desktop (via the mcp-remote proxy) by providing the SSE URL, e.g. remote-mcp-server-authless.<your-account>.workers.dev/sse.
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy a remote MCP server without authentication.
- Runs on Cloudflare Workers with an SSE endpoint.
- Customizable tools defined in
src/index.ts. - One-click deploy via the Workers button or CLI.
- Connects to Cloudflare AI Playground as a remote client.
- Connects to Claude Desktop via the
mcp-remoteproxy.
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Quickly prototyping an MCP server for development or demos.
- Exposing MCP tools to remote clients without managing auth flows.
- Integrating MCP tools with Cloudflare AI Playground.
- Connecting local desktop MCP clients (e.g., Claude Desktop) to a cloud-hosted server.
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
What does this server do compared to alternatives?
It provides a ready-to-deploy MCP server on Cloudflare Workers that deliberately omits authentication, simplifying setup for development and testing.
What are the runtime/dependency requirements?
The server is deployed on Cloudflare Workers. Local customization requires Node.js and npm. Connecting from Claude Desktop requires the mcp-remote proxy (npx mcp-remote).
Where does MCP data live?
All MCP tools and their data run on Cloudflare Workers and are exposed via an SSE endpoint. No data is stored locally.
What transport and auth does this server use?
It uses Server-Sent Events (SSE) as the transport and is explicitly built without authentication.
How do I add custom tools?
Inside the init() method of src/index.ts, call this.server.tool(...) to define each tool. See Cloudflare's MCP tools documentation for details.