MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@hu9

Overview

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

A template to deploy a remote Model Context Protocol (MCP) server on Cloudflare Workers without authentication. It provides an SSE endpoint for use with MCP clients like Cloudflare AI Playground or Claude Desktop.

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. Customize tools by editing src/index.ts in the init() method with this.server.tool(...). Connect to Cloudflare AI Playground by entering the deployed URL, or to Claude Desktop using the mcp-remote proxy with the server URL.

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

  • No authentication required for the MCP server.
  • Deployed as a Cloudflare Worker with an SSE endpoint.
  • Customizable with your own MCP tools.
  • Connects to Cloudflare AI Playground directly.
  • Works with local MCP clients via mcp-remote proxy.

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

  • Rapidly prototyping and testing MCP tools without auth setup.
  • Exposing MCP tools to remote clients like AI Playground.
  • Integrating MCP tools with Claude Desktop through a proxy.

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

What is this server used for?

It allows you to deploy a remote MCP server quickly on Cloudflare Workers without requiring authentication, enabling you to test and use MCP tools from remote clients.

How do I deploy it?

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

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.

How do I connect Claude Desktop?

Install the mcp-remote package, then add the server URL to Claude Desktop's MCP configuration with "command": "npx" and "args": ["mcp-remote", "<your-server-url>/sse"].

Tags

More from Developer Tools