MCP.so
ログイン

Building a Remote MCP Server on Cloudflare (Without Auth)

@kbruck97

基本情報

カテゴリ

開発者ツール

トランスポート

stdio

作者

kbruck97

Building a Remote MCP Server on Cloudflare について

概要はまだありません

Building a Remote MCP Server on Cloudflare の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "calculator": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:8787/sse"
      ]
    }
  }
}

Building a Remote MCP Server on Cloudflare のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

上のボタンで一時的なサンドボックスでこのサーバーを実行し、ツール一覧を取得できます。

概要

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

Building a Remote MCP Server on Cloudflare (Without Auth) is a template for deploying a remote Model Context Protocol (MCP) server on Cloudflare Workers that does not require authentication. It is intended for developers who want to expose MCP tools via SSE from a globally distributed, serverless environment.

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 from the command line. Customize tools by editing the init() method in src/index.ts using this.server.tool(...). Connect to clients like Cloudflare AI Playground (by entering the deployed URL) or Claude Desktop (via the mcp-remote proxy and a JSON configuration).

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

  • Deploys a remote MCP server on Cloudflare Workers
  • No authentication required for incoming connections
  • Uses Server-Sent Events (SSE) transport
  • One-click deploy via the Workers button
  • Customizable by adding tools in the init() method
  • Compatible with Cloudflare AI Playground and Claude Desktop (via proxy)

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

  • Exposing custom MCP tools over the public internet without managing authentication
  • Integrating with Cloudflare AI Playground for interactive experimentation
  • Connecting remote MCP tools to local desktop clients like Claude Desktop
  • Prototyping or internal tooling where auth is not yet needed
  • Learning how to build and deploy MCP servers on the Workers platform

よくある質問

1

What exactly does this server do?

It provides a remote MCP server that runs on Cloudflare Workers and communicates via SSE. You define tools inside `src/index.ts`, and they become accessible to any MCP client that reaches the deployed URL.

2

How do I deploy this server?

Click the “Deploy to Workers” button in the README, or use `npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless` locally. After deployment, the server is available at a URL like `remote-mcp-server-authless.<your-account>.workers.dev/sse`.

3

How can I connect it to Claude Desktop?

Install the `mcp-remote` npm package, then add a JSON configuration entry in Claude Desktop pointing to your server’s SSE URL: `npx mcp-remote <your-url>/sse`. Restart Claude to see the tools.

4

Does this server support authentication?

No, the server intentionally does not require authentication. It is meant for scenarios where auth is not needed, such as local development or deployments behind other authentication layers.

5

What transport protocol does it use?

The server uses Server-Sent Events (SSE) as the transport protocol, accessible at the `/sse` endpoint of the deployed Workers URL.

コメント

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