Building a Remote MCP Server on Cloudflare (Without Auth)
@dinasaur404
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This is a template that lets you deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers without requiring authentication. It is intended for developers who want to quickly set up a custom remote MCP server with their own tools and connect to MCP clients like Cloudflare AI Playground or Claude Desktop.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy the server using the “Deploy to Workers” button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless locally. After deployment, add your own MCP tools inside the init() method of src/index.ts using this.server.tool(...). Connect to the server from Cloudflare AI Playground by entering its SSE URL, or from Claude Desktop via the mcp-remote proxy using a JSON configuration that points to the server’s SSE endpoint.
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy a remote MCP server instantly on Cloudflare Workers
- No authentication required – accessible over the internet
- Customizable with your own MCP tools
- Serves an SSE endpoint for remote connections
- Supports connections from Cloudflare AI Playground and Claude Desktop
- Uses modern Cloudflare infrastructure with a one-click deploy option
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Prototype and test MCP tools without setting up local infrastructure
- Provide remote MCP tools accessible from the Cloudflare AI Playground
- Connect a custom tool set to Claude Desktop via the mcp-remote proxy
- Quickly share a demo MCP server with team members or the public
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
What exactly does this server do?
It provides a remote MCP server that exposes tools you define over an SSE endpoint, without any authentication layer.
How do I deploy it?
Use the “Deploy to Workers” button in the README or run npm create cloudflare@latest with the specified template. This will create and deploy the server to a URL like remote-mcp-server-authless.<your-account>.workers.dev/sse.
How do I add my own tools?
Edit src/index.ts and add tools inside the init() method using this.server.tool(...). Refer to the Cloudflare MCP tools documentation for details.
What dependencies or runtime are required?
You need Node.js and npm installed, a Cloudflare account, and the Cloudflare Workers CLI (Wrangler) if deploying manually.
Where does my data live and what transport is used?
The server runs on Cloudflare Workers at a globally distributed edge network. Communication uses Server-Sent Events (SSE) as the transport. No authentication is enforced – the server is publicly accessible.