Remote MCP Server
Cloudflare上のリモートMCPサーバー
OAuth ログインを備えた Cloudflare Workers でリモート MCP サーバーを起動して実行してみましょう。
ローカルで開発する
# clone the repository
git clone git@github.com:cloudflare/ai.git
# install dependencies
cd ai
npm install
# run locally
npx nx dev remote-mcp-serverブラウザでhttp://localhost:8787/を開くことができるはずです。
Related MCP server: Remote MCP Server
MCPインスペクターをサーバーに接続します
新しい MCP API を調べるには、 MCP Inspectorを使用できます。
npx @modelcontextprotocol/inspectorで起動します。インスペクタ内で、トランスポートタイプを
SSEに切り替え、接続するMCPサーバーのURLとしてxを入力し、「接続」をクリックします。(模擬)ユーザー名/パスワードログイン画面が表示されます。任意のメールアドレスとパスワードを入力してログインしてください。
MCP インスペクターにリダイレクトされ、定義されたツールを一覧表示して呼び出すことができるようになります。
Claude DesktopをローカルMCPサーバーに接続します
MCP インスペクターは素晴らしいですが、これを Claude に接続したいと思っています。Anthropicのクイックスタートに従い、Claude Desktop 内で「設定」>「開発」>「構成の編集」に移動して構成ファイルを見つけてください。
テキスト エディターでファイルを開き、次の構成に置き換えます。
{
"mcpServers": {
"math": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/sse"
]
}
}
}これにより、ローカルプロキシが実行され、ClaudeがHTTP経由でMCPサーバーと通信できるようになります。
Claude を開くとブラウザウィンドウが開き、ログインできるようになります。右下に利用可能なツールが表示されます。適切なプロンプトが表示されたら、Claude はツールの呼び出しを要求します。
Cloudflareにデプロイする
npx wrangler kv namespace create OAUTH_KVガイダンスに従って、kv名前空間IDを
wrangler.jsoncに追加します。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 DesktopをリモートMCPサーバーに接続します
Claude 構成ファイルを更新して、 workers.dev URL (例: worker-name.account-name.workers.dev/sse ) を参照し、Claude を再起動します。
{
"mcpServers": {
"math": {
"command": "npx",
"args": [
"mcp-remote",
"https://worker-name.account-name.workers.dev/sse"
]
}
}
}デバッグ
何か問題が発生した場合は、Claude を再起動するか、次のコマンドを使用してコマンド ラインで MCP サーバーに直接接続してみると役立つことがあります。
npx mcp-remote http://localhost:8787/sseまれに、 ~/.mcp-authに追加されたファイルを消去すると解決する場合があります。
rm -rf ~/.mcp-authThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceA 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.
- Flicense-qualityCmaintenanceA Cloudflare Workers-based implementation of Model Context Protocol (MCP) server that enables AI assistants like Claude to access external tools and capabilities through a standardized interface with OAuth authentication.14
- Flicense-qualityCmaintenanceA Cloudflare Workers-based implementation of the Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with external tools through OAuth login.14
- Flicense-qualityCmaintenanceA Cloudflare Workers implementation of Model Context Protocol server that enables Claude AI to access external tools through OAuth authentication.
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Hosted remote MCP server for YNAB on Cloudflare Workers with OAuth
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/peteknowsai/remote-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server