MCP.so
ログイン
サーバー

Building a Remote MCP Server on Cloudflare (Without Auth)

@dinasaur404

概要

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

This example lets you deploy a remote Model Context Protocol (MCP) server on Cloudflare Workers that does not require authentication. It is intended for developers who want a quick, publicly accessible MCP server with customizable tools.

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

Deploy via the "Deploy to Workers" button or by running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. After deployment, the server is available at an *.workers.dev/sse URL. Connect clients such as the Cloudflare AI Playground or Claude Desktop (via the mcp-remote proxy) by supplying that SSE endpoint.

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

  • Deployed on Cloudflare Workers with no authentication required.
  • Customizable tools defined in src/index.ts using this.server.tool().
  • Exposes an SSE endpoint (/sse) for remote MCP clients.
  • Can be deployed via a one-click Cloudflare button or the command line.
  • Includes a ready-to-use template from the cloudflare/ai repository.

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

  • Quickly prototype and test custom MCP tools without managing infrastructure.
  • Connect a remote MCP server to Cloudflare AI Playground for interactive tool use.
  • Use your MCP tools from local clients like Claude Desktop via the mcp-remote proxy.

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

How do I deploy the server?

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

Where do I add custom tools?

Inside src/index.ts, within the init() method, use this.server.tool(...) to define each tool.

How do I connect to Cloudflare AI Playground?

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

How do I connect to Claude Desktop?

Install the mcp-remote proxy, then add a configuration entry in Claude Desktop pointing to your SSE endpoint (e.g., http://localhost:8787/sse or the deployed URL).

Does this server require authentication?

No, this example is designed without authentication. The server is publicly accessible.

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