Building a Remote MCP Server on Cloudflare (Without Auth)
@selee3707
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
A template for deploying a remote MCP server without authentication on Cloudflare Workers. It is for developers who want a quick, serverless MCP endpoint on Cloudflare's edge network.
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 inside src/index.ts using this.server.tool(...). Connect from Cloudflare AI Playground or from local clients like Claude Desktop via 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 serverless hosting.
- Add custom MCP tools programmatically.
- Connect from Cloudflare AI Playground.
- Compatible with local MCP clients via proxy.
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy a public MCP server for testing or prototyping.
- Provide MCP tools accessible from Cloudflare AI Playground.
- Integrate MCP tools into Claude Desktop through a remote server.
- Host a lightweight, non-authenticated MCP endpoint for internal demos.
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
Does this MCP server require authentication?
No, this example deploys a remote MCP server that does not require authentication.
How do I deploy the MCP server?
You can deploy using the "Deploy to Workers" button or by running the npm create cloudflare command with the provided template URL.
How do I add custom tools to the server?
Define each tool inside the init() method of src/index.ts using the this.server.tool(...) syntax.
How do I connect from Cloudflare AI Playground?
Go to the Cloudflare AI Playground, enter your deployed MCP server URL (ending in /sse), and use the tools directly.
How do I connect from Claude Desktop?
Use the mcp-remote proxy by adding a configuration entry in Claude Desktop's settings with the remote server URL.