MCP.so
登录
服务器

Building a Remote MCP Server on Cloudflare (Without Auth)

@pathikpa

概览

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

A deployable template for a remote Model Context Protocol (MCP) server that runs on Cloudflare Workers without requiring authentication. It is intended for developers who want to expose MCP tools over the internet without user login.

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

Deploy by clicking the "Deploy to Workers" button or by running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless locally. Customize by adding tools inside the init() method of src/index.ts using this.server.tool(...). Connect to remote MCP clients like Cloudflare AI Playground (enter the SSE URL) or Claude Desktop (via the mcp-remote proxy).

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

  • Deploy on Cloudflare Workers with zero authentication setup
  • Server communicates via SSE (Server-Sent Events)
  • Easily add custom MCP tools in TypeScript
  • Connect from remote MCP clients using the mcp-remote proxy
  • Works with Cloudflare AI Playground as a remote client
  • One-click deploy from GitHub template

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

  • Expose MCP tools to the internet for testing without auth friction
  • Build a public AI assistant that uses MCP tools from a Cloudflare backend
  • Integrate MCP servers with Claude Desktop over a remote connection
  • Rapidly prototype and share MCP tools with teammates via a live URL

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

What does this server do exactly?

It provides a ready-to-deploy MCP server on Cloudflare Workers that you can customize with your own tools and access remotely without authentication.

How do I deploy it?

Click the "Deploy to Workers" button in the README, or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless from the command line.

What runtime or dependencies are required?

The server runs on Cloudflare Workers (JavaScript/TypeScript). For local development you need Node.js and npm. To connect from local clients like Claude Desktop, you need the mcp-remote proxy package (npx mcp-remote ...).

How do I add my own tools?

Edit src/index.ts and define each tool inside the init() method using this.server.tool(...) – follow the Cloudflare MCP tools documentation linked in the README.

Where does the server's data live and what transport does it use?

The server code runs on Cloudflare’s global network. It uses SSE (Server-Sent Events) as the transport protocol, with the endpoint at <your-url>/sse. No authentication is configured.

标签

来自「开发工具」的更多内容