Servers
Building a Remote MCP Server on Cloudflare (Without Auth)
@0xdzs
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This template deploys a remote Model Context Protocol (MCP) server on Cloudflare Workers without authentication. It provides an SSE endpoint for AI agents and clients to interact with custom MCP tools.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy using the “Deploy to Workers” button or the npm create cloudflare@latest command with the template flag. Customize tools inside the init() method of src/index.ts. Connect from the Cloudflare AI Playground by entering the deployed SSE URL, or from Claude Desktop using the mcp-remote proxy.
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)?
- No authentication required for remote access
- Deployable via Cloudflare Workers with one click
- SSE-based transport for MCP communication
- Easily customizable tools via
this.server.tool() - Works with Cloudflare AI Playground as a client
- Connects to local MCP clients via mcp-remote proxy
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)?
- Quickly prototype and test custom MCP tools without auth overhead
- Integrate MCP-powered AI agents with Cloudflare’s edge network
- Enable remote MCP access for Claude Desktop through a proxy
- Provide a public MCP endpoint for demo or internal tooling
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
How do I deploy the server?
Use 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?
Define each tool inside the init() method of