Integrations
Enables deployment of the MCP server on Cloudflare Workers infrastructure, providing a serverless environment for hosting the MCP service with OAuth authentication capabilities.
Cloudflare上のリモートMCPサーバー
OAuth ログインを備えた Cloudflare Workers でリモート MCP サーバーを起動して実行してみましょう。
ローカルで開発する
ブラウザでhttp://localhost:8787/
を開くことができるはずです。
MCPインスペクターをサーバーに接続します
新しい MCP API を調べるには、 MCP Inspectorを使用できます。
npx @modelcontextprotocol/inspector
で起動します。- インスペクター内で、トランスポート タイプを
SSE
に切り替え、接続する MCP サーバーの URL としてhttp://localhost:8787/sse
を入力します。 - ベアラートークンを追加し、「接続」をクリックします
- 「リストツール」をクリック
- 「getToken」ツールを実行すると、インスペクタで設定したAuthorizationヘッダーが返されます。
Claude DesktopをローカルMCPサーバーに接続します
Cloudflareにデプロイする
npm run deploy
リモート MCP クライアントから新しく展開したリモート MCP サーバーを呼び出す
上記の「ローカルで開発する」と同じように、MCP インスペクターを実行します。
npx @modelcontextprotocol/inspector@latest
次に、接続先の MCP サーバーの URL として、インスペクターにワーカーのworkers.dev
URL (例: worker-name.account-name.workers.dev/sse
) を入力し、「接続」をクリックします。
リモートMCPクライアントからMCPサーバーに接続できました。上記のようにベアラートークンを渡すことができます。
デバッグ
何か問題が発生した場合は、Claude を再起動するか、次のコマンドを使用してコマンド ラインで MCP サーバーに直接接続してみると役立つことがあります。
まれに、 ~/.mcp-auth
に追加されたファイルを消去すると解決する場合があります。
You must be authenticated.
Tools
OAuth ログインを使用して Cloudflare Workers 上で実行されるモデル コンテキスト プロトコル サーバー。Claude Desktop などのクライアントが接続して、ツール拡張 AI インタラクションを行うことができます。
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that runs on Cloudflare Workers with OAuth login, allowing AI assistants like Claude to execute tools remotely through HTTP connections.Last updated -TypeScript
- -securityFlicense-qualityA Model Context Protocol server implementation that runs on Cloudflare Workers with OAuth login, allowing Claude and other AI models to access tools via the MCP standard.Last updated -TypeScript
- -securityFlicense-qualityA Model Context Protocol server for Cloudflare Workers that integrates with Claude AI, enabling tool usage through OAuth login and SSE connections.Last updated -14TypeScript
- -securityFlicense-qualityA Model Context Protocol server implementation that runs on Cloudflare Workers, providing tool integration for AI assistants like Claude with OAuth login capability.Last updated -14TypeScript