MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@brnardo

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 on Cloudflare Workers that does not require authentication. It is intended for developers who want a quick, auth‑less remote MCP server to integrate with 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, custom tools are added inside the init() method of src/index.ts using this.server.tool(...). Connect to Cloudflare AI Playground by entering the deployed SSE URL, or connect Claude Desktop via the mcp-remote proxy using npx mcp-remote <url>.

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

  • Deploy a remote MCP server without authentication
  • Runs on Cloudflare Workers globally
  • Easily customizable by adding tools in src/index.ts
  • Connect directly from Cloudflare AI Playground
  • Compatible with Claude Desktop via the mcp-remote proxy

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

  • Quickly create a remote MCP server for testing or prototyping
  • Use MCP tools inside Cloudflare AI Playground
  • Connect Claude Desktop to a remote MCP tool server without local setup
  • Deploy a lightweight, serverless MCP endpoint

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

How do I deploy the server?

Use the “Deploy to Workers” button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. This will create a Cloudflare Workers project with the MCP server template.

How do I add my own MCP tools?

Define each tool inside the init() method of src/index.ts by calling this.server.tool(...). There is no separate configuration file for tools.

How do I connect to Cloudflare AI Playground?

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

How do I connect Claude Desktop to the server?

Install the mcp-remote npm package, then add a configuration entry in Claude Desktop’s settings (Developer > Edit Config) with "command": "npx" and "args": ["mcp-remote", "<your-url>/sse"]. Restart Claude to use the tools.

Does this server require authentication?

No. The README explicitly states it is a remote MCP server that “doesn’t require authentication.” There is no authentication or authorization layer.

Tags

More from Developer Tools