Building a Remote MCP Server on Cloudflare (Without Auth)
@kathayl
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This project allows you to deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers without requiring authentication. It is intended for developers who want to expose MCP tools over SSE to remote clients like the Cloudflare AI Playground or Claude Desktop.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy using the “Deploy to Workers” button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless locally. Customize tools by editing src/index.ts and using this.server.tool(...) inside the init() method. Connect remote clients by pointing them to the deployed URL (e.g. remote-mcp-server-authless.<your-account>.workers.dev/sse).
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deployable directly from a button or CLI
- No authentication required for the server
- Fully customizable tools via code
- Compatible with Cloudflare AI Playground as a remote client
- Works with Claude Desktop via the
mcp-remoteproxy
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Expose MCP tools to the Cloudflare AI Playground for quick prototyping
- Connect local AI assistants like Claude Desktop to a remote tool server
- Build and test MCP tools without managing authentication infrastructure
- Serve lightweight, stateless tools from a global edge network
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
What URL does my MCP server get?
After deployment, your server is available at remote-mcp-server-authless.<your-account>.workers.dev/sse (or a local URL like http://localhost:8787/sse when running in development).
How do I add custom tools?
Edit src/index.ts and call this.server.tool(...) inside the init() method. Each tool definition follows the standard MCP tool schema.
Can I connect this server to Claude Desktop?
Yes. Use the mcp-remote proxy — install it via npx and add a configuration entry in Claude Desktop pointing to your server’s SSE endpoint.
What are the runtime requirements?
You need a Cloudflare Workers account and Node.js/npm installed locally. The deployed worker runs on Cloudflare’s edge network with no additional dependencies.
How do clients communicate with the server?
The server uses SSE (Server-Sent Events) as its transport. Clients connect to the /sse endpoint and exchange messages over the MCP protocol without authentication.