MCP.so
ログイン
サーバー

Building a Remote MCP Server on Cloudflare (Without Auth)

@lightshareteam

概要

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

This example allows you to deploy a remote MCP server on Cloudflare Workers without requiring authentication. It is intended for developers who want to expose MCP tools over SSE (Server‑Sent Events) to remote clients, with a simple deployment and no built‑in auth layer.

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

Deploy using the “Deploy to Workers” button or the CLI command npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools by defining each tool inside the init() method of src/index.ts using this.server.tool(...). Connect to the server from the Cloudflare AI Playground by entering the deployed SSE URL, or from Claude Desktop by using the mcp-remote proxy with the same URL in the MCP configuration.

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

  • Deploy a remote MCP server without authentication.
  • Uses SSE (Server‑Sent Events) transport.
  • Customize tools via the init() method.
  • Connect to Cloudflare AI Playground directly.
  • Connect to local MCP clients via the mcp-remote proxy.

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

  • Expose MCP tools publicly without needing authentication.
  • Quickly prototype and test custom MCP tools on a remote endpoint.
  • Integrate MCP tools into Cloudflare’s AI Playground for interactive experimentation.
  • Use the server from desktop MCP clients like Claude Desktop via a local proxy.

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

What does “without auth” mean?

It means the deployed MCP server does not require any authentication to connect—anyone with the SSE URL can interact with its tools.

How do I deploy the server?

Use the “Deploy to Workers” button in the README, or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless in your terminal.

How do I add custom tools?

Inside src/index.ts, define each tool in the init() method using this.server.tool(name, schema, handler). See the Cloudflare tools documentation for details.

How do I connect to Cloudflare AI Playground?

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

How do I connect Claude Desktop to this server?

Use the mcp-remote npm package as a proxy. In Claude Desktop’s MCP configuration, set command to npx, args to ["mcp-remote", "<your-sse-url>"], restart Claude, and the tools will appear.

タグ

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