MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@NabilHunt

Overview

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

This example lets you deploy a remote MCP server on Cloudflare Workers that requires no authentication. It is intended for developers who want a quick, no-setup MCP server hosted on Cloudflare’s edge network.

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

Deploy the server using the "Deploy to Workers" button or the CLI command npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools by editing src/index.ts inside the init() method with this.server.tool(...). Connect to the server from Cloudflare AI Playground by entering your deployed URL, or from Claude Desktop via the mcp-remote proxy using the provided JSON configuration.

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

  • Deploy to Cloudflare Workers with a single click or command.
  • No authentication required for remote access.
  • Add custom MCP tools via this.server.tool(...).
  • Connect directly to Cloudflare AI Playground.
  • Works with local MCP clients through the mcp-remote proxy.

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

  • Quickly prototyping a remote MCP server without configuring authentication.
  • Exposing MCP tools to Cloudflare’s AI Playground for testing.
  • Connecting a remote MCP server to Claude Desktop via a local proxy.

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

How do I deploy this MCP server?

You can either click the "Deploy to Workers" button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless in your terminal.

Does this server require authentication?

No, this server is explicitly designed to work without any authentication.

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 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 your tools directly.

How do I connect Claude Desktop?

Use the mcp-remote proxy as shown in the README configuration, update your Claude Desktop settings, and restart the app to see the tools.

Tags

More from Developer Tools