MCP.so
ログイン

Remote MCP Server on Cloudflare

@heiyhia

基本情報

カテゴリ

クラウドとインフラ

トランスポート

stdio

作者

heiyhia

Remote MCP Server on Cloudflare について

概要はまだありません

Remote MCP Server on Cloudflare の設定

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

{
  "mcpServers": {
    "remote-mcp-server-heiyhia": {
      "command": "npx",
      "args": [
        "nx",
        "dev",
        "remote-mcp-server"
      ]
    }
  }
}

Remote MCP Server on Cloudflare のツール

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

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

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

概要

What is Remote MCP Server on Cloudflare?

A remote MCP server that runs on Cloudflare Workers with integrated OAuth login. It allows developers to serve MCP tools over the internet and authenticate users before tool access.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies, and run locally with npx nx dev remote-mcp-server. For remote access, deploy to Cloudflare using npx wrangler kv namespace create OAUTH_KV and npm run deploy. Connect clients like the MCP Inspector or Claude Desktop via the SSE endpoint (e.g., http://localhost:8787/sse or your workers.dev URL). Use a local proxy (npx mcp-remote) when connecting from Claude Desktop.

Key features of Remote MCP Server on Cloudflare

  • Runs on Cloudflare Workers for global, serverless deployment.
  • Includes OAuth-based login for secure access.
  • Supports SSE transport for MCP communication.
  • Works with MCP Inspector and Claude Desktop.
  • Provides a local development environment.
  • Uses Cloudflare KV for OAuth state storage.

Use cases of Remote MCP Server on Cloudflare

  • Hosting custom MCP tools accessible from any internet-connected MCP client.
  • Adding authentication to an MCP server without building auth from scratch.
  • Rapidly prototyping and deploying MCP tools using Cloudflare's serverless platform.
  • Connecting Claude Desktop to a remote MCP server with secure login.

よくある質問

1

What do I need to run the server locally?

Clone the `cloudflare/ai` repository, run `npm install`, then `npx nx dev remote-mcp-server`. The server will be available at `http://localhost:8787/`.

2

How do I connect Claude Desktop to the server?

Configure Claude Desktop's MCP settings to point to a local proxy: set the `mcpServers` entry with command `npx`, arguments `["mcp-remote", "http://localhost:8787/sse"]` (or the remote URL). Restart Claude and a browser window will open for login.

3

How do I deploy the server to Cloudflare?

Create a KV namespace with `npx wrangler kv namespace create OAUTH_KV`, copy its ID into `wrangler.jsonc`, then run `npm run deploy`. Your server will be live at a `workers.dev` URL.

4

How can I debug connection issues?

Restart Claude, or test the server directly with `npx mcp-remote http://localhost:8787/sse`. In rare cases, delete the `~/.mcp-auth` folder.

5

How do I connect a remote MCP client (like the Inspector)?

Use the MCP Inspector, set Transport Type to SSE, and enter your deployed `workers.dev` URL appended with `/sse` (e.g., `worker-name.account-name.workers.dev/sse`). Click Connect; you will be redirected to an OAuth login page.

コメント

「クラウドとインフラ」の他のコンテンツ