MCP.so
ログイン
サーバー

Building a Remote MCP Server on Cloudflare (Without Auth)

@IlanKalendarov

概要

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

This server lets you deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers without requiring authentication. It is intended for developers who need a publicly accessible MCP endpoint for AI tools and model interactions, and it can be customized with your own tool definitions.

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

Deploy via the Cloudflare Workers button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools in src/index.ts inside the init() method using this.server.tool(...). Connect to the server from the Cloudflare AI Playground by entering its SSE URL, or from Claude Desktop by configuring the mcp-remote proxy in Claude’s settings.

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

  • No authentication required for public access
  • Deploy on Cloudflare Workers with a single click
  • Uses SSE (Server-Sent Events) transport
  • Customizable MCP tools via code
  • Connects to Cloudflare AI Playground and Claude Desktop

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

  • Quickly prototype and test MCP tools without auth overhead
  • Serve MCP tools to remote AI clients like Cloudflare AI Playground
  • Integrate MCP capabilities into Claude Desktop using the mcp-remote proxy
  • Deploy a demonstration or internal MCP server for your team

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

How do I deploy this MCP server?

Click the “Deploy to Workers” button in the README or run npm create cloudflare with the provided template. You must have a Cloudflare account and optionally npm installed.

How do I add custom tools?

Inside src/index.ts, use this.server.tool(name, schema, handler) in the init() method. The server will serve those tools over SSE.

How do I connect from Cloudflare AI Playground?

Go to https://playground.ai.cloudflare.com/, enter your deployed SSE URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse), and start using your tools.

How do I connect from Claude Desktop?

Use the mcp-remote npm proxy. In Claude Desktop’s settings, add an mcpServers entry with command: "npx" and args: ["mcp-remote", "http://localhost:8787/sse"] (or your remote URL). Restart Claude to see the tools.

What runtime or dependencies are needed?

A Cloudflare Workers account and Node.js/npm for local development. The server itself runs on Cloudflare’s edge runtime; no other dependencies are listed in the README.

タグ

「開発者ツール」の他のコンテンツ