MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@tekconnekt

Overview

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

This example lets you deploy a remote MCP (Model Context Protocol) server that does not require authentication on Cloudflare Workers. It is intended for developers who want to run an MCP server on Cloudflare’s edge infrastructure without adding auth logic.

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

Deploy with the “Deploy to Workers” button, which creates a server at 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 to set it up locally. To add custom tools, define them inside the init() method of src/index.ts using this.server.tool(...).

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

  • Zero‑authentication deployment on Cloudflare Workers.
  • Server‑sent events (SSE) endpoint at /sse.
  • Customizable tools defined in TypeScript.
  • Connects directly to Cloudflare AI Playground.
  • Works with local MCP clients via mcp-remote proxy.

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

  • Hosting a public MCP tool server on Cloudflare’s edge.
  • Testing MCP tools from the Cloudflare AI Playground.
  • Connecting the server to Claude Desktop for AI workflows.

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

How do I deploy my own instance?

Click the “Deploy to Workers” button or use the npm create cloudflare command with the provided template.

How can I add custom tools?

Edit src/index.ts and call this.server.tool(...) inside the init() method, following the Cloudflare MCP tools documentation.

Does this server require authentication?

No, authentication is explicitly omitted. The server is deployed without any auth guard.

How do I connect to Claude Desktop?

Use the mcp-remote npm package as a proxy. Configure Claude Desktop’s mcpServers with command: "npx" and arguments pointing to the remote SSE URL.

Where can I test the server quickly?

Connect to it from the Cloudflare AI Playground at https://playground.ai.cloudflare.com/ by entering the deployed SSE URL.

Tags

More from Developer Tools