MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@immber

Overview

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

This example deploys a remote MCP server with no authentication on Cloudflare Workers. It is aimed at developers who want to expose MCP tools over the internet without requiring user authentication.

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

Deploy with the “Deploy to Workers” button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools by editing the init() method in src/index.ts using this.server.tool(...). Connect from Cloudflare AI Playground by entering the SSE URL, or from Claude Desktop via the mcp-remote proxy with the same URL.

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

  • One-click deploy to Cloudflare Workers
  • No authentication required
  • SSE transport by default
  • Fully customizable tools via TypeScript
  • Ready to connect from remote MCP clients

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

  • Expose MCP tools to the internet for testing or prototyping
  • Build a shared MCP server for a team without managing auth
  • Connect to Cloudflare AI Playground as a remote MCP client
  • Integrate with local MCP clients (e.g., Claude Desktop) via an SSE proxy

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

How do I deploy the remote MCP server?

Use 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 custom tools to the server?

Inside the init() method of src/index.ts, define each tool using this.server.tool(name, schema, handler).

How can I connect from Claude Desktop?

Install the mcp-remote proxy and configure Claude Desktop with "command": "npx" and "args": ["mcp-remote", "<your-sse-url>"].

Does this server require any authentication?

No, the server is deployed without authentication. Anyone with the SSE URL can connect to it.

Where does the server run?

It runs as a Cloudflare Worker. The endpoint format is remote-mcp-server-authless.<your-account>.workers.dev/sse.

More from Developer Tools