MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@alasdairnicol

Overview

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

This example demonstrates how to deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers that requires no authentication. It is intended for developers who want to quickly set up a remote MCP server and connect it to clients like the Cloudflare AI Playground or Claude Desktop.

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

Deploy using the "Deploy to Workers" button or the CLI command npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. After deployment, the server is available at a URL like remote-mcp-server-authless.<your-account>.workers.dev/sse. Customize by adding tools inside the init() method of src/index.ts with this.server.tool(...). Connect to clients by entering the SSE endpoint URL.

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

  • Deploys a remote MCP server on Cloudflare Workers with no authentication.
  • Provides a one-click deploy button or CLI setup.
  • Supports custom tool definitions via this.server.tool(...).
  • Connects directly to Cloudflare AI Playground as a remote MCP client.
  • Works with Claude Desktop through the mcp-remote proxy.

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

  • Quickly prototyping an MCP server without setting up authentication.
  • Integrating MCP tools into Cloudflare's AI Playground for testing.
  • Connecting a local MCP client (e.g., Claude Desktop) to a cloud-hosted server.
  • Sharing a simple, public MCP server for demo or development purposes.

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

How do I deploy this MCP server?

Use the "Deploy to Workers" button from the README, or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless in your terminal.

How can I add my own tools?

Each tool is defined inside the init() method of src/index.ts using this.server.tool(...). Refer to Cloudflare’s MCP tools documentation for details.

How do I connect this server to Cloudflare AI Playground?

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

How do I connect Claude Desktop to this remote MCP server?

Install the mcp-remote proxy and configure Claude Desktop’s MCP settings with the mcp-remote command pointing to your server’s SSE URL. A sample configuration is provided in the README.

Does this server require authentication?

No, the title explicitly states "Without Auth". The server is deployed with no authentication mechanism.

Tags

More from Developer Tools