MCP.so
ログイン

Remote MCP Server on Cloudflare

@Rev4nchist

基本情報

カテゴリ

クラウドとインフラ

トランスポート

stdio

作者

Rev4nchist

Remote MCP Server on Cloudflare について

概要はまだありません

Remote MCP Server on Cloudflare の設定

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

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

Remote MCP Server on Cloudflare のツール

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

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

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

概要

What is Remote MCP Server on Cloudflare?

Remote MCP Server on Cloudflare is a reference implementation that deploys a Model Context Protocol (MCP) server on Cloudflare Workers with OAuth login. It demonstrates how to run a remote MCP server that communicates over SSE (Server-Sent Events) and can be connected to MCP clients such as the MCP Inspector or Claude Desktop.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies with npm install, and run locally using npx nx dev remote-mcp-server. Connect via the MCP Inspector by selecting SSE transport and entering http://localhost:8787/sse. For Claude Desktop, configure mcpServers with the mcp-remote command pointing to the SSE URL. Deploy to Cloudflare with npm run deploy after setting up an OAuth KV namespace in wrangler.jsonc.

Key features of Remote MCP Server on Cloudflare

  • Runs on Cloudflare Workers for global edge deployment.
  • Includes OAuth-based login flow for authentication.
  • Uses SSE (Server-Sent Events) transport for MCP communication.
  • Provides example tools like math (add) for demonstration.
  • Can be developed locally and then deployed remotely.

Use cases of Remote MCP Server on Cloudflare

  • Developing and testing a remote MCP server locally with the MCP Inspector.
  • Connecting Claude Desktop to a locally running MCP server via a proxy.
  • Deploying an OAuth-protected MCP server on Cloudflare Workers for production use.
  • Extending the server with custom tools for various MCP clients.

よくある質問

1

How do I connect the MCP Inspector?

Start the inspector with `npx @modelcontextprotocol/inspector`, set Transport Type to SSE, enter `http://localhost:8787/sse` (or your remote URL), and log in with any email/password.

2

How do I connect Claude Desktop?

Edit Claude Desktop’s config file and add an entry using `mcp-remote` with the command `npx` and args `["mcp-remote", "http://localhost:8787/sse"]` (or your remote URL). Restart Claude; 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`, add the namespace ID to `wrangler.jsonc`, then run `npm run deploy`.

4

How can I debug connection issues?

Try restarting Claude, or connect directly via `npx mcp-remote http://localhost:8787/sse`. If needed, clear cached auth files with `rm -rf ~/.mcp-auth`.

5

What transport type does the server use?

The server communicates over SSE (Server-Sent Events). Clients connect to the `/sse` endpoint of the server URL.

コメント

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