MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@rosedael

Overview

What is Building a Remote MCP Server on Cloudflare (Without Auth)?

A deployment template that creates a remote Model Context Protocol (MCP) server on Cloudflare Workers without requiring authentication. It is intended for developers who want to expose MCP tools over the internet and connect them to remote MCP clients like Cloudflare AI Playground or Claude Desktop.

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(...). Connect to Cloudflare AI Playground by entering the deployed SSE URL, or to Claude Desktop by configuring the mcp-remote proxy in the MCP server settings.

Key features of Building a Remote MCP Server on Cloudflare (Without Auth)

  • Deploy an MCP server to Cloudflare Workers without authentication
  • Add custom tools via this.server.tool(...) in the Worker code
  • Connect remotely from Cloudflare AI Playground
  • Connect from local clients (e.g., Claude Desktop) via an SSE proxy
  • Simple one‑click deployment or CLI template

Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)

  • Expose MCP tools to the Cloudflare AI Playground for remote testing
  • Integrate custom MCP tools with Claude Desktop over the internet
  • Quickly prototype a serverless MCP endpoint without setting up authentication

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 the npm create cloudflare command with the provided template.

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 the Cloudflare AI Playground?

Go to https://playground.ai.cloudflare.com/, enter your deployed SSE URL (e.g., remote-mcp-server-authless.<account>.workers.dev/sse), and use the tools.

How do I connect from Claude Desktop?

Install the mcp-remote npm package and configure Claude Desktop's MCP servers to run npx mcp-remote <your-sse-url>.

Does this server include any authentication?

No. The server is designed to be deployed without authentication as stated in the title and README.

Tags

More from Developer Tools