Building a Remote MCP Server on Cloudflare (Without Auth)
@cialfo
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This template deploys a remote MCP server on Cloudflare Workers without authentication. It is for developers who want to serve MCP tools over SSE and connect them to remote or local clients.
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. Customize tools in the init() method of src/index.ts using this.server.tool(...). Connect to the Cloudflare AI Playground or to Claude Desktop via the mcp-remote proxy.
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy remote MCP server without authentication.
- Hosted on Cloudflare Workers.
- Connect to Cloudflare AI Playground.
- Connect to Claude Desktop via mcp-remote proxy.
- Add custom tools in
src/index.ts. - Uses SSE transport protocol.
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Serve MCP tools from a public URL to remote clients.
- Use MCP tools inside the Cloudflare AI Playground.
- Access MCP tools from Claude Desktop without a local server.
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
What is the deployed URL format?
It will be 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 from Cloudflare AI Playground?
Go to https://playground.ai.cloudflare.com/ and enter your deployed MCP server URL.
How do I connect from Claude Desktop?
Use the mcp-remote proxy. In Claude Desktop settings, add a server with command npx and args ["mcp-remote", "http://localhost:8787/sse"].
Does this server require authentication?
No, this example deploys a remote MCP server that does not require authentication.