Building a Remote MCP Server on Cloudflare (Without Auth)
@mythonaut
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This server lets you deploy a remote MCP server on Cloudflare Workers that requires no authentication. It provides a Server-Sent Events (SSE) endpoint for connecting MCP clients and is designed for developers who want a simple, publicly accessible MCP server for tools.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy by clicking the "Deploy to Workers" button or by running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. After deployment, customize tools by editing src/index.ts and adding them inside the init() method using this.server.tool(...). Connect to it from Cloudflare AI Playground by entering your 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 without authentication
- Runs on Cloudflare Workers with a public SSE endpoint
- Easy to add custom tools via code
- Connect from Cloudflare AI Playground or Claude Desktop
- One-click deploy or CLI setup
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Expose MCP tools to the Cloudflare AI Playground
- Integrate MCP tools with Claude Desktop using a proxy
- Prototype and test remote MCP servers without auth overhead
- Deploy a lightweight serverless MCP endpoint
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
How do I deploy the MCP server?
Click the "Deploy to Workers" button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless.
Where can I find my server's URL?
After deployment, your server is available at remote-mcp-server-authless.<your-account>.workers.dev/sse.
How do I add custom tools?
Define each tool inside the init() method of src/index.ts using this.server.tool(...).
Can I connect this to Claude Desktop?
Yes, use the mcp-remote proxy and configure Claude Desktop with the SSE URL in the mcpServers configuration.
Does the server require any authentication?
No, this server is designed to run without authentication, as stated in the title.