Remote MCP Server on Cloudflare
Cloudflare上にリモートMCPサーバーを構築する(認証なし)
この例では、Cloudflare Workers上で認証を必要としないステートレスなリモートMCPサーバーをデプロイできます。通常のツール呼び出しではレガシークライアントとの互換性を維持しつつ、MCP 2026-07-28仕様を実装しています。
はじめに
これにより、MCPサーバーが次のようなURLにデプロイされます: remote-mcp-server-authless.<your-account>.workers.dev/mcp
または、以下のコマンドラインを使用して、ローカルマシン上にリモートMCPサーバーを作成することもできます:
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authlessRelated MCP server: remote-mcp-server-authless
MCPサーバーのカスタマイズ
MCPサーバーに独自のツールを追加するには、src/index.ts内のcreateServer()関数で作成されたMcpServerに、server.registerTool(...)を使用して各ツールを登録します。
Cloudflare AI Playgroundに接続する
リモートMCPクライアントであるCloudflare AI PlaygroundからMCPサーバーに接続できます:
デプロイしたMCPサーバーのURL(
remote-mcp-server-authless.<your-account>.workers.dev/mcp)を入力しますプレイグラウンドから直接MCPツールを使用できるようになります!
Claude DesktopをMCPサーバーに接続する
mcp-remoteプロキシを使用して、ローカルのMCPクライアントからリモートMCPサーバーに接続することもできます。
Claude DesktopからMCPサーバーに接続するには、Anthropicのクイックスタートに従い、Claude Desktop内で設定 > 開発者 > 設定の編集に進みます。
次の設定で更新します:
{
"mcpServers": {
"calculator": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/mcp" // or remote-mcp-server-authless.your-account.workers.dev/mcp
]
}
}
}Claudeを再起動すると、ツールが利用可能になるはずです。
This server cannot be deployed
Related MCP Connectors
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
Cloudflare Workers MCP server: agent-workflow-engine
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Cloudflare Workers MCP server: ai-model-router
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceDeploys a stateless, authentication-free remote MCP server on Cloudflare Workers, enabling custom tool registration and seamless connection from clients like Cloudflare AI Playground or Claude Desktop via mcp-remote.-
- FlicenseNot gradedqualityBmaintenanceDeploys a stateless remote MCP server on Cloudflare Workers without authentication, enabling MCP tool calls from clients like Claude Desktop and Cloudflare AI Playground.-
- FlicenseNot gradedqualityCmaintenanceDeploys a stateless remote MCP server on Cloudflare Workers without authentication, allowing custom tools to be registered and used from clients like Claude Desktop and the Cloudflare AI Playground.-
- FlicenseNot gradedqualityCmaintenanceDeploys a stateless remote MCP server on Cloudflare Workers without authentication. Enables tool use from clients like Claude Desktop and AI Playground.-