Skip to main content
Glama
ownkhan125

remote-mcp-server-authless

by ownkhan125

Cloudflare でリモート MCP サーバーを構築する(認証なし)

この例では、認証を必用としないステートレスなリモート MCP サーバーを Cloudflare Workers にデプロイできます。MCP 2026-07-28 仕様を実装しつつ、通常のツール呼び出しに対応するレーガシー クライアントとの互換性も維持しています。

はじめに:

[Workers にデプロイ

Yes, wait, that URL is wrong. Let's use exact source string. Need to be careful. The source includes [![Deploy to Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/ai/tree/main/demos/remote-mcp-authless). I'll copy that exactly. I shouldn't accidentally change. In final, I'll paste:

Workers にデプロイ

Wait, no. Let's copy carefully from the original user's input:

[![Deploy to Workers](https://deploy.workers.cloudflare.com/cton)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/ai/tree/main/demos/remote-mcp-authless)

Yes, the link target is https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/ai/tree/main/demos/remote-mcp-authless. The image source is https://deploy.workers.cloudflare.com/button. Good.

Now, I must use that exact. In final, I'll paste.

Let's craft final meticulously:

のリモート MCP サーバーを構築する(認証なし)

This example allows you to deploy a stateless remote MCP server that doesn't require authentication on Cloudflare Workers. It implements the MCP 2026-07-28 specification while remaining compatible with legacy clients for ordinary tool calls.

Related MCP server: remote-mcp-server-authless

はじめに:

Workers にデプロイ

MCP サーバーは、次のような URL にデプロイされます: remote-mcp-serverless.<your-account>.workers.dev/mcp

または、以下のコマンドラインを使って、ローカルマシンにリモート MCP サーバーを作成することもできます:

npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless

MCP サーバーのカスタマイズ

MCP サーバーに独自のツールを追加するには、src/index.ts の createServer() 関数内で作成した McpServer に、server.registerTool(...) を使って各ツールを登録してください。

Cloudflare AI Playground に接続する

リモート MCP クライアントである Cloudflare AI Playground から、MCP サーバーに接続できます:

  1. https://playground.ai.cloudflare.com/ にアクセスします。

  2. デプロイした MCP サーバーの URL(remote-mcp-serverless.<your-account>.workers.dev/mcp)を入力します。

  3. Playground 上で直接 MCP ツールを使用できます!

Claude Desktop を MCP サーバーに接続する

mcp-remote プロキシを使うことで、ローカルの MCP クライアントからリモート MCP サーバーに接続することもできます。

Claude Desktop から MCP サーバーに接続するには、Anthropic のクイックスタートに従い、Claude Desktop 内の Settings > Developer > Edit Config を開いてください。

この設定に更新します:

{
	"mcpServers": {
		"calculator": {
			"command": "npx",
			"args": [
				"mcp-remote",
				"http://localhost:8787/mcp" // or remote-mcp-server-authless.your-account.workers.dev/mcp
			]
		}
	}
}

Claude を再起動すると、ツールが利用可能になるはずです。

Wait, there is a double "はじめに" with colon. Let's.

Let's output as final# Cloudflare でリモート MCP サーバーを構築する(認証なし)

この例では、認証を必要としないステートレスなリモート MCP サーバーを Cloudflare Workers にデプロイできます。MCP 2026-07-28 仕様を実装しつつ、従来のツール呼び出し用クライアントとの互換性も維持しています。

はじめに:

Workers にデプロイ

この操作を行うと、MCP サーバーは次のような URL にデプロイされます: remote-mcp-serverless.<your-account>.workers.dev/mcp

または、以下のコマンドラインを使うと、ローカルマシンにリモート MCP サーバーを作成できます:

npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless

MCP サーバーのカスタマイズ

MCP サーバーに独自のツールを追加するには、src/index.ts の createServer() 関数内で作成した McpServer に、server.registerTool(...) を使用して各ツールを登録してください。

Cloudflare AI Playground にて接続する

リモート MCP クライアントである Cloudflare AI Playground から、MCP サーバーにて接続できます:

  1. https://playground.ai.cloudflare.com/ にアクセスします。

  2. デプロイしたMCP サーバーのURL(remote-mcp-serverless.<your-account>.workers.dbv/mcp)を入力します。

  3. Playground で直接MCP ツールが使用できます!

Claude Desktop を MCP サーバーにて接続する

The mcp-remote package を使うことで、ローカルMCP クライアントからリモート MCP サーバーに接続することもできます。

Claude Desktop から MCP サーバーに接続するには、Anthropic のクイックスタート を参照し、Claude Desktop の Settings > Developer > Edit Config を開いてください。

この設定に更新してください。

{
	"mcpServers": {
		"calculator": {
			"command": "npx",
			"args": [
				"mcp-remote",
				"http://localhost:8787/mcp" // or remote-mcp-server-authless.your-account.workers.dev/mcp
			]
		}
	}
}

Claude を再起動すると、ツールが利用可能にな将成为。

Related MCP Connectors

Related MCP Servers