Building a Remote MCP Server on Cloudflare (Without Auth)
@calvinw
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
A template that deploys a remote MCP server to Cloudflare Workers using SSE transport, requiring no authentication. It's aimed at developers who want to expose MCP tools from the Cloudflare edge.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy with the "Deploy to Workers" button or via npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools in src/index.ts using this.server.tool(...). Connect from Cloudflare AI Playground by entering the deployed SSE URL, or from Claude Desktop using the mcp-remote proxy.
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy a remote MCP server with zero authentication
- Uses SSE (Server-Sent Events) transport
- Customizable tools via the
init()method - One-click deploy to Cloudflare Workers
- Connect from remote MCP clients like AI Playground
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Expose MCP tools from the Cloudflare edge without user login
- Prototype a remote MCP server quickly with minimal configuration
- Build custom developer tools accessible via any remote MCP client
- Integrate with Cloudflare AI Playground for testing
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
What is this MCP server?
It's a Cloudflare Workers template that implements a remote MCP server over SSE without requiring authentication.
How does it differ from a local MCP server?
It runs on Cloudflare's edge, accessible via a public URL, and uses SSE instead of stdio transport.
What runtime or dependencies are required?
Requires Node.js (for wrangler) and a Cloudflare account. The server runs on Cloudflare Workers.
Where does data or state live?
No persistent storage is included; state is ephemeral per worker instance unless you add bindings.
Is authentication supported?
No, this template deploys without any authentication layer.