MCP.so
ログイン

Remote MCP Server on Cloudflare

@nevikashah

Remote MCP Server on Cloudflare について

概要はまだありません

設定

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

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

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

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

FAQ from Remote MCP Server on Cloudflare

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.

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.

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.

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.

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.

よくある質問

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.

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`.

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`.

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`.

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.

コメント

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