MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@mlaurel

Overview

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

A deployable MCP (Model Context Protocol) server that runs on Cloudflare Workers and requires no authentication. It enables remote access to MCP tools over SSE, intended for developers who want a simple, serverless MCP endpoint.

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

Deploy instantly via the “Deploy to Workers” button or locally with npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. After deployment, connect to it from the Cloudflare AI Playground (enter the /sse URL) or from Claude Desktop using the mcp-remote proxy and the same SSE endpoint.

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

  • Deploy with zero authentication required
  • Runs serverlessly on Cloudflare Workers
  • Custom tools defined in src/index.ts using this.server.tool(...)
  • Supports SSE transport for remote MCP clients
  • One‑click deployment via Cloudflare button

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

  • Expose MCP tools to the Cloudflare AI Playground without local setup
  • Connect Claude Desktop to a remote MCP server using the mcp‑remote proxy
  • Host a lightweight, auth‑free MCP endpoint for testing or internal tooling

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

What does “Without Auth” mean?

The deployed MCP server does not enforce any authentication. Anyone with the SSE URL can access the tools.

How do I deploy this MCP server?

Click the “Deploy to Workers” button in the README, 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?

Edit src/index.ts and define each tool inside the init() method using this.server.tool(...).

Can I connect from Claude Desktop?

Yes. Use the mcp-remote npm package as a proxy, then add the SSE URL to Claude Desktop’s MCP server configuration (Settings > Developer > Edit Config).

What transport does the server use?

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

Tags

More from Developer Tools