MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@irvinebroque

Overview

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

This example allows you to deploy a remote MCP server that doesn't require authentication on Cloudflare Workers. It is intended for developers who want a quick, no-auth MCP server integrated with Cloudflare's serverless platform.

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

Deploy using the "Deploy to Workers" button, which creates a URL like remote-mcp-server-authless.<your-account>.workers.dev/sse. Alternatively, run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools inside the init() method of src/index.ts using this.server.tool(...). Connect remote clients via SSE—Cloudflare AI Playground accepts the deployed URL directly; for local clients like Claude Desktop, use the mcp-remote proxy.

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

  • Zero setup authentication for rapid prototyping
  • Deployable to Cloudflare Workers with one click or CLI
  • Supports SSE (Server-Sent Events) transport
  • Easily add custom tools in src/index.ts
  • Works with Cloudflare AI Playground as a remote MCP client
  • Can integrate with local MCP clients via mcp-remote proxy

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

  • Quickly test MCP tools in a serverless environment
  • Provide AI agents with remote tool access without managing auth
  • Build and demo custom MCP tools on Cloudflare's edge network
  • Connect Cloudflare Workers tools to desktop AI applications like Claude Desktop

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

What does this server do differently from other MCP servers?

It is optimized for Cloudflare Workers and removes all authentication, making it easy to deploy and test without additional configuration.

How do I customize the tools on this MCP server?

Edit src/index.ts and define each tool inside the init() method using this.server.tool(...).

How do I connect Claude Desktop to this remote MCP server?

Use the mcp-remote proxy (npx mcp-remote <url>) in Claude's MCP configuration. Replace the URL with your deployed worker's SSE endpoint.

Is authentication required for this MCP server?

No, this server is designed without authentication. It uses an unauthenticated SSE endpoint.

What are the runtime dependencies for this server?

It runs on Cloudflare Workers (JavaScript/TypeScript). Node.js and npm are needed for local development and deployment via the CLI.

Tags

More from Developer Tools