Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This example allows you to deploy a remote MCP server on Cloudflare Workers without authentication, exposing tools over SSE. It is intended for developers who want a quick, unauthenticated remote MCP endpoint.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy using the “Deploy to Workers” button or the CLI command npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools inside the init() method of src/index.ts. Connect from the Cloudflare AI Playground (enter your deployed SSE URL) or from Claude Desktop via the mcp-remote proxy.
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy a remote MCP server on Cloudflare Workers
- No authentication required
- Add custom tools via
this.server.tool(...) - Connect directly from Cloudflare AI Playground
- Connect from Claude Desktop using mcp-remote proxy
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Expose MCP tools without user authentication
- Integrate with Cloudflare AI Playground as a remote MCP client
- Connect remote MCP tools to Claude Desktop for local use
- Rapid prototyping and testing of MCP servers on Workers
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
How do I deploy the server?
Click 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 src/index.ts using this.server.tool(...).
How do I connect from Claude Desktop?
Use the mcp-remote proxy (npx mcp-remote) and update your Claude Desktop config with the command and your deployed SSE URL.
Does the server require authentication?
No, this server is designed to run without authentication.