MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@pokle

Overview

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

This example lets you deploy a remote Model Context Protocol (MCP) server that requires no authentication on Cloudflare Workers. It is intended for developers who want to quickly spin up MCP tools and connect them to 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 with npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. After deployment, customize tools in src/index.ts inside the init() method using this.server.tool(...). Connect clients by entering the SSE URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse) or by using the mcp-remote proxy for local clients like Claude Desktop.

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

  • Deploy a remote MCP server without authentication.
  • Built on Cloudflare Workers for global edge distribution.
  • Customize tools by editing src/index.ts.
  • Connect directly from Cloudflare AI Playground (remote MCP client).
  • Connect local MCP clients using the mcp-remote proxy.

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

  • Quickly prototyping MCP tools and exposing them via a public URL.
  • Integrating MCP tools with Cloudflare’s AI Playground for testing.
  • Using custom MCP tools in Claude Desktop via the mcp-remote proxy.
  • Building a serverless, auto-scaling MCP endpoint without managing authentication.

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

How do I deploy this MCP server?

Click the “Deploy to Workers” button in the README, or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless in your terminal.

How do I add my own tools to the server?

Inside src/index.ts, define each tool inside the init() method 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 directly.

How do I connect to Claude Desktop?

Install the mcp-remote npm package, then configure Claude Desktop’s MCP settings with npx mcp-remote <your-sse-url>. Restart Claude to see the tools.

Does this server require authentication?

No, this example explicitly deploys a remote MCP server without authentication.

Tags

More from Developer Tools