MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@Remoder

Overview

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

A deployable template that creates a remote Model Context Protocol (MCP) server on Cloudflare Workers with no authentication. It is intended for developers who want to expose MCP tools over SSE to remote clients like the Cloudflare AI Playground or local MCP clients via a proxy.

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

Deploy instantly using the "Deploy to Workers" button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless from the command line. After deployment, customize tools by editing the init() method in src/index.ts using this.server.tool(...). Connect remote clients by providing the SSE endpoint (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse).

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

  • Deploy a remote MCP server on Cloudflare Workers without authentication.
  • Add custom tools inside the init() method of src/index.ts.
  • Connect from the Cloudflare AI Playground as a remote MCP client.
  • Use mcp-remote proxy to connect local clients like Claude Desktop.
  • Delivered via a ready-made Cloudflare Workers template.

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

  • Expose MCP tools to the Cloudflare AI Playground for remote experimentation.
  • Build a public or internal MCP server without managing authentication overhead.
  • Rapidly prototype MCP integrations using a serverless, globally distributed platform.
  • Test MCP tools with Claude Desktop by proxying through the remote SSE endpoint.

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

How do I deploy this server?

Click the “Deploy to Workers” button in the README, or use npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless on the command line.

How do I add my own tools?

Define each tool inside the init() method of src/index.ts using this.server.tool(...).

How do I connect to the 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 start using the tools.

Can I use this server with Claude Desktop?

Yes, by using the mcp-remote proxy. Add a configuration entry to Claude Desktop’s mcpServers that runs npx mcp-remote <your-sse-url>.

What transport does the server use?

The server communicates over Server-Sent Events (SSE), as indicated by the /sse endpoint in the deployment URL.

Tags

More from Developer Tools