MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@SanthoshSetty

Overview

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

This example shows how to deploy a remote MCP server on Cloudflare Workers that does not require authentication. It is intended for developers who want to create and host MCP servers that can be accessed publicly without manual authentication.

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

Deploy the server by clicking the "Deploy to Workers" button or by running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless in your terminal. Customize tools inside the init() method of src/index.ts using this.server.tool(...). Connect to the server from Cloudflare AI Playground by entering your deployed SSE URL (remote-mcp-server-authless.<your-account>.workers.dev/sse), or from Claude Desktop using the mcp-remote proxy.

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

  • Deploy a remote MCP server without authentication
  • SSE endpoint automatically created
  • Customizable tools via this.server.tool()
  • Integrates with Cloudflare AI Playground
  • Works with local clients via mcp-remote proxy

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

  • Deploy a public MCP server for external clients without auth
  • Test and prototype MCP tools in Cloudflare AI Playground
  • Connect custom MCP tools to Claude Desktop using a local proxy

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

How do I deploy this server?

You can deploy instantly with the "Deploy to Workers" button or locally by running the npm create cloudflare command with the provided 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 start using your tools.

How do I connect Claude Desktop to this server?

Use the mcp-remote proxy by updating Claude Desktop's configuration with "command": "npx" and "args": ["mcp-remote", "<your-server-url>/sse"], then restart Claude.

Does this server require authentication?

No, this example intentionally deploys an MCP server without any authentication.

Tags

More from Developer Tools