Building a Remote MCP Server on Cloudflare (Without Auth)
@kartik71
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This template deploys a remote Model Context Protocol (MCP) server on Cloudflare Workers that does not require authentication. It provides an SSE endpoint for MCP clients, and is intended for developers who want to host MCP tools remotely without setting up auth.
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 in the terminal. After deployment, connect to the server’s SSE URL (remote-mcp-server-authless.<your-account>.workers.dev/sse) from an MCP client such as Cloudflare AI Playground or Claude Desktop (via the mcp-remote proxy). Custom tools can be added inside the init() method of src/index.ts using this.server.tool(...).
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Serverless deployment on Cloudflare Workers
- No authentication required for connections
- SSE‑based MCP endpoint
- Customizable tools added in
src/index.ts - Works with Cloudflare AI Playground and Claude Desktop
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Hosting MCP tools for personal AI assistants without managing auth infrastructure
- Prototyping remote MCP servers quickly using Cloudflare’s free tier
- Connecting MCP tools to Cloudflare AI Playground for interactive testing
- Using MCP tools from Claude Desktop via the
mcp-remoteproxy
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
How do I deploy the server?
Use the “Deploy to Workers” button in the README, or run the npm create cloudflare command with the specified template.
How do I add my own tools?
Define each tool inside the init() method of src/index.ts using this.server.tool(...). Refer to Cloudflare’s MCP tools documentation for syntax.
How do I connect to Cloudflare AI Playground?
Go to playground.ai.cloudflare.com, enter your deployed SSE URL, and start using the tools.
How do I connect this server to Claude Desktop?
Install the mcp-remote proxy via npm, then add a configuration entry in Claude Desktop pointing to remote-mcp-server-authless.<your-account>.workers.dev/sse.
Does the server require authentication?
No, this particular template is intentionally built without authentication. All connections to the SSE endpoint are open.