MCP.so
ログイン

Remote MCP Server on Cloudflare

@githubpradeep

基本情報

カテゴリ

クラウドとインフラ

トランスポート

stdio

作者

githubpradeep

Remote MCP Server on Cloudflare について

概要はまだありません

Remote MCP Server on Cloudflare の設定

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

{
  "mcpServers": {
    "remote-mcp-server-githubpradeep": {
      "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 template for deploying a Model Context Protocol (MCP) server on Cloudflare Workers with OAuth login. It is designed for developers who want to host remote MCP servers and connect them to clients like Claude Desktop or the MCP Inspector.

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. To connect clients, use npx @modelcontextprotocol/inspector with SSE transport at <url>/sse. Deploy with npx wrangler kv namespace create OAUTH_KV, add the KV namespace ID to wrangler.jsonc, then npm run deploy. Configure Claude Desktop by updating its mcpServers JSON to point to the remote SSE endpoint using mcp-remote.

Key features of Remote MCP Server on Cloudflare

  • Deploy MCP server on Cloudflare Workers with OAuth
  • Supports local development with live reload
  • Connect via MCP Inspector over SSE transport
  • Integrates with Claude Desktop via mcp-remote proxy
  • Uses Cloudflare KV for OAuth token storage
  • Includes mock login for local testing

Use cases of Remote MCP Server on Cloudflare

  • Host a math tool server that Claude can call remotely
  • Run custom MCP tools behind OAuth authentication
  • Prototype and debug MCP servers locally then deploy to production
  • Connect multiple MCP clients to a single cloud-hosted server

よくある質問

1

What runtime or dependencies are required?

Node.js and npm are required for local development. Deployment uses Cloudflare Workers, so a Cloudflare account and Wrangler CLI are needed.

2

How does authentication work?

The server includes OAuth login. Locally, a mock login screen accepts any email and password. On Cloudflare, OAuth flows as configured.

3

How do I connect Claude Desktop to a remote server?

Update Claude's config file with an mcpServers entry using `command: "npx"`, args `["mcp-remote", "https://your-worker.workers.dev/sse"]`, then restart Claude.

4

Where is the OAuth token stored?

It is stored in a Cloudflare KV namespace (configured via `wrangler kv namespace create OAUTH_KV` and adding the ID to `wrangler.jsonc`).

5

What transport does the server use?

The server uses SSE (Server-Sent Events) as the transport protocol, exposed at the `/sse` endpoint.

6

How do I debug connection issues?

Try connecting directly via `npx mcp-remote http://localhost:8787/sse` (or your deployed URL). Restart Claude, or clear `~/.mcp-auth` in rare cases.

コメント

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