Building a Remote MCP Server on Cloudflare (Without Auth)
@mercedes-aso
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This template lets you deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers without requiring authentication. It is for developers who want to expose MCP tools remotely.
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 from the CLI. After deployment, connect MCP clients like Cloudflare AI Playground by entering the SSE URL, or connect Claude Desktop by configuring the mcp-remote proxy with the same SSE URL in Claude Desktop’s Developer settings.
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy a remote MCP server without authentication on Cloudflare Workers.
- Easily customizable with your own tools via
this.server.tool(...). - Connect directly to Cloudflare AI Playground as a remote MCP client.
- Connect to Claude Desktop using the mcp-remote proxy.
- Simple one-click deployment or CLI-based setup.
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Expose MCP tools remotely without needing user authentication.
- Integrate MCP tools into the Cloudflare AI Playground for testing.
- Use MCP tools from Claude Desktop through a remote proxy.
- Quickly prototype and deploy MCP servers on Cloudflare’s edge network.
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
How do I deploy this MCP server?
Click the “Deploy to Workers” button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless in your terminal.
How do I add custom tools to the server?
Define each tool inside the init() method of src/index.ts using this.server.tool(...).
How do I connect to Cloudflare AI Playground?
Go to https://playground.ai.cloudflare.com/, enter your deployed SSE URL (e.g., remote-mcp-server-authless.<account>.workers.dev/sse), and the tools become available.
How do I connect Claude Desktop to this server?
Use the mcp-remote proxy (npx mcp-remote) and add the SSE URL to Claude Desktop’s settings under Developer > Edit Config, then restart Claude.
Does this server require authentication?
No, it is explicitly built to be deployed without authentication.