MCP.so
登录
服务器

Building a Remote MCP Server on Cloudflare (Without Auth)

@sergenX1

概览

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

This example deploys a remote MCP server on Cloudflare Workers that does not require authentication. It is intended for developers who want to expose MCP tools over SSE without adding auth infrastructure.

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

Deploy using the “Deploy to Workers” button or via the command line: npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Then customize tools in src/index.ts inside the init() method with this.server.tool(...). Connect to clients like Cloudflare AI Playground or Claude Desktop (via the mcp-remote proxy) using the deployed SSE URL.

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

  • Deploy a remote MCP server without authentication.
  • Runs on Cloudflare Workers global network.
  • Customize tools via this.server.tool(...).
  • Connect to remote MCP clients over SSE.
  • Supports Cloudflare AI Playground as a client.
  • Works with local clients via mcp-remote proxy.

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

  • Prototype MCP tools publicly without managing auth.
  • Expose tools to cloud‑based AI playgrounds.
  • Integrate MCP tools into Claude Desktop via remote proxy.
  • Quickly test MCP servers in a serverless environment.

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

What does this server do vs. a local MCP server?

It runs on Cloudflare Workers, accessible over HTTPS/SSE without authentication, unlike local servers that run on your machine and may require auth.

What are the runtime requirements?

You need a Cloudflare account and Node.js/npm to deploy using the template. The server runs in Cloudflare Workers’ JavaScript runtime.

Where does the MCP server data live?

The server is stateless; no database is mentioned. Tools run in the worker and data is ephemeral unless you add persistence.

Are there any limits?

The README does not describe specific rate or size limits. Since it runs on Workers, Free plan limits (e.g., 100k requests/day) apply.

Which transports or authentication are supported?

Transport: SSE only (over HTTPS). No authentication is configured; the server is intentionally authless.

标签

来自「云与基础设施」的更多内容