MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@zackgilbert

Overview

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

This example deploys a remote Model Context Protocol (MCP) server on Cloudflare Workers that does not require authentication. It uses SSE (Server-Sent Events) transport and allows AI clients to connect and use custom tools.

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

Deploy via the "Deploy to Workers" button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. After deployment, connect from Cloudflare AI Playground by entering the SSE URL, or from Claude Desktop by configuring the mcp-remote proxy with the same URL.

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

  • Deployable on Cloudflare Workers with no authentication.
  • Uses SSE transport for remote MCP communication.
  • Custom tools defined in src/index.ts via this.server.tool().
  • One-click deployment via Cloudflare button.
  • Connects to Cloudflare AI Playground and Claude Desktop.

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

  • Deploy a remote MCP server for AI agents without needing authentication.
  • Integrate custom MCP tools directly into Cloudflare AI Playground.
  • Connect remote MCP tools to Claude Desktop using a local proxy.

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

What does this server do?

It provides a remote MCP server that runs on Cloudflare Workers, allowing AI clients to call tools over SSE without authentication.

How do I deploy it?

You can click the "Deploy to Workers" button or use the command npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless.

How do I add custom tools?

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

Tags

More from Developer Tools