Building a Remote MCP Server on Cloudflare (Without Auth)
@codescept
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This project provides a template to deploy a remote MCP (Model Context Protocol) server that does not require authentication, running on Cloudflare Workers. It is intended for developers who want to quickly set up a remote MCP server and connect it to MCP clients like Cloudflare AI Playground or Claude Desktop.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy by clicking the "Deploy to Workers" button or by running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. After deployment, the server is available at a URL like remote-mcp-server-authless.<your-account>.workers.dev/sse. Connect to it from the Cloudflare AI Playground by entering that URL, or from Claude Desktop using the mcp-remote proxy.
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy a remote MCP server without authentication.
- Runs on Cloudflare Workers for global scalability.
- Easily customizable by adding your own tools in
src/index.ts. - Connect directly to Cloudflare AI Playground.
- Compatible with local MCP clients via the
mcp-remoteproxy.
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy a public MCP server for testing or internal tools.
- Build and experiment with MCP tools on Cloudflare’s edge platform.
- Integrate MCP tools into the Cloudflare AI Playground.
- Connect a remote MCP server to Claude Desktop or other MCP clients.
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
What is the purpose of this server?
It allows you to deploy a remote MCP server that does not require authentication, making it easy to get started with MCP on Cloudflare Workers.
How do I deploy the server?
You can deploy by clicking the "Deploy to Workers" button or by using the npm create cloudflare@latest command with the provided template.
How do I add my own tools?
Define each tool inside the init() method of src/index.ts using this.server.tool(...).
How can I connect to Cloudflare AI Playground?
Go to the Cloudflare AI Playground, enter your deployed MCP server URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse), and start using the tools.
How do I connect to Claude Desktop?
Use the mcp-remote proxy. Update Claude Desktop’s configuration to point to your server URL via npx mcp-remote <your-server-url>/sse.