WebMCP for Ecommerce: Browser Tools & Native Platform Support
Short answer
WebMCP is a proposed browser API that lets a web page register tools (through document.modelContext) that an AI agent working in the shopper's open tab can discover and call. A remote MCP server runs on your infrastructure and serves any connected client. As of 2026-11-29, WebMCP is in a Chrome origin trial, and Shopify registers default WebMCP tools on Liquid storefronts.
Key takeaways
- WebMCP tools run in the shopper's live page session; remote MCP servers run server-side and need their own authorization.
- The spec is a Draft Community Group Report from the W3C Web Machine Learning Community Group, dated 24 November 2026.
- Chrome runs WebMCP as an origin trial; the original window was Chrome 149–156, and a September 2026 intent asked to extend it through Chrome 162.
- Shopify registers catalog, cart, checkout, and store-information WebMCP tools on every Liquid storefront and on supported Hydrogen 2026-10 storefronts.
- Custom WebMCP tools make sense only for store-specific interactions the native tools don't cover, such as size advice or fitment.
What is WebMCP?
WebMCP is a proposed web standard in which a page registers JavaScript tools with the browser, so an AI agent acting in that tab can call them instead of clicking through the interface. The draft is published by the W3C Web Machine Learning Community Group as a Draft Community Group Report dated 24 November 2026. A Community Group report is not a W3C Standard and is not on the W3C standards track by default.
- WebMCP
- A browser API (
document.modelContext) for pages to expose tools with names, descriptions, JSON Schema inputs, and anexecutecallback. - MCP (Model Context Protocol)
- An open JSON-RPC protocol for AI clients to discover and call tools on servers. WebMCP borrows its tool model but runs inside the browser.
- Remote MCP server
- A server you host (or your platform hosts) that clients reach over Streamable HTTP.
- Origin trial
- A Chrome mechanism that lets registered sites use an experimental feature for a limited number of releases.
The draft's ModelContext interface includes registerTool(), getTools(), executeTool(), and waitForToolsUntil(), plus change events. Tool registrations are unregistered by aborting an AbortSignal passed in the options. Both interfaces require a secure context (HTTPS).
How is WebMCP different from a remote MCP server?
WebMCP tools act inside the shopper's open page, with that page's cart, login, and consent state. A remote MCP server acts from your servers for whichever client is connected, so it must establish identity and authorization itself.
| WebMCP (browser session) | Remote MCP server | |
|---|---|---|
| Where code runs | In the page, in the shopper's browser | On your or your platform's servers |
| Who calls it | An agent working in that tab (built into the browser or an extension) | Any MCP client: desktop assistants, agent platforms, your own app |
| Identity | The shopper's existing session (cookies, logged-in state) | Tokens; OAuth 2.1 for HTTP servers that support authorization |
| State | The live page: current cart, selected variant, checkout step | Explicit handles such as cart IDs, bound to the caller |
| Availability | Only while the page is open, in browsers that support WebMCP | Whenever the server is up |
| Discovery | document.modelContext.getTools() on the page | tools/list on the endpoint |
| Ecommerce fit | Helping a shopper already on your site | Agents shopping without visiting your site; staff and back-office tools |
| Examples | Shopify's storefront WebMCP tools | Shopify Storefront Catalog and Cart MCP; WooCommerce MCP |
Most stores that care about agents eventually have both, and they don't compete. See the ecommerce MCP server guide for the server side and MCP vs REST APIs for transport choices.
Which browsers support WebMCP today?
As of 2026-11-29, Chrome runs WebMCP as an experimental origin trial, and Shopify says agent support for its WebMCP tools is limited to Chromium-based browsers. We found no shipped support in other engines in primary sources.
| Item | Status | Source |
|---|---|---|
| Specification | Draft Community Group Report, 24 November 2026, Web Machine Learning Community Group | webmachinelearning.github.io/webmcp |
| Chrome developer trial | Chrome 146 (desktop and Android) | Blink intent threads |
| Chrome origin trial | Approved May 18, 2026 for Chrome 149 to 156 | Intent to Experiment |
| Origin trial extension | Intent posted September 28, 2026 requesting an end milestone of 162, with a conditional LGTM; the team said it hopes to move to Intent to Ship within the window | Intent to Extend Experiment |
| Shipping | Not shipped. The original intent estimated desktop shipping in Chrome 157; the later extension request suggests shipping will come later (inferred) | Blink intent threads |
| Input format | Chrome docs: JSON-string inputs deprecated from Chrome 155; objects accepted | Chrome Imperative API docs (updated November 26, 2026) |
| Newer API pieces | outputSchema from Chrome 159, waitForToolsUntil() from Chrome 160, debugging annotation from Chrome 156 | Chrome Imperative API docs |
| Other browsers | Unknown; no shipped implementation found. The extension thread mentions incorporating Mozilla feedback | Intent to Extend Experiment |
The extension thread also says Chrome is investing more in the imperative API than the declarative one because developers prefer it, and is exploring a continuation API for tools whose result lands on a different page after navigation. Expect breaking changes before anything ships.
What does Shopify already provide for WebMCP?
A complete default set. Shopify's WebMCP documentation says it registers tools on every Liquid storefront, and on Hydrogen 2026-10 storefronts that render ShopifyScripts or call initializeShopifyScripts, when the browser supports WebMCP. A Shopify merchant doesn't need custom work to make basic shopping actions available to browser agents.
| Group | Tools |
|---|---|
| Catalog | search_catalog, browse_store, get_product, show_variant |
| Cart | get_cart, create_cart, update_cart, cancel_cart |
| Checkout and orders | proceed_to_checkout, get_checkout, update_checkout, complete_checkout, navigate_checkout, navigate_to_storefront (only with an online storefront), manage_orders |
| Store information | ask_business, get_ucp_profile |
- Checkout registers its own tools, so the tool list changes when the shopper moves into checkout.
- Catalog tools read through the Storefront API; cart tools call the standard storefront actions on
Shopify.actions. - Hydrogen stores can turn the tools off by setting
webMcptofalse. Shopify's page doesn't document a Liquid opt-out. - Shopify advises treating merchant and third-party text in tool responses as data, not instructions, because it can contain prompt-injection attempts.
Shopify's WebMCP tools are distinct from its server-side UCP endpoints, which agents use without a browser. Our Shopify Storefront MCP migration guide covers those, and Shopify agentic commerce explains what's native overall.
Should we add custom WebMCP tools to our store?
Only for interactions the native tools can't express, and only once you accept that the API is experimental. On Shopify, the defaults cover search, variants, cart, and checkout. On other platforms, nothing may be registered at all, which is where a small, careful set of tools can help.
| Interaction | Shopify native | Custom tool worth it? |
|---|---|---|
| Search, view product, pick variant | Yes | No |
| Add to cart, update cart | Yes | No; don't duplicate |
| Size or fit advice from your own chart | No | Yes, read-only |
| Parts fitment by vehicle or model number | No | Yes, read-only |
| Product configurator with dependent options | Partly (variants only) | Often |
| B2B quote request | No | Maybe; mark as consequential and confirm |
| Store on WooCommerce, BigCommerce, or custom stack | Not applicable | Possibly, for core actions |
Tool names must be unique within a page's model context: the draft says registering a name already in use fails with an InvalidStateError. Prefix your own tools (for example acme_) so they never collide with platform tools like Shopify's get_product.
What does a small custom WebMCP tool look like?
Here is a read-only size-advice tool for a product page. It feature-detects WebMCP, uses a prefixed name, marks itself read-only, and unregisters on navigation through an AbortController.
// Illustrative WebMCP tool for a product page. Written against the WebMCP Draft
// Community Group Report (24 November 2026) and Chrome's Imperative API docs.
// Not run in this session; origin-trial APIs change between Chrome releases.
function registerSizeAdvisor(product) {
const mc = document.modelContext; // undefined where WebMCP isn't available
if (!mc || !window.isSecureContext) return;
const controller = new AbortController();
mc.registerTool(
{
name: "acme_size_advice", // prefixed: don't reuse platform names like get_product
title: "Size advice for this product",
description:
"Recommends a size for the product on this page from the shopper's usual size " +
"in another brand, using this store's published size chart. Read-only.",
inputSchema: {
type: "object",
properties: {
usual_brand: { type: "string", maxLength: 60 },
usual_size: { type: "string", maxLength: 10 },
},
required: ["usual_size"],
additionalProperties: false,
},
annotations: { readOnlyHint: true },
async execute(input, { signal }) {
const advice = await sizeChart.recommend(product.id, input.usual_brand, input.usual_size, { signal });
return {
recommended_size: advice.size, // e.g. "M"
confidence: advice.confidence, // "chart_match" | "nearest"
chart_url: product.sizeChartUrl,
};
},
},
{ signal: controller.signal } // aborting unregisters the tool
);
// Unregister when the shopper leaves this product view (SPA navigation).
return () => controller.abort();
}// Illustrative agent-side call (what a browser agent or extension does).
const tools = await document.modelContext.getTools();
const tool = tools.find((t) => t.name === "acme_size_advice");
// Chrome's docs say executeTool takes an object and JSON-string input is
// deprecated from Chrome 155. Shopify's docs note that in Chrome 153 an object
// fails with "Failed to parse input arguments", so older builds need a string.
const result = await document.modelContext.executeTool(tool, { usual_brand: "Other Co", usual_size: "M" });Return plain data, not prose instructions. The draft defines execute as returning a promise of any value, and agents will read what you return as context. Keep it to facts the shopper could see on the page.
What security rules apply to WebMCP tools?
Treat every WebMCP tool as callable by an automated agent that may have been manipulated. The tool runs with the shopper's session, so anything it can do, a prompt-injected agent can attempt.
- Secure context only. The draft marks the interfaces
SecureContext, so tools exist only on HTTPS pages. - Private by default. Chrome's docs say a registered tool is visible to the registering document and same-origin frames. Cross-origin access needs
exposedTo, and cross-origin iframes need thetoolsPermissions Policy. - Annotate honestly.
readOnlyHint,untrustedContentHint, andconsequentialHintare defined booleans. Chrome describesconsequentialHintas enabling agents and browsers to require user confirmation for high-stakes actions. - Mark untrusted content. If a tool returns reviews or Q&A text written by others, set
untrustedContentHintand keep that text clearly separated. - Don't rely on hints alone. Server-side checks for price, stock, and permissions still decide what actually happens.
- Keep payment out. Leave payment entry to the platform's checkout UI.
How do we test WebMCP on a storefront?
Test in a Chromium build with the feature available, list the tools the page registers, call each with valid and invalid input, and check behavior across page transitions. Record the Chrome version with every result, because behavior differs by release.
- 1
Record the environment
Browser and exact version, origin-trial or flag state, and platform version (for example Hydrogen 2026-10).
- 2
Inventory registered tools
Call
document.modelContext.getTools()on home, collection, product, cart, and checkout pages. Note how the list changes. - 3
Check for collisions
Confirm custom tools register without
InvalidStateErroralongside platform tools. - 4
Call with valid and invalid input
Verify schema rejections, empty results, and out-of-stock variants produce clear outcomes.
- 5
Test injection resistance
Seed a product description or review with instruction-like text and confirm your tool returns it as data, with
untrustedContentHintwhere appropriate. - 6
Retest each Chrome release
Input format, new fields, and unregistration behavior have changed across releases during the trial.
Our WebMCP integration service starts by detecting which platform-native tools are already present, then scopes any custom interactions and browser-compatibility testing.
Frequently asked questions
Is WebMCP an official web standard?
Not yet. As of 2026-11-29 it is a Draft Community Group Report from the W3C Web Machine Learning Community Group, dated 24 November 2026, and an experimental origin trial in Chrome.
Do Shopify merchants need to do anything to support WebMCP?
Shopify's docs say it registers default WebMCP tools on every Liquid storefront, and on Hydrogen 2026-10 storefronts that render ShopifyScripts or call initializeShopifyScripts. Agents can use them in browsers that support WebMCP, which Shopify says are currently Chromium-based.
Is WebMCP the same as an MCP server?
No. WebMCP tools are JavaScript functions registered by a web page and called by an agent working in that tab. An MCP server is a separate service reached over stdio or Streamable HTTP by any MCP client.
Should I use navigator.modelContext or document.modelContext?
Use document.modelContext. The current draft, Chrome's Imperative API documentation, and Shopify's docs use it; navigator.modelContext appears in earlier material.
Can a WebMCP tool complete a purchase?
Shopify's default set includes checkout tools such as complete_checkout, acting in the shopper's session. For custom tools, mark anything consequential with consequentialHint and leave payment entry to the platform's checkout.
Does WebMCP help my products get recommended by AI assistants?
Not directly. WebMCP helps an agent act on your site once a shopper is there. Discovery and recommendation depend on product data, feeds, and each AI platform's systems.
Can I turn off Shopify's WebMCP tools?
On Hydrogen, Shopify documents setting webMcp to false. Its WebMCP page doesn't describe an opt-out for Liquid storefronts as of 2026-11-29.
Considering WebMCP for your storefront?
Tell us your platform, the interactions shoppers struggle with, and which browsers matter to you. We'll check what's already registered before proposing anything custom.
Related
- WebMCP integrationNative tool detection, custom interactions, and browser testing.
- Shopify agentic commerceWhat Shopify provides natively.
- MCP server ecommerce guideThe server-side counterpart.
- Shopify Storefront MCP migrationShopify's server-side UCP MCP endpoints.
- MCP vs REST APIsTransports and when MCP is worth it.
Sources
- Shopify: WebMCP tools
- WebMCP Draft Community Group Report (Web Machine Learning CG)
- Chrome for Developers: WebMCP Imperative API
- Blink-dev: Intent to Experiment: WebMCP
- Blink-dev: Intent to Extend Experiment: WebMCP
- MCP specification (2026-07-28)
Platform capabilities, eligibility, and specifications change. Sources were checked on 2026-11-29; confirm the current primary documentation before scoping an implementation. See our editorial policy and methodology.