MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@parisafarivashh

Overview

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

This example deploys a remote Model Context Protocol (MCP) server on Cloudflare Workers without requiring authentication. It is intended for developers who want a lightweight, quickly deployable MCP server that can be accessed by remote MCP clients.

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

Deploy using 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 the init() method in src/index.ts with this.server.tool(...). Connect to the server from the Cloudflare AI Playground or local clients like Claude Desktop via the mcp-remote proxy.

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

  • Deployable with one click to Cloudflare Workers
  • No authentication required for client connections
  • Custom tools defined via this.server.tool() in JavaScript/TypeScript
  • Works with Cloudflare AI Playground as a remote MCP client
  • Compatible with Claude Desktop through mcp-remote proxy
  • Uses SSE transport for server-sent events

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

  • Quickly prototype an MCP server accessible from any MCP client
  • Integrate MCP tools with the Cloudflare AI Playground
  • Connect remote MCP tools to local desktop applications like Claude Desktop
  • Deploy a serverless MCP endpoint with minimal setup and no auth overhead

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

How do I deploy this server?

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

What URL will my server have?

After deployment, the server will be available at https://remote-mcp-server-authless.<your-account>.workers.dev/sse.

How do I add custom tools to the server?

Define each tool inside the init() method of src/index.ts using this.server.tool(...).

Can I connect this server to Claude Desktop?

Yes, use the mcp-remote proxy and configure the server URL in Claude Desktop’s claude_desktop_config.json.

Does this server require authentication?

No, this MCP server is intentionally deployed without authentication for simplicity.

Tags

More from Developer Tools