Building a Remote MCP Server on Cloudflare (Without Auth)
@sanchezmochales
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
A template for deploying a remote MCP server on Cloudflare Workers that does not require authentication. It is intended for developers who want to quickly set up an MCP server accessible via SSE.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy with the "Deploy to Workers" button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools by adding them inside the init() method of src/index.ts using this.server.tool(...).
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy to Cloudflare Workers with one click.
- No authentication required for connections.
- Uses SSE transport endpoint.
- Fully customizable tool definitions.
- Works with any remote MCP client.
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Connect to the Cloudflare AI Playground as a remote MCP client.
- Integrate with Claude Desktop using the
mcp-remoteproxy.
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 from the command line.
Where do I add my own 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/, enter your deployed MCP server URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse), and use the tools directly.
How do I connect from Claude Desktop?
Install the mcp-remote npm package, then add an entry pointing to your server URL to Claude Desktop's MCP configuration file.
Does the server require authentication?
No, this example is specifically designed to run without authentication.