mcpField
R
Remote MCP Server on Cloudflare

Remote MCP Server on Cloudflare

リモート
github.com/bestKクラウド・インフラ182 週間前に更新
リポジトリ

Remote MCP Server on Cloudflare について

Cloudflare 向けのリモート MCP サーバーの例です。README にはアクセスリンクと Wrangler によるデプロイコマンドがありますが、ツールやデータ機能の説明はありません。

主な機能

  1. 01Cloudflare デプロイ例
  2. 02MCP 設定スニペット

活用シーン

  1. 01Wrangler によるサーバーデプロイの参照
  2. 02クライアントでの SSE サーバー URL 設定

MCP 対応

リモート MCP サーバーです。設定例では http://localhost:8787/sse を指定しています。

設定

リモートサーバーはインストール不要です。クライアントを選んで設定をコピーするか、ワンクリックで導入できます。

エンドポイントhttp://localhost:8787/sse
インストールコマンドをコピー
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

コマンドはターミナルで実行し、JSON は各クライアントの MCP 設定に貼り付けて再起動します。認可が必要なサーバーは初回接続時にログインを求めます。

ツール

詳細

Cloudflare 上的リモート MCP サーバー

README の画像

このリンクからアクセスできます:https://note.linkof.link/13a9p7.html

mcp.json

{
    "mcpServers": {
        "tiny-server": {
            "url": "http://localhost:8787/sse"
        }
    }
}

Cloudflare にデプロイする

tiny-ser-mcp-server  🍣 master via  v20.17.0 🐏 26GiB/32GiB | 16GiB/19GiB  took 12s
🕙 17:50:29 ➜ npm run deploy

> [email protected] deploy
> wrangler deploy


 ⛅️ wrangler 4.6.0
------------------

🌀 Building list of assets...
🌀 Starting asset upload...
No files to upload. Proceeding with deployment...
Total Upload: 432.56 KiB / gzip: 83.32 KiB
Your worker has access to the following bindings:
- Durable Objects:
  - MCP_OBJECT: MyMCP
- Assets:
  - Binding: ASSETS

✘ [ERROR] A request to the Cloudflare API (/accounts/xxx/workers/scripts/tiny-ser-mcp-server) failed.

  In order to use Durable Objects, you must switch to a paid plan at
  https://dash.cloudflare.com/xxx/workers/plans. [code: 10084]

  If you think this is a bug, please open an issue at:
  https://github.com/cloudflare/workers-sdk/issues/new/choose


コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。