Building a Remote MCP Server on Cloudflare (Without Auth)
@sanketgawas-toast
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This example deploys a remote MCP (Model Context Protocol) server that does not require authentication, using Cloudflare Workers. It is intended for developers who want to quickly set up a remote MCP server for testing or integration with MCP clients.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy the server via the “Deploy to Workers” button or by running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools inside the init() method of src/index.ts using this.server.tool(...). Connect from Cloudflare AI Playground or from Claude Desktop using the mcp-remote proxy with an SSE URL.
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy with one click to Cloudflare Workers
- No authentication required for access
- Customizable MCP tools via source code
- Connect directly from Cloudflare AI Playground
- Works with Claude Desktop via mcp-remote proxy
- Uses SSE transport (Server-Sent Events)
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Quickly test MCP tools without setting up authentication
- Integrate MCP tools with Cloudflare AI Playground
- Use MCP tools from Claude Desktop over the internet
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
Does this server require authentication?
No, the server is intentionally built without authentication to simplify deployment and testing.
How do I deploy the server?
Use the “Deploy to Workers” button or run npm create cloudflare@latest with the provided template. The server is deployed to a URL like 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(...).
How do I connect this server to Claude Desktop?
Use the mcp-remote proxy. In Claude Desktop’s MCP configuration, set the command to npx mcp-remote with the SSE URL of your deployed server.
What transport does this server use?
The server uses SSE (Server-Sent Events) as its transport protocol.