MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@chunxchun

Overview

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

This example demonstrates deploying a remote Model Context Protocol (MCP) server on Cloudflare Workers that does not require authentication. It is intended for developers who want to expose MCP tools to remote clients without an auth layer.

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 defining them inside the init() method of src/index.ts using this.server.tool(...). Connect clients such as Cloudflare AI Playground or Claude Desktop (via the mcp-remote proxy).

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

  • Deploys a remote MCP server on Cloudflare Workers
  • No authentication required for connections
  • Easily add custom MCP tools via code
  • Connects directly to Cloudflare AI Playground
  • Works with Claude Desktop via mcp-remote proxy

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

  • Expose MCP tools to remote clients without authentication
  • Rapidly prototype and test MCP server deployments
  • Integrate with Cloudflare AI Playground for interactive use
  • Connect MCP tools to Claude Desktop for AI workflows

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

How do I deploy the server?

Click the "Deploy to Workers" button or use npm create cloudflare@latest with the given template.

How do I add custom 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 directly.

How do I connect to Claude Desktop?

Use the mcp-remote proxy by updating Claude Desktop’s config with the command npx mcp-remote <your-server-url>/sse.

Are there any runtime dependencies?

A Cloudflare account and Node.js (for local development) are required. The server runs on Cloudflare Workers.

Tags

More from Developer Tools