Cloudflare、WebMCP をウェブページでプレビュー開始
本文の状態
日本語全文を表示中
詳細モードで約4分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
InfoQ AI/ML
Cloudflare はダッシュボード操作で WebMCP インターフェースを有効化し、AI エージェントが構造化ツールで未修正ページと対話可能にするプレビューを発表した。
Continue in AI NEW LAB
このニュースを、実務の判断につなげる
AI NEW LABで、試したことや先に確認したい条件を共有できます。まずはログインなしで読めます。
AI NEW LABで論点を見るAI深層分析を開く2026年8月11日 05:56
AI深層分析
キーポイント
WebMCP の簡易導入機能
Cloudflare はダッシュボード上の単一のスイッチ操作で、自サイトが WebMCP インターフェースをサポート可能にするプレビューを発表した。これにより、開発者は複雑な実装なしに AI エージェントとの連携機能を即座に提供できる。
構造化ツールによる安全な連携
WebMCP は検索や予約などの明示的な関数呼び出しを可能にし、従来のスクレイピングや UI 操作に依存しないため、トークン消費の削減と UI 変更による脆弱性の排除を実現する。
事前定義されたツールパック
今回のプレビューでは「Content Credentials」による画像メタデータの読み取りや、「Site MCP server」による代理サーバー機能など、2 つの標準ツールパックが提供される。
エッジでの非侵入的実装
Cloudflare の実装は HTMLRewriter を用いて `bridge.js` モジュールを静かに注入するため、元のウェブページの HTML は一切改変されず、オリジン内で動作する。
ツールパックの登録と構成
ブリッジは data-packs に指定されたパックを組み合わせて単一のツールリストに変換し、.registerTool で登録する。静的パックは事前にツールを宣言し、動的パックは起動時にツールを発見してから登録する。
重要な引用
lets any website enable a WebMCP (Web Model Context Protocol) interface with a single dashboard switch
interact with unmodified web pages through structured tools instead of scraping or guessing
makes interactions faster, more efficient, and far less fragile than traditional browser automation
From there, the bridge composes the packs named in data-packs into one tool list and registers each with .registerTool. A pack is just a set of MCP tool descriptors and their handlers. Static packs, such as Content Credentials, declare their tools up front. A dynamic pack, such as the Site MCP Server pack, discovers its tools at boot before registering anything.
編集コメントを表示
編集コメント
WebMCP の標準化と Cloudflare による簡易実装は、AI エージェントのウェブ利用におけるセキュリティと安定性を飛躍的に高める可能性を秘めている。開発者は今後はスクレイピングに依存しない、より堅牢な AI 連携アーキテクチャへの移行を検討する必要があるだろう。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
Cloudflare は、ダッシュボードのスイッチ一つで任意のウェブサイトが Web Model Context Protocol(WebMCP)インターフェースを有効化できる開発者プレビューを発表しました。これにより、ブラウザベースの AI エージェントは、スクレイピングや推測に頼らず、構造化されたツールを通じて未修正のウェブページと直接対話できるようになります。その結果、人間のトラフィックと管理権限は元のサイト上に維持されます。
WebMCP の核心となる考え方は、標準プロトコルを通じて AI エージェントに対して構造化され機械可読なツールを直接公開することです。これにより、AI はトークンを消費する HTML のスクレイピングや解析、あるいは UI ボタンをクリックして動作をトリガーする必要なく、searchFlights や bookTicket といった明示的な関数を呼び出すことが可能になります。WebMCP を採用することで、従来のブラウザ自動化よりもはるかに高速で効率的なインタラクションが実現され、UI の変更によって頻繁に失敗する脆弱性からも解放されます。
WebMCP を導入するには、ウェブサイトの機能をツールとして公開する必要があります。その手段としては、開発者がツールの登録、スキーマの定義、実装コードの記述を可能にする `document.modelContext` API を使用するか、標準的な HTML フォームに注釈を追加して WebMCP ツールを作成できる 宣言型 JavaScript API のいずれかを利用します。
Cloudflare の現在のプレビューが狙っているのは、事前定義されたライブラリから「ツールパック」を選択するだけで、Cloudflare 上のあらゆるサイトが WebMCP をサポートできるようにすることです。今回のプレビューでは、2 つのツールパックが含まれています。
1 つ目は Content Credentials です。これにより、エージェントはページ上の画像から C2PA のコンテンツ証明メタデータを取得できます。もう 1 つは Site MCP サーバーで、サイトの MCP サーバーが提供するツールをブラウザ内にあるエージェントにプロキシします。
Cloudflare によると、このツールパックライブラリは今後拡大していく予定で、新しいパックが利用可能になった際も、サイトを再デプロイすることなく有効化できるそうです。
Cloudflare の実装は、HTMLRewriter を用いて提供されるウェブページに静かに注入される bridge.js モジュールを中心に構築されています。
<!-- Cloudflare injects this at the edge. Same origin, and your HTML is otherwise untouched. -->
<script type="module"
src="/.webmcp/bridge.js"
data-packs="c2pa,mcp-server-client"
data-mcp-url="/mcp"></script>
モジュールリファレンスでは、ページが採用しているツールパックを data-packs 属性にリストアップし、必要な追加パラメータ(例:Site MCP サーバー用ツールパックの data-mcp-url)も併せて記載します。
そこから、ブリッジは data-packs に指定されたパックを結合して 1 つのツールリストを作成し、それぞれを .registerTool で登録します。パックとは、MCP ツールの記述子とそのハンドラからなるセットのことです。コンテンツ認証情報(Content Credentials)のような静的なパックでは、事前にツールを宣言します。一方、Site MCP サーバーパックのような動的なパックは、起動時にツールを検出し、その後に登録を行います。
サーバー上で動作する既存の MCP ツールは、標準的な MCP の Tool タイプを通じて検出されます。そのため、各ツールに対してブリッジが WebMCP プロキシを登録し、その execute() メソッドは同じオリジン上のサイトへ呼び戻しを実行します。同様に、実行結果の処理には標準的な CallToolResult が通過します。
Cloudflare の WebMCP プレビューは現在も開発途中です。WebMCP 規格自体がプレビュー版であり、Chrome 145+ でのみサポートされています。WebMCP を有効にするには、Cloudflare ダッシュボードの「Agent Readiness > Labs」にアクセスし、対象ドメインで WebMCP をオンにして、必要なツールパックを選択してください。
著者について
セルジオ・デ・シモーネ
セルジオ・デ・シモーネはソフトウェアエンジニアです。セルジオ氏は過去25年以上にわたり、シーメンスや HP、スタートアップ企業など多様な環境でソフトウェア開発に従事してきました。ここ10年以上はモバイルプラットフォームおよび関連技術の開発に注力しています。現在は BigML, Inc. に所属し、iOS および macOS の開発を率いています。
Show moreShow less
原文を表示
Cloudflare announced a developer preview that lets any website enable a WebMCP (Web Model Context Protocol) interface with a single dashboard switch. This allows browser-based AI agents to interact with unmodified web pages through structured tools instead of scraping or guessing, keeping human traffic and control on the original site.
The core idea behind WebMCP is exposing structured, machine-readable tools directly to AI agents through a standard protocol. This allows them to call explicit functions like searchFlights or bookTicket without resorting to scraping and parsing HTML, which consumes tokens, or clicking UI buttons to trigger behavior. WebMCP makes interactions faster, more efficient, and far less fragile than traditional browser automation, which often breaks when the UI changes.
To adopt WebMCP, a website must expose its functionality as tools using either the document.modelContext API, which allows developers to register tools, define their schemas, and write the code that implements them, or a declarative JavaScript API that allows to add annotations to a standard HTML forms to create a WebMCP tool.
What CloudFlare's current preview is aiming at is giving any site on Cloudflare the possibility to support WebMCP with a single switch by selecting *tool packs* from a pre-defined library. CloudFlare is currently including two tool packs in this preview: Content Credentials to allow agents to read C2PA content-provenance metadata from images on the page, and Site MCP server, which can proxy a site's MCP server tools to the in-browser agent. CloudFlare says the tool pack library will grow and that when new packs become available, a site can enable them without redeploying.
CloudFlare's implementation is built around a bridge.js module, which is silently injected into a served webpage using HTMLRewriter:
<!-- Cloudflare injects this at the edge. Same origin, and your HTML is otherwise untouched. -->
<script type="module"
src="/.webmcp/bridge.js"
data-packs="c2pa,mcp-server-client"
data-mcp-url="/mcp"></script>
The module reference lists the tool packs adopted by the page in the data-packs attribute along with any additional parameter required (e.g., data-mcp-url for the Site MCP server tool pack).
From there, the bridge composes the packs named in data-packs into one tool list and registers each with .registerTool. A pack is just a set of MCP tool descriptors and their handlers. Static packs, such as Content Credentials, declare their tools up front. A dynamic pack, such as the Site MCP Server pack, discovers its tools at boot before registering anything.
Existing MCP tools running on the server are discovered through the standard MCP Tool type, so for each of them the bridge registers a WebMCP proxy whose execute() method calls the site back on the same origin. Likewise, the bridge pass through a standard CallToolResult to handle the execution result.
CloudFlare WebMCP preview is highly work in progress. The WebMCP standard is itself a preview and only supported in Chrome 145+. You can enable WebMCP by going to Agent Readiness > Labs in the Cloudflare Dashboard, toggle on WebMCP for your domain, and select the desired tool packs.
About the Author
Sergio De Simone
Sergio De Simone is a software engineer. Sergio has been working as a software engineer for over twenty five years across a range of different projects and companies, including such different work environments as Siemens, HP, and small startups. For the last 10+ years, his focus has been on development for mobile platforms and related technologies. He is currently working for BigML, Inc., where he leads iOS and macOS development.
Show moreShow less
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み