MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@MikeC-A6

Overview

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

This template lets you deploy a remote MCP server without authentication on Cloudflare Workers, using SSE transport. It is for developers who want to expose MCP tools to AI clients like Cloudflare AI Playground or Claude Desktop.

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

Deploy with one click using the “Deploy to Workers” button or by running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools by editing src/index.ts inside the init() method with this.server.tool(...). Connect clients using the deployed URL, such as remote-mcp-server-authless.<your-account>.workers.dev/sse.

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

  • Deploy to Cloudflare Workers with one click
  • No authentication required for client connections
  • Uses SSE (Server-Sent Events) transport
  • Customizable tools via TypeScript code
  • Connects to Cloudflare AI Playground natively
  • Can be used with local MCP clients via mcp-remote proxy

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

  • Exposing custom MCP tools to the Cloudflare AI Playground
  • Connecting a remote MCP server to Claude Desktop through a proxy
  • Building and testing MCP tools without setting up local authentication
  • Rapid prototyping of MCP servers using Cloudflare’s global network

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

What is the URL format of the deployed server?

The server is available at remote-mcp-server-authless.<your-account>.workers.dev/sse after deployment.

How do I add custom tools to the MCP server?

Add each tool inside the init() method of src/index.ts using this.server.tool(...). See the Cloudflare MCP tools documentation for details.

How can I connect to this server from the Cloudflare AI Playground?

Go to https://playground.ai.cloudflare.com/ and enter your deployed MCP server URL (.../sse). The tools become available directly in the playground.

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

Use the mcp-remote proxy. Add a configuration entry to Claude Desktop’s MCP settings with command: "npx" and arguments including "mcp-remote" and the server URL (e.g., http://localhost:8787/sse).

What are the runtime requirements to develop locally?

You need Node.js, npm, and a Cloudflare account. Run npm create cloudflare@latest ... to scaffold the project locally.

Tags

More from Developer Tools