MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@StevenConnors

Overview

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

This example allows you to deploy a remote MCP server that doesn’t require authentication on Cloudflare Workers. It is intended for developers who want to host MCP tools on a remote server accessible via SSE, without a full authentication system.

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 in src/index.ts using this.server.tool(...). Connect clients such as Cloudflare AI Playground or Claude Desktop (via the mcp-remote proxy) to the deployed SSE URL.

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

  • No authentication required for the MCP server
  • Deploy quickly on Cloudflare Workers
  • Uses SSE (Server‑Sent Events) transport
  • Easily add custom tools in src/index.ts
  • Integrates with Cloudflare AI Playground and Claude Desktop

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

  • Host a remote MCP server for the Cloudflare AI Playground
  • Connect Claude Desktop to a remote MCP server via the mcp-remote proxy
  • Create a public MCP server without building a full authentication system

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

How do I deploy the MCP server?

Use the “Deploy to Workers” button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless.

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 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).

How do I connect from Claude Desktop?

Use the mcp-remote proxy and configure Claude Desktop’s mcpServers setting with the command npx mcp-remote <server-url>.

What transport does the server use?

The server exposes an SSE endpoint at /sse.

Tags

More from Developer Tools