MCP.so
登录
服务器

Building a Remote MCP Server on Cloudflare (Without Auth)

@Maury1329

概览

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

This example allows you to deploy a remote MCP server on Cloudflare Workers that does not require authentication. It is intended for developers who want to host Model Context Protocol (MCP) tools remotely without auth and connect them to MCP clients like Cloudflare AI Playground or Claude Desktop.

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

Deploy by clicking the "Deploy to Workers" button or using the command 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 clients via the deployed SSE endpoint (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse). For Claude Desktop, use the mcp-remote proxy in its config.

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

  • Deploy a remote MCP server on Cloudflare Workers with no authentication required.
  • Server exposes tools via an SSE endpoint.
  • Customizable tools by adding them in the init() method of src/index.ts.
  • Supports connection from Cloudflare AI Playground and local clients via proxy.
  • One-click deployment with "Deploy to Workers" button.

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

  • Deploy a public MCP server for testing or demo purposes without setting up authentication.
  • Connect MCP tools to Cloudflare AI Playground for remote experimentation.
  • Use with Claude Desktop via the mcp-remote proxy for local development.

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

How do I deploy the server?

Click 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 MCP tools?

Edit src/index.ts and define each tool inside the init() method using this.server.tool(...).

How do I connect Cloudflare AI Playground to the server?

Go to https://playground.ai.cloudflare.com/, enter your deployed SSE URL, and use the tools directly.

How do I connect Claude Desktop to the server?

Install mcp-remote and add a configuration entry in Claude Desktop's settings with the command npx mcp-remote and the SSE URL of your server.

What runtime or dependencies are required?

You need a Cloudflare account and Node.js for local development. The server runs on Cloudflare Workers; no additional authentication service is required.

标签

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