Cloudflare injects WebMCP tools into websites at the edge
The preview injects a WebMCP bridge at Cloudflare's edge, giving browser agents structured access without origin-side deployment.
By Ryan Merket · Published
Why it matters
Cloudflare can place structured agent interfaces in front of existing sites at network scale, accelerating WebMCP adoption while making tool permissions and authenticated actions a core infrastructure concern.

Cloudflare launched a developer preview on August 6th that lets customers expose website functions to browser-based AI agents by enabling a dashboard setting. The announcement on X and accompanying technical post describe an edge-injected bridge that registers structured WebMCP tools without requiring customers to redeploy their sites or change code at the origin.
Will Rowe, a staff software engineer at Cloudflare and author of the technical post, is tackling a distribution problem facing the emerging agentic web: WebMCP gives sites a standard way to define actions for AI agents, but each site would ordinarily need to design, implement and maintain those tools itself. Cloudflare is moving that work into its network layer, where a customer can enable a set of prebuilt tool packs.
The distinction between origin code and the page delivered to a visitor matters. Cloudflare leaves the customer's stored application code untouched, then uses its HTMLRewriter system to add a module script to HTML responses at the edge. That script, served from the site's own origin, discovers whether the browser supports WebMCP and registers the selected tools. Browsers without the interface ignore the bridge.
Turning pages into callable interfaces
WebMCP is a draft browser API built around document.modelContext. Websites register JavaScript functions as named tools with natural-language descriptions and structured input schemas. An agent can discover and call those functions instead of interpreting screenshots, searching the DOM or repeatedly guessing which button to press.
The standard remains experimental. Chrome's WebMCP documentation, updated July 1st, says the API remains under active discussion and is subject to change. Cloudflare said the browser implementation is shipping experimentally in Chrome 146.
Cloudflare's preview initially includes two tool packs. The Site MCP Server pack connects a page to an existing same-origin MCP endpoint, discovers the tools advertised by that server and registers browser-side proxies for them. Calls travel directly from the page to the customer's endpoint using the visitor's existing session.
That approach lets a website reuse an MCP server it has already built. It also gives agent actions the same authenticated context as the person using the browser. A shopping site, for example, could expose a product search or account action as a typed function rather than requiring an agent to navigate the human interface.
The second pack handles Content Credentials metadata produced under the C2PA standard. One tool scans images on a page for provenance metadata, while another reads a selected image's manifest, including its stated author, editing history and signing certificate. Cloudflare says the preview decodes those claims locally in the browser. It does not cryptographically verify the signature, and results are marked signatureVerified: false.
Both packs run in the visitor's browser during the preview, according to Cloudflare. The bridge itself is delivered by a Worker at the edge, giving Cloudflare a path to add packs that use its own services. Rowe cited possible future tools for summarizing a sitemap with Workers AI or querying an AI Search index.
Cloudflare is building both sides of the transaction
The release extends a WebMCP push Cloudflare began earlier this year. On April 15th, Cloudflare added experimental WebMCP support to Browser Run, its hosted browser infrastructure. Browser Run gives an agent an environment that can discover and execute WebMCP tools. The new preview supplies those tools to sites running through Cloudflare.
That pairing gives Cloudflare control over both the agent's browser runtime and the website-side bridge. A developer can enable tools on a domain and test them through Browser Run without assembling a separate browser stack. Cloudflare's broader Browser Run platform already supports browser automation through Playwright, Puppeteer and the Chrome DevTools Protocol.
Customers can activate the preview under Agent Readiness and Labs in the Cloudflare dashboard. The Content Credentials and Site MCP Server packs are enabled by default once WebMCP is switched on, according to Cloudflare, and customers can select which packs their domain exposes.
The existing-session design also raises the stakes for tool permissions. The WebMCP draft explicitly treats inherited authentication, cross-site context and prompt injection as security concerns. Cloudflare's implementation keeps calls on the visitor's origin, but site owners still decide which capabilities to publish, while browsers and agent providers determine how users see and authorize those calls.
Cloudflare's immediate bet is that website operators will prefer a controlled, typed interface over agents scraping and clicking through pages built for people. By making that interface an edge setting, Cloudflare can push WebMCP adoption without waiting for every customer to rebuild its frontend for agents.