MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@Shridhad

Overview

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

This server lets you deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers that does not require authentication. It is intended for developers who want to expose MCP tools over the internet without adding auth layers.

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

Deploy by clicking the “Deploy to Workers” button or running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools inside the init() method of src/index.ts using this.server.tool(...). Connect remote clients (e.g., AI Playground, Claude Desktop) by providing the deployed SSE URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse). For Claude Desktop, use the mcp-remote proxy tool as an intermediary.

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

  • Runs entirely on Cloudflare Workers for global edge deployment.
  • No authentication required for client connections.
  • Easily add custom MCP tools via the init() method.
  • Connects directly to Cloudflare AI Playground as a remote MCP client.
  • Works with local MCP clients (Claude Desktop) through the mcp-remote proxy.

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

  • Deploying a remote MCP tool server that any client can access without login.
  • Testing custom MCP tools quickly using Cloudflare AI Playground.
  • Integrating remote MCP tools with Claude Desktop via a local proxy.
  • Demonstrating MCP server architecture in a serverless, auth‑free environment.

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

What does this server do?

It provides a template and deployment method for a remote, authentication‑free MCP server hosted on Cloudflare Workers. You add your own tools to it.

How do I deploy my own instance?

Use the “Deploy to Workers” button on the README or run the npm create cloudflare@latest command with the specified template. This creates and publishes a Worker with the MCP server.

How can I add custom tools?

Inside src/index.ts, inside the init() method, call this.server.tool(...) to define each tool. Follow the Cloudflare MCP tools documentation for the exact API.

How do I connect a remote client?

For Cloudflare AI Playground, enter your deployed SSE URL directly. For Claude Desktop, install the mcp-remote npm package and configure the MCP client to use it as a proxy pointing to your SSE URL.

What transport and dependencies are used?

The server uses SSE (Server‑Sent Events) transport. It is built on the MCP SDK and deployed as a Cloudflare Worker. No authentication middleware is included.

Tags

More from Developer Tools