Building a Remote MCP Server on Cloudflare (Without Auth)
@dakotatores01
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
A deployable template for creating a remote MCP server on Cloudflare Workers that does not require authentication. It is intended for developers who want to expose MCP tools over SSE without setting up an auth layer.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy via the "Deploy to Workers" button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. After deployment, the server is accessible at an SSE endpoint. Customize tools by editing src/index.ts using this.server.tool(). Connect clients like Cloudflare AI Playground or Claude Desktop (via mcp-remote proxy) by providing the SSE URL.
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy to Cloudflare Workers with one click or CLI.
- No authentication required for remote access.
- Uses SSE transport for MCP communication.
- Customizable tools via code inside
init()method. - Connects to Cloudflare AI Playground natively.
- Works with Claude Desktop through mcp-remote proxy.
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Exposing MCP tools remotely without auth for prototyping.
- Integrating with Cloudflare AI Playground for testing.
- Connecting local LLM clients like Claude to remote tools.
- Quick deployment of a server-side MCP endpoint.
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
What does this MCP server do?
It provides a ready-to-deploy template for a remote MCP server on Cloudflare Workers that does not require authentication.
How do I deploy it?
Use the "Deploy to Workers" button or run npm create cloudflare@latest with the specified template.
How do I add custom tools?
Define each tool inside the init() method of src/index.ts using this.server.tool(...).
How do I connect from Cloudflare AI Playground?
Go to https://playground.ai.cloudflare.com/ and enter your deployed SSE URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse).
How do I connect from Claude Desktop?
Use the mcp-remote proxy: in Claude Desktop configuration, set command to npx mcp-remote with your SSE URL as argument.