Provide WebMCP Interface to All Websites
Key point
Cloudflare released a developer preview that attaches WebMCP tools to websites without code changes.
Details
Cloudflare released a WebMCP developer preview that connects websites to AI agents. By enabling the feature on Cloudflare, browser agents can discover and call site tools without modifying or redeploying origin code.
WebMCP is a new browser standard offered experimentally in Chrome 146, exposing document.modelContext on web pages. When a site provides tools for agents, agents can directly call the tools needed for tasks instead of guessing and navigating the pages humans use.
Cloudflare has already added WebMCP support to its remote browser BrowserRun, and Cloudflare Radar also plans to provide its own WebMCP tools. This preview, conversely, adds WebMCP tools to all sites using Cloudflare without separate code.
The implementation consists of two parts working in front of the origin.
- Cloudflare Edge inserts a one-line reference to a bridge script into HTML responses using HTMLRewriter.
- The bridge script registers and executes WebMCP tools in the browser.
- Both static sites and single-page applications are supported in the same way.
- Tool packs to enable are selected via the
data-packsattribute; the preview includes two packs:c2paandmcp-server-client. - If an existing MCP server is present, the server address can be specified via the
data-mcp-urlattribute.
Tools are provided in packs that bundle related features, and as packs are added in the future, sites can be extended by simply enabling settings without redeployment.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.