MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@yamanoku-playground

Overview

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

A template that deploys a remote MCP (Model Context Protocol) server to Cloudflare Workers with no authentication required. It is intended for developers who want to quickly run MCP tools in the cloud and connect them to MCP clients like Cloudflare AI Playground or Claude Desktop.

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

Deploy via the "Deploy to Workers" button or by running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools in src/index.ts using this.server.tool(...). Connect from Cloudflare AI Playground by entering the deployed SSE URL, or from Claude Desktop using the mcp-remote proxy with a JSON configuration.

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

  • Deploy a remote MCP server on Cloudflare Workers with one click.
  • No authentication required for the deployed server.
  • Add custom MCP tools inside the init() method.
  • Connect to Cloudflare AI Playground as a remote MCP client.
  • Connect to Claude Desktop via the mcp-remote proxy.
  • Uses SSE (Server-Sent Events) transport at the /sse endpoint.

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

  • Quickly prototype and test MCP tools without setting up authentication.
  • Expose MCP tools publicly in a development or demo environment.
  • Integrate MCP capabilities into Cloudflare AI Playground workflows.
  • Use the same MCP server from multiple local clients, such as Claude Desktop.

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

Do I need a Cloudflare account to deploy?

Yes. Deploying the server requires a Cloudflare account to host the worker.

What transport protocol does the server use?

It uses SSE (Server-Sent Events) at the /sse endpoint.

How do I add my own tools?

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

How can I connect Claude Desktop to this server?

Use the mcp-remote NPM package as a proxy and configure the server URL in Claude Desktop’s MCP settings JSON.

Does this server support authentication?

No. This template is specifically designed to be deployed without authentication.

Tags

More from Productivity