Servers
Building a Remote MCP Server on Cloudflare (Without Auth)
@better-commerce
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This example lets you deploy a remote MCP (Model Context Protocol) server without authentication on Cloudflare Workers. It is a template for developers who want to quickly set up a remote MCP server with custom tools.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy via the "Deploy to Workers" button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Add custom tools inside the init() method of src/index.ts using this.server.tool(...). Connect to Cloudflare AI Playground by entering your deployed URL, or connect to Claude Desktop using the mcp-remote proxy.
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deployable with one click or npm command
- No authentication required
- Customizable with your own tools
- Works with Cloudflare AI Playground
- Compatible with local MCP clients via proxy