MCP.so
ログイン

Remote MCP Server on Cloudflare

@nevikashah

基本情報

カテゴリ

クラウドとインフラ

トランスポート

stdio

作者

nevikashah

Remote MCP Server on Cloudflare について

概要はまだありません

Remote MCP Server on Cloudflare の設定

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

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

Remote MCP Server on Cloudflare のツール

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

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

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

概要

What is Remote MCP Server on Cloudflare?

A project that shows how to deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers with OAuth login. It includes a math tool example and is intended for developers wanting to host MCP servers remotely.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies with npm install, and run locally with npm run dev. Deploy to Cloudflare by creating a KV namespace, adding the ID to wrangler.jsonc, and running npm run deploy. Connect clients like the MCP Inspector or Claude Desktop by pointing them to the SSE endpoint (e.g., http://localhost:8787/sse or the deployed workers.dev URL).

Key features of Remote MCP Server on Cloudflare

  • Remote MCP server hosted on Cloudflare Workers with OAuth login
  • Local development workflow with npm run dev
  • Connect via MCP Inspector using SSE transport
  • Connect Claude Desktop via the mcp-remote proxy
  • Deploy to Cloudflare with npm run deploy
  • Includes an example math tool

Use cases of Remote MCP Server on Cloudflare

  • Deploy a remote MCP server accessible over the internet
  • Use Claude Desktop with a remote MCP server requiring OAuth login
  • Develop and test MCP tools locally before deploying to production
  • Integrate MCP capabilities into Cloudflare Workers

よくある質問

1

How do I connect the MCP Inspector?

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

2

How do I connect Claude Desktop to the remote server?

Edit your Claude Desktop configuration file to add an entry using `mcp-remote` pointing to your server's SSE URL, e.g., `https://worker-name.account-name.workers.dev/sse`.

3

How do I deploy the server to Cloudflare?

Run `npx wrangler@latest kv namespace create remote-mcp-server-oauth-kv`, add the returned KV namespace ID to `wrangler.jsonc`, then run `npm run deploy`.

4

How can I debug connectivity issues?

Restart Claude, or try connecting directly from the command line with `npx mcp-remote http://localhost:8787/sse`. In rare cases, clear the files in `~/.mcp-auth` with `rm -rf ~/.mcp-auth`.

5

What dependencies are required?

Node.js, npm, npx, a Cloudflare account, and the Wrangler CLI. For local development, the project clones from the `cloudflare/ai` repository.

コメント

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