MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@Kepsondiaz

Overview

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

This example allows you to deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers that does not require authentication. It is intended for developers who want to quickly create and host MCP tools accessible from remote clients.

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

Deploy the server by clicking the Deploy to Workers button or by running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless from the command line. Customize tools inside the init() method of src/index.ts using this.server.tool(...). Connect to it from Cloudflare AI Playground by entering the deployed 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)

  • Deploys to Cloudflare Workers with a single click or command.
  • No authentication required for client connections.
  • Easily add custom tools via this.server.tool(...).
  • Works with Cloudflare AI Playground as a remote MCP client.
  • Compatible with Claude Desktop via the mcp-remote proxy.

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

  • Hosting AI agent tools accessible over the internet without auth.
  • Experimenting with remote MCP clients like Cloudflare AI Playground.
  • Integrating custom server-side logic into Claude Desktop workflows.
  • Rapid prototyping of MCP-based tool servers on a global edge network.

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

How do I deploy the server?

Use the Deploy to Workers button or run the npm create cloudflare command with the provided template. This will create a new project and deploy it to a URL like remote-mcp-server-authless.<your-account>.workers.dev/sse.

How do I add my own tools?

Inside the init() method of src/index.ts, define each tool using this.server.tool(...). Refer to the Cloudflare documentation on MCP tools for details.

How do I connect to Cloudflare AI Playground?

Go to https://playground.ai.cloudflare.com/, enter your deployed SSE URL, and the tools will be available directly in the playground.

How do I connect to Claude Desktop?

Install the mcp-remote proxy via npm, then add a configuration entry in Claude Desktop pointing to your server's SSE URL. Restart Claude to see the tools.

Does this server require authentication?

No, the server is built without authentication, making it suitable for testing and development.

Tags

More from Developer Tools