Shipping WebMCP tools in storefronts and Checkout Shopify shipped WebMCP tools to every Liquid storefront in August and added Checkout WebMCP in September, letting agents complete checkout in co-browsing mode with the buyer confirming the order. In a Shopify checkout benchmark, WebMCP ran 2.7x faster and 58% cheaper than browser automation, with 60/60 successful attempts versus 56/60. Shopify said its first approach — translating server-side MCP tools for the browser agent — was wrong because server-side tools are decoupled from the user-visible interface and client-side state. In August, Shopify shipped WebMCP tools https://shopify.dev/docs/api/web-mcp to every Liquid storefront, with the latest Hydrogen storefronts following. In September, we quickly followed that with Checkout WebMCP https://shopify.dev/docs/agents/carts-and-checkout/checkout-webmcp , so agents can take a buyer through checkout in co-browsing mode, with the buyer confirming the order. As larger parts of the web developer community are adopting WebMCP https://chromestatus.com/metrics/feature/timeline/popularity/5791 , we thought it might be useful for us to share our thought process around implementing it and our experience from deploying it at scale. Why WebMCP? There are three major ways that agents interact with websites: - Server-side : the agent calls the merchant's APIs directly through HTTP requests. MCP servers are the classic example. - Embedding: the agent embeds parts of the merchant's experience inside its own UI. For example, the Embedded Checkout Protocol https://shopify.dev/docs/agents/carts-and-checkout/ecp lets agents embed the merchant’s checkout. - Co-browsing: the agent works alongside the human user in a real browser session, on the real site. - That could be on the user’s local browser, or a cloud-based one. - That could also involve the agent doing most of the work in the background, until the user’s attention is needed. Shopify supports all of these different modes of interaction so the user can decide how they interact with merchants and the web. But we believe that co-browsing is particularly important because it allows merchants to maintain their relationships with existing users, create new ones, and keep their visual identity and brand intact within an agentic experience. Co-browsing typically means agents have to actuate sites through scripts or automation protocols, after analyzing them both visually with screenshots and programmatically through DOM or accessibility tree analysis . That’s slow, expensive, and results in sub-par agentic experiences as the user watches the agent operate human-focused UI, often slower than they would. Critically, this path also lacks a structured contract required by many checkout experiences, where the merchant requires explicit user input or consent before a transaction can be allowed to be finalized. WebMCP fixes that. The page registers tools, each with a description and input/output schemas, and the agent calls them directly. The agent can easily discover those tools, call them as needed, and get structured results and escalation requirements as a response. It removes the guesswork from agentic actuation and enables the page and the agent to work together to provide the user with smooth agentic experiences. In a Checkout benchmark we ran https://x.com/gilgNYC/article/2104583942728822998 we saw WebMCP run 2.7x faster and 58% cheaper than browser automation, with 60/60 successful attempts vs. 56/60. The models that browser-automation agents can use are bound to get better, but no one wants to mow their lawn with a jet engine. Users shouldn’t need a frontier model just to browse the web. Ideally, that’s something they can do with simple maybe even device-local models. The chances for that go up when the tools the agents call have well-defined schemas and descriptions that can be used in the model’s training. More on that below. Implementation journey Our very first take on WebMCP was somewhat simplistic: translate our server-side MCP tools into something the browser’s agent can operate on. It was a simple solution, but it was also wrong... Well-implemented co-browsing experience enables the user to hand-off tasks to an agent, observe effects of agent interactions, and resume at will. But server-side tools are decoupled from the user-visible interface and the client-side state. With that approach, an agent adding something to the cart does not update UI state of the storefront, and the server-side cart becomes out-of-sync with the client-side, user-visible cart. So we took a step back and thought a bit more about the agentic experience we want our users to have. What are users likely to ask the agent to do for them? How can the agent address those tasks using the tools we provide? As a result, we revamped our tool calls to use Standard Actions https://shopify.dev/docs/storefronts/themes/best-practices/standard-events-and-actions , which enables Shopify’s platform to notify themes when they need to update their UI, for example in case of cart modifications. That enabled exactly this kind of client-side/server-side state synchronization, providing coherent UI continuity for the user. We made sure the tools worked across all storefronts by wrapping the tool calls with monitoring code. That enables us to see how often each tool is used, and catch any uptick in errors across all storefronts. The ChatGPT desktop app now ships WebMCP https://learn.chatgpt.com/docs/webmcp in its built-in browser, but in Chrome and Edge it's still in an Origin Trial. We used a third-party origin trial https://developer.chrome.com/docs/web-platform/third-party-origin-trials to enable the feature in production for all storefronts. Given the number of merchant origins, registering the token per origin was not really an option. We registered cdn.shopify.com for the trial, and used our existing origin trial script, already loaded on every storefront, to inject the token. If the API shape changes as part of the shipping process, we’ll adapt our implementation to match that. Finally, we implemented our tools to use UCP schemas https://ucp.dev/ . This delivers many benefits: These are well-tested schemas used by server-side agents on our platform, purpose designed to reflect all the needs of querying catalog, building a cart, and negotiating a complex checkout. It allows re-use and continuity for agents who can transition from server-side to browser-based actuation using the same tools and APIs. And it enables these well-known schemas to be used in training and reinforcement learning of models, allowing agents to execute more efficiently and accurately. WebMCP is not yet an official transport for UCP, but we’ve opened a proposal to enable just that https://github.com/Universal-Commerce-Protocol/ucp/issues/426 . That would make it even clearer for agents which UCP semantics are implemented, and presumably would make their task easier while enabling similar tool-calling quality levels with simpler/cheaper/faster agents. The tools we shipped Storefronts We shipped tools that enable agents to help users search the catalog https://shopify.dev/docs/api/web-mcp catalog , find relevant products, add them to cart https://shopify.dev/docs/api/web-mcp cart and manage it, and finally proceed to checkout. They can also ask https://shopify.dev/docs/api/web-mcp store-information about store information and go to their orders page. Checkout We wanted the tools to allow buyers to get through Checkout as fast as possible, without relinquishing control. So we needed the agents to understand what’s currently being checked out https://shopify.dev/docs/agents/carts-and-checkout/checkout-webmcp get checkout , be able to modify that https://shopify.dev/docs/agents/carts-and-checkout/checkout-webmcp update checkout , and then complete the checkout https://shopify.dev/docs/agents/carts-and-checkout/checkout-webmcp complete checkout . We also made sure that completing the checkout is a consequentialHint , so that the agent knows to involve the buyer in that decision. Evaluating correctness After figuring out what tools we wanted and actually implementing them, the next bit to understand was how we can safely evolve them over time. Manual evaluations with current models worked for the initial phase, but we needed better assurance as we continued to iterate on the tools’ shape and descriptions. We ended up splitting the tool-related CI tests into two categories. The first was deterministic tests that make sure the tools do what they should when called. Those are very similar to any other JS tests we have in our setup. But we also needed to make sure that our tools’ description and shape “made sense” for the different agents and models that we wanted to call them. That required eval tests using various agents, asking them to accomplish tasks, and confirming whether they called the expected tools with the expected arguments. The way we did that was by writing out the various user journeys we had in mind, and with the help of coding agents , turning those into eval JSONs that contain the user input, expected tool calls, and mocked tool output that would hopefully lead the agent to the next tool call in the journey. We run these CI tests whenever our WebMCP code changes, using the Chrome team’s WebMCP evals https://github.com/GoogleChromeLabs/webmcp-tools/tree/main/webmcp-evals project. We also contributed https://github.com/GoogleChromeLabs/webmcp-tools/pulls?q=is%3Apr+state%3Aclosed+author%3Ayoavweiss to the project to make sure any gaps we hit are addressed for the broader community. These evals are all running against models rather than actual browser agents. More on that below. The tricky bits Debugging As long as the various agents get things right, everything is peachy. But as soon as an agent gets things wrong, it gets super tricky. One recurrent issue was with our cart addition tools. Some simpler agents were calling the add to cart tool multiple times, just to be sure that the product indeed made it to the cart, despite our descriptions instructing them not to, and regardless of tool output reassuring them that the addition was successful. In testing, that meant the product landed in the cart more than once. We leveraged AgentBoard https://github.com/igrigorik/agentboard , an open source Chrome extension built by Shopify's Ilya Grigorik, that logs the agent's reasoning, then analyzes those logs for clues. This showed that a page navigation after product addition e.g. in a theme that didn’t implement the relevant Standard Action had implications on both the agent’s understanding of the tool’s outcome and our WebMCP library’s record keeping. Navigating before the tool returned its output meant the agent never saw the tool returning “success.” It also meant that any state we kept in memory got wiped out. We ended up making both more resilient using localStorage and returning the tool outcomes before a potential navigation before landing on the more robust solution we describe in the next section. Tool descriptions and outputs are not great as prompts Related to the previous point, the confusion issues were resolved when we reduced our reliance on tool descriptions and outputs as agent prompts. As it turns out, the tool’s shape was able to steer the agent far more reliably than its description. We ended up replacing our add to cart tool, in terms of shape and semantics, with UCP’s create cart and update cart tools. That means the agent has to provide as input the full state of the cart it’s updating to, and get as output the new state of the cart after the update. In case the cart changes outside of WebMCP tool calls e.g. through a direct user interaction , the tool call rejects it with an error indicating the cart change. So, the agent now receives the full cart state in the tool call output, reducing its eagerness to “make sure” by calling the same tool again. But even if it does call the tool twice, there’s no difference in outcome, as the second cart update is effectively a no-op. That change beat many iterations of prompt descriptions that told, begged, and shouted at the agent about what it should and shouldn’t do. It’s also important to point out that at least some agent vendors consider prompts telling the agent what it should do as “prompt injections,” so that’s another reason to avoid them. The missing bits How do we know it worked? Measurement and observability of WebMCP tools are still a challenge. We can count and time our own tool calls on the client-side, by wrapping them. But it’d be trickier to do that for merchant-added tools in the future. On top of that, we have no visibility as to whether the agent finished the job the user gave it, when it got confused and called the wrong tools or none at all, or whether the user was happy with the session. While there are definitely privacy hurdles to overcome with sharing this kind of information, some feedback from the agent indicating if the session went well from its perspective, would go a long way. A user’s “thumbs-down” signal would also be extremely helpful. To that end, we’ve put together a proposal for agentic real-user measurement https://github.com/WICG/agent-interaction-measurement/blob/main/README.md . How do we get a human involved? Some agentic journeys need to be able to get explicit confirmation, like when the user needs to accept the terms of a sale. Currently, our tools can tell the agent this via their descriptions, their outputs, or through the consequentialHint annotation , but it’d be significantly better to have an enforceable way that the browser can ensure the user is in the loop. We’ve made a proposal https://github.com/webmachinelearning/webmcp/issues/165 issuecomment-6414254800 on that front as well. Who's who? We run a platform that has to keep out an onslaught of bot traffic while welcoming agents that act for real buyers, without conflating the two. Agents running in a cloud browser can and should sign their requests with Web Bot Auth https://datatracker.ietf.org/wg/webbotauth/about/ . An agent running inside the user's own browser can't, because it has no safe place to keep the private key. We need to enable a way for agents to identify themselves and cryptographically prove they are working on behalf of a user in good standing. Proposals like MoLE https://datatracker.ietf.org/doc/draft-jms-mole-architecture/ can help us get there. Beyond that, it’s extremely useful to be able to distinguish between human and agentic interactions with the page. That’s another proposal https://github.com/webmachinelearning/webmcp/issues/365 we’d love to be adopted. Testing against real agents Our evals run against a range of popular models. But a real agent runs with a model, a harness, a system prompt, and various security checks. Evals against the plain model are missing these components, and there’s no way for us today to run our automated evals against full-fledged agents. It’d be great if standard testing infrastructure e.g. WebDriver BiDi exposed interfaces that would allow such testing. Page navigations reset the tools WebMCP tools register on an HTML document. As soon as the user navigates to a different page, the tools get torn down and have to be re-registered to enable the agent to use them on the new page. That requires some slightly complex loading logic, loading the tools lazily on first loads, but ensuring they are loaded ASAP on followup navigations. Even with that in place, agents can still end up confused on slow networks when tools are late to register after navigations. Instead, we’d love to be able to register tools on an extended-lifetime shared worker, and have the tools keep their registration and state across same-origin navigations. The Agentic Web WG With WebMCP gaining traction, and with its issue tracker getting more issues considered “ beyond scope https://github.com/webmachinelearning/webmcp/issues?q=state%3Aopen%20label%3A%22beyond-scope%3A%20agents-on-the-web%22 ,” it’s become clear that we need a dedicated venue to explore and define all of these behaviors. The W3C is now drafting a charter for an Agentic Web Working Group I'm one of its proposed co-chairs . The draft scope covers WebMCP, measurement, identity, automation, and an agentic threat model which maps to the gaps our WebMCP work uncovered. If the charter is approved, the group could start work in early 2027. Better agentic experiences WebMCP enables faster, cheaper, and more accurate agentic experiences, helping agent-assisted users in their web journeys. If you’re a Shopify merchant, the platform’s tools are already available to your buyers. Nothing to do on your end. If you're building tools of your own, start from your users' journeys, turn them into evals, and let the tools' shapes, rather than their descriptions, lead agents through them. It’s early days, so it’s perfectly normal and exciting that there are still quite a few things to figure out. But the W3C’s Agentic Web WG will be the right venue to work through the details and figure out a path forward. We look forward to helping shape that path.