MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@zipsmart-ai

Overview

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

An example project that deploys a remote MCP (Model Context Protocol) server on Cloudflare Workers without requiring authentication. It is intended for developers who want to host an MCP server that remote clients can connect to via SSE.

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

Deploy the server using the provided "Deploy to Workers" button or by running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. After deployment, connect remote MCP clients—such as the Cloudflare AI Playground or Claude Desktop (via the mcp-remote proxy)—to the server’s SSE endpoint.

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

  • Deployable in one click or one command.
  • No authentication required for remote access.
  • Uses SSE as the transport protocol.
  • Customizable tools defined in src/index.ts.
  • Runs entirely on Cloudflare Workers.

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

  • Expose custom MCP tools from a globally distributed server.
  • Connect the server to Cloudflare AI Playground as a remote MCP client.
  • Use the server with Claude Desktop via the mcp-remote proxy.

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

How do I deploy the server?

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

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 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 use the tools directly from the playground.

How do I connect Claude Desktop to the server?

Install the mcp-remote proxy and configure Claude Desktop’s mcpServers JSON to run npx mcp-remote <your-server-url>/sse, then restart Claude.

Does the server require authentication?

No, this example is specifically designed to run without authentication.

Tags

More from Developer Tools