MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@tomkingchen

Overview

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

This server enables deployment of a remote MCP (Model Context Protocol) server that requires no authentication on Cloudflare Workers. It is intended for developers who want to expose MCP tools publicly without a login barrier.

How to use Building a Remote MCP Server on Cloudflare (Without Auth)?

Deploy by clicking the "Deploy to Workers" button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless locally. Customize tools by editing src/index.ts inside the init() method using this.server.tool(...). Connect to the Cloudflare AI Playground (https://playground.ai.cloudflare.com/) by entering the deployed SSE URL, or connect Claude Desktop via the mcp-remote proxy with the JSON configuration shown in the README.

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

  • Deployed as a Cloudflare Worker without authentication.
  • Provides an SSE endpoint (/sse) for remote MCP clients.
  • Tools are customizable directly in src/index.ts.
  • Integrates with Cloudflare AI Playground out of the box.
  • Supports local MCP clients through the mcp-remote proxy.

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

  • Exposing MCP tools to the public internet without user login.
  • Connecting a remote MCP server to Cloudflare AI Playground for testing.
  • Using MCP tools from Claude Desktop via a proxy.
  • Quickly prototyping and iterating on MCP servers using Cloudflare’s global network.

FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)

How do I deploy this MCP server?

Click the "Deploy to Workers" button in the README, or run the npm create cloudflare command with the provided template.

What dependencies are required?

You need Node.js and npm to create the project locally; the deployed Worker runs on Cloudflare’s runtime. For local clients, the mcp-remote npm package is needed.

Where does my data live?

All MCP server logic runs on Cloudflare Workers, and data is managed within the Worker’s environment. No persistent storage is configured by default.

How is the server accessed?

It listens for SSE connections at the deployed Workers URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse). No authentication is enforced.

Can I use this server with local MCP clients like Claude Desktop?

Yes, by running the mcp-remote proxy locally and pointing your client to the proxy’s address, as shown in the README’s JSON configuration example.

Tags

More from Developer Tools