MCP.so
Sign In
Servers

Building a Remote MCP Server on Cloudflare (Without Auth)

@simonberner

Demo of a remote deployed MCP Server

Overview

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

This is a template for deploying a remote MCP server on Cloudflare Workers that does not require authentication. It allows users to add custom tools and connect clients such as Cloudflare AI Playground or local MCP clients via an SSE endpoint.

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

Deploy by clicking the "Deploy to Workers" button or running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools by editing src/index.ts using this.server.tool(...). Connect to the server from Cloudflare AI Playground or configure a local client using the mcp-remote proxy.

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

  • Deploy without authentication on Cloudflare Workers.
  • Server uses SSE transport at <account>.workers.dev/sse.
  • Tools defined with zod schemas inside init() method.
  • Connect directly from Cloudflare AI Playground.
  • Use mcp-remote proxy to connect from local stdio clients.
  • One‑click deployment via Workers button.

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

  • Expose AI tools from a Cloudflare Worker as a remote MCP server.
  • Test MCP tools interactively in Cloudflare AI Playground without a local client.
  • Bridge local MCP clients that only support stdio to a remote SSE server.
  • Quickly prototype and share MCP servers without worrying about authentication.

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

How do I deploy this MCP server?

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

How do I add custom tools?

Define each tool inside the init() method of src/index.ts using this.server.tool(...) with zod schemas for argument validation.

How can I connect from Cloudflare AI Playground?

Go to https://playground.ai.cloudflare.com/ and enter the deployed server URL such as remote-mcp-server-authless.<your-account>.workers.dev/sse.

How can I connect a local MCP client to this remote server?

Configure your client to use npx -y mcp-remote with the SSE URL, or use the mcp-remote proxy if the client only supports stdio transport.

Does this server require authentication?

No, the server is explicitly built without authentication as stated in the title.

More from Developer Tools