Definition
WebMCP is a draft web API. Its specification says it "enables web applications to provide JavaScript-based tools to AI agents." A page registers tools such as search or add to cart, and an agent in the browser can call them instead of clicking through the interface.
Why it matters
Most AI agents that shop in a browser work like a person would: they read the page and click buttons. That is slow and breaks when a layout changes. WebMCP gives the page a way to say what it can do, as named tools an agent can call directly.
For a store, that means the storefront itself can describe actions such as searching the catalog or adding an item to a cart. It is separate from an MCP server, which runs on a server and is reached over the network. WebMCP tools live in the page and run in the visitor's browser.
How it works
The specification adds a modelContext object to the page's document (document.modelContext), available on secure (HTTPS) pages. A developer registers a tool with registerTool, giving it a name, a description and a JavaScript function to run. The spec says these tools can be invoked by agents, browser agents and assistive technologies.
The spec also defines getTools and executeTool, which let an agent written in JavaScript inside the page, or in a frame on it, list and run the tools. The browser's own agent reaches the tools through a separate internal mechanism.
The WebMCP document is a Draft Community Group Report from the Web Machine Learning Community Group. In its own words, it "is not a W3C Standard nor is it on the W3C Standards Track." Details may change.
What store owners should know
Cloudflare describes WebMCP as "still an experimental proposed browser standard in early preview" and says it is currently available behind experimental Chrome flags, in Chrome Origin Trials, in some agentic browsers and in developer environments.
Cloudflare's October 2026 post describes one rollout. Commerce.com turns WebMCP on for its main Cloudflare zone, and a merchant who flips an opt-out switch in their Commerce.com dashboard has WebMCP bypassed for that storefront. In the post's example, the agent searches and adds an item to the cart, and the shopper clicks checkout themselves. If a browser does not support WebMCP, the post says the storefront loads normally.
Treat WebMCP as something to watch, not something you must install. Our glossary entry on agentic checkout covers how agents buy today, and agentic commerce gives the wider picture.
Sources
- WebMCP specification (Draft Community Group Report) · checked 24 Nov 2026
- Cloudflare: How Commerce.com and Cloudflare are getting storefronts ready for AI agents · checked 24 Nov 2026