WebMCP (Web Model Context Protocol)
Definition
WebMCP (Web Model Context Protocol) is a proposed web standard that lets a website declare its own actions, such as filling a form or adding a product to a cart, as structured tools an AI agent can discover and call directly inside the page. The proposal is incubated at the W3C Web Machine Learning Community Group, with the goal that any agentic browser could implement it. It is available as an experimental preview in Chrome, first behind a developer flag starting with version 146, then as an origin trial running from version 149 to version 156. Microsoft Edge opened its own origin trial starting with version 150, while Firefox and Safari do not support it. No stable release date has been set.
On the technical side, developers have two options. The declarative API adds HTML attributes directly to an existing form (toolname, tooldescription, toolparamdescription on each field): the browser then automatically builds the tool definition and its JSON Schema. The imperative API uses a JavaScript call, document.modelContext.registerTool(), with a name, a description, an input schema and an execute function, for cases a plain form cannot express. The early previews exposed it as navigator.modelContext, an entry point now deprecated in favor of document.modelContext. Either way, no server is required: tools run inside the page's own JavaScript, within the user's already signed-in session.
WebMCP differs from MCP (Model Context Protocol) in the layer at which it operates. MCP exposes server-side capabilities, such as a database or an internal tool, through a separate server process that an AI client configures and connects to. WebMCP instead exposes a site's client-side actions, such as a form or a page function, directly inside the page the person is already viewing, discovered by the browser at the moment of the visit rather than through manual client configuration. The rule of thumb its proponents suggest: MCP for backend capabilities, WebMCP for actions inside a page the person is already using.
For BotRank, the stakes go beyond the technical novelty. As agentic browsers and AI shopping assistants increasingly act directly inside pages rather than only reading them, exposing clear, well described WebMCP tools could become a visibility factor alongside structured data and crawlable content, much like how it already works for AI search citation today. See the Computer Use and Agent2Agent Protocol (A2A) glossary entries, and BotRank's technical audits feature.
To understand classic, server-side MCP, see the video What is MCP? (explained in 2 minutes) (in French with English subtitles).
Official documentation
Examples
An ecommerce site adds declarative toolname="add_to_cart" and tooldescription attributes to its product form. A shopping agent can then add the item to the cart in a single structured call instead of parsing the page and simulating a click. The action still happens inside the user's own signed-in session.
A B2B software company registers a "request_quote" tool through document.modelContext.registerTool(). An AI agent helping a buyer compare vendors can then submit a structured quote request without the company having to build and maintain a separate public API.
Complete example: the declarative API on a form
<form toolname="search-cars" tooldescription="Search cars by make and model" action="/search"> <input type="text" name="make" toolparamdescription="The vehicle's make (e.g. BMW, Ford)" required> <input type="text" name="model" toolparamdescription="The vehicle's model"> <button type="submit">Search</button></form>The toolname and tooldescription attributes turn the form into a tool, and toolparamdescription describes each field to the agent. An optional toolautosubmit attribute lets the agent submit the form without a manual click.
Complete example: the imperative API in JavaScript
if ("modelContext" in document) { const controller = new AbortController(); await document.modelContext.registerTool({ name: "add_to_cart", description: "Add a product to the cart", inputSchema: { type: "object", properties: { sku: { type: "string" }, quantity: { type: "integer" } }, required: ["sku"] }, async execute({ sku, quantity = 1 }) { await cart.add(sku, quantity); return `Added ${quantity} x ${sku} to the cart`; } }, { signal: controller.signal }); // controller.abort() unregisters the tool}The tool is registered with document.modelContext.registerTool(), and the signal option unregisters it when needed. Checking that modelContext exists first keeps the page working in browsers without WebMCP. To test locally in Chrome, enable the chrome://flags/#enable-webmcp-testing flag.
Frequently Asked Questions
What is the difference between WebMCP and MCP?
MCP (Model Context Protocol) exposes backend capabilities, like databases or internal tools, through a separate server process that an AI client connects to and configures. WebMCP exposes a website's own client-side actions, like forms or page functions, directly inside the page the person is already browsing, with no separate server to deploy.
Is WebMCP available in production browsers today?
No, not yet. As of late 2026, WebMCP is an experimental proposal incubated at the W3C Web Machine Learning Community Group, available behind a developer flag and in origin trials in Chrome and Microsoft Edge. Firefox and Safari do not support it, and its API details can still change before any stable release.
Does a website need a server to use WebMCP?
No. Tools run entirely in the page's own JavaScript, using either HTML attributes on existing forms or a short registerTool() call, and reuse the user's live signed-in session instead of needing a backend to deploy or maintain.
Why would this matter for AI/GEO visibility?
As AI agents increasingly act directly inside pages instead of only reading them, exposing clear, well described WebMCP tools could become a visibility factor alongside structured data and crawlable content, similar to how Agentic Browsing and Web Bot Auth already matter for AI search visibility.