MCP.so
ログイン

Remote MCP Server on Cloudflare

@kondhorn

基本情報

カテゴリ

クラウドとインフラ

トランスポート

stdio

作者

kondhorn

Remote MCP Server on Cloudflare について

概要はまだありません

Remote MCP Server on Cloudflare の設定

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

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

Remote MCP Server on Cloudflare のツール

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

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

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

概要

What is Remote MCP Server on Cloudflare?

This server helps you run a remote MCP (Model Context Protocol) server on Cloudflare Workers, complete with OAuth login. It is designed for developers who want to deploy an MCP server that can be accessed from remote clients like Claude Desktop or the MCP Inspector.

How to use Remote MCP Server on Cloudflare?

Clone the repository, install dependencies (npm install), and run locally with npx nx dev remote-mcp-server. Connect clients by pointing them to the server’s SSE endpoint (http://localhost:8787/sse). For deployment, create a KV namespace (npx wrangler kv namespace create OAUTH_KV), add the namespace ID to wrangler.jsonc, then run npm run deploy. Configure Claude Desktop by editing its config file to include an mcpServers entry using npx mcp-remote with your deployed Workers URL.

Key features of Remote MCP Server on Cloudflare

  • Deployable on Cloudflare Workers with OAuth authentication.
  • Supports SSE transport for MCP communication.
  • Includes a math tool (add) as an example.
  • Works with MCP Inspector for testing and debugging.
  • Connects to remote clients like Claude Desktop via a local proxy.

Use cases of Remote MCP Server on Cloudflare

  • Deploy a secure, remotely accessible MCP server for AI assistants.
  • Prototype and test MCP servers locally before production deployment.
  • Expose custom tools (e.g., math operations) to Claude Desktop over the internet.
  • Enable OAuth-protected API endpoints for MCP interactions.

よくある質問

1

How do I connect Claude Desktop to my local MCP server?

Edit Claude Desktop’s configuration file (`Settings > Developer > Edit Config`) and add an entry for the `math` server with `npx mcp-remote http://localhost:8787/sse` as the command and arguments.

2

How do I deploy to Cloudflare?

First create a KV namespace with `npx wrangler kv namespace create OAUTH_KV`, then add the returned ID to `wrangler.jsonc`. Finally run `npm run deploy` to push the worker to Cloudflare.

3

How do I debug connection issues?

Restart Claude, or try connecting directly on 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`.

4

What transport does the server use?

The server uses Server-Sent Events (SSE) transport. Clients connect to the `/sse` endpoint, as shown in the MCP Inspector and Claude Desktop configuration examples.

コメント

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