MCP.so
ログイン

Remote MCP Server on Cloudflare

@UXMcCauley

基本情報

カテゴリ

クラウドとインフラ

トランスポート

stdio

作者

UXMcCauley

Remote MCP Server on Cloudflare について

概要はまだありません

Remote MCP Server on Cloudflare の設定

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

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

Remote MCP Server on Cloudflare のツール

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

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

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

概要

What is Remote MCP Server on Cloudflare?

It is a guide and template for running a remote MCP (Model Context Protocol) server on Cloudflare Workers, complete with OAuth login. The server hosts tools (e.g., a math tool) that can be called by MCP clients like 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 with npx nx dev remote-mcp-server. Connect clients using the SSE endpoint (e.g., http://localhost:8787/sse). Deploy with npx wrangler kv namespace create OAUTH_KV, update wrangler.jsonc, then npm run deploy.

Key features of Remote MCP Server on Cloudflare

  • Runs on Cloudflare Workers for remote access
  • OAuth login flow integrated
  • Example math tool (add) ready to use
  • Uses SSE transport for MCP communication
  • Supports local development with MCP Inspector
  • Can connect to Claude Desktop via mcp-remote proxy

Use cases of Remote MCP Server on Cloudflare

  • Hosting an MCP server on a global edge network
  • Testing MCP tools locally before deployment
  • Connecting Claude Desktop to remote MCP tools
  • Demonstrating OAuth authentication for MCP servers
  • Building and deploying custom MCP tools with Cloudflare Workers

よくある質問

1

What runtime and dependencies are required?

Node.js and npm are needed for local development. A Cloudflare account and Wrangler CLI are required for deployment.

2

How does authentication work?

The server uses OAuth login. When connecting via MCP Inspector or Claude Desktop, a browser window opens for user/password login (mock login in local development).

3

What transport protocol does the server use?

It uses SSE (Server-Sent Events) as the MCP transport, accessed via the `/sse` endpoint.

4

How can I debug connection issues?

Run `npx mcp-remote http://localhost:8787/sse` to test direct CLI connection. Restart Claude or clear `~/.mcp-auth` if needed.

5

Where are OAuth data stored?

OAuth tokens are stored in a Cloudflare KV namespace (`OAUTH_KV`), created during deployment setup.

コメント

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