Writing ·

What is WebMCP? Websites are starting to give AI agents a menu of actions

WebMCP lets a website hand AI agents a set of ready-made actions, like search products or add to cart, instead of making them read and click the page. What it means for businesses, and how it works.

Websites were built for people. An AI agent that wants to shop, compare or book something for you has to use them like a person would: look at the page, read the text, guess which button does what, and click. That is slow, it costs money to run, and it can break when the design changes.

WebMCP changes that. A website can now hand AI agents a short list of ready-made actions, such as “search products”, “show this product” or “add to cart”. The agent calls the action, and the website answers with exact data. No guessing, no clicking. Developers call these actions tools.

Think of a restaurant. Today an AI agent has to walk into the kitchen and work out what is cooking. With WebMCP, the website hands it a menu.

It is already happening: Shopify turned it on

WebMCP is still a draft standard, but it is already in real use. Shopify’s developer documentation says it provides WebMCP tools on every Liquid storefront, which means every store built on a Shopify theme, such as the default Dawn theme. The documentation describes no setup for merchants.

This is what people mean by agentic commerce: AI agents that shop on a person’s behalf. An AI agent visiting a Shopify store can now:

When a cart request is unclear, for example which size to add, the tool returns options to choose from instead of guessing.

I checked this on my own Shopify test store, which runs Dawn, Shopify’s free default theme, with nothing installed. Chrome listed 12 tools, a few more than the documentation describes, including add_to_cart, update_cart_lines and get_ucp_profile. The set is clearly still changing.

One tool hints at where this is heading. get_ucp_profile tells an AI agent how to shop with the store directly, using the Universal Commerce Protocol (UCP), another new standard for AI shopping. On my test store, it pointed to the store’s own service for AI agents and listed what it can do, such as search products, manage the cart and check out. So an agent can start on the web page and then continue the purchase directly with the store.

The tool descriptions are worth reading, because they are written for the AI model (the AI behind the agent, such as Gemini or GPT), not for people. The one for add_to_cart tells the agent that the shopper’s request is the permission, so it should add the items without asking again. Adding to a cart is easy to undo. Placing the order is treated very differently, as the next section shows.

Shopify notes one limit: agent support is currently only in Chromium-based browsers, such as Chrome and Edge. Still, every standard Shopify store now offers a set of actions to AI agents, without the merchant lifting a finger. That is a strong sign of where websites are going.

Why WebMCP matters

For business owners and merchants. An AI agent that only reads your page can misread a price, miss a variant or give up. It also has to work through the whole page to find one answer, which is slower and costs more to run. One that uses your website’s actions gets your real price, stock and policies, straight from your system. It can also do something useful, like put the right product in the cart. Your website starts to serve two kinds of visitors: people, and the AI agents working for them.

For shoppers and customers. Asking “any waterproof boots in size 42?” and getting a correct answer, with the right pair already in the cart, is faster than clicking through filters.

For managers and hiring teams. This is a new kind of interface to plan for, like mobile sites once were. Teams will need people who can decide which actions to offer, describe them clearly and keep them safe.

For developers. A tool is a clear contract. A redesign does not have to break it, because the agent no longer depends on where a button sits. And the website, not the agent, decides what is allowed.

  Without WebMCP With WebMCP
How the agent finds a price Reads the page and hopes it picked the right number Calls a tool and gets the exact price
When the design changes The agent can break The tools still work
Taking an action Clicks buttons and hopes they do what they look like Calls an action like “add to cart” with checked input
Who decides what is allowed The agent The website

How WebMCP works, in one picture

Diagram of how WebMCP works, using an example online store open in a browser with an AI agent side panel. 1. The web page registers its tools, such as search_products, get_price and add_to_cart. 2. A shopper asks the agent: any waterproof boots in size 42? 3. The AI model picks the search_products tool and the agent calls it. 4. The page runs the tool with its own code and returns data: 2 boots found. 5. The agent answers: yes, 2 pairs in size 42.
Text version of the diagram

An example online store is open in the browser, with an AI agent in a side panel.

  1. The page registers its tools. When it loads, the page tells the browser which actions it offers, such as search_products, get_price and add_to_cart. Each tool has a name, a description and a list of the input it needs.
  2. The shopper asks the agent: “Any waterproof boots in size 42?”
  3. The AI model picks a tool. It chooses search_products, and the agent calls it.
  4. The page returns data. The tool runs as the page’s own code and returns the result: 2 boots found.
  5. The agent answers: “Yes, 2 pairs in size 42.”

The AI model never touches the page directly. It can only ask for a tool by name, and the website’s own code does the work.

In plain steps:

  1. The website offers its tools. When the page loads, it tells the browser which actions it has. Each action has a name, a plain description of what it does, and a list of the input it needs, such as a search phrase or a size.
  2. A person asks an AI agent. The agent runs in the browser, for example as a side panel.
  3. The AI model picks an action. The agent shows the model the question and the list of actions. The model chooses one, the way you would choose a dish from a menu.
  4. The website does the work. The browser runs the action with the website’s own code and sends back the result.
  5. The agent answers. The model turns the result into a reply.

WebMCP comes from the same idea as MCP (Model Context Protocol), the standard many AI apps use to connect to tools on a server. I built one of those for a store in shop_mcp_server. The difference is where the tools live: an MCP server runs on a server, and WebMCP tools are offered by the web page itself.

Reading is easy, doing needs care

Some tools only read, like “show product details”. Others change something, like “add to cart”. Tools that change something need more care:

What I built on this website

To learn WebMCP properly, I added it to this website. It offers five read-only tools, so an agent can look things up but never change anything:

Tool What an agent gets
get_services The four services I offer, who each is for, and the page link
get_service_details One service in detail: what is included, who it is for, how to start
get_ai_discoverability_plans Every plan with its price, delivery time and what is included
get_contact_options My email, links a person can open to write to me, my location and working hours
get_resume_summary My role, experience, skills, selected projects and education

If an agent needs to contact me, the tool gives it a link for the person to open. Nothing is sent by the tool itself.

Every page of this website, including this one, offers these five tools. In a browser with WebMCP turned on, an AI agent can use them right away.

For developers: how it is built

The script checks that the browser supports WebMCP and stops otherwise, so every other browser is unaffected:

var mc = document.modelContext || navigator.modelContext;
if (!mc || typeof mc.registerTool !== "function") return;

Each tool is a plain object: a name, a description for the model, a JSON Schema for its input, and a function to run:

mc.registerTool({
  name: "get_service_details",
  description: "Returns one service in detail: summary, what is included, who it is for, how to start and the page URL. Use a slug from get_services.",
  inputSchema: {
    type: "object",
    properties: { slug: { type: "string", enum: slugs } },
    required: ["slug"]
  },
  execute: withData(function (data, input) { /* find the service */ }),
  annotations: { readOnlyHint: true }
});

The API follows the WebMCP draft from the W3C Web Machine Learning Community Group, dated 15 October 2026. It is not a final standard yet, and it has already changed once: older examples use navigator.modelContext, the current draft uses document.modelContext, and in Chrome 155 only document.modelContext exists.

What a real test showed

I tested it in Chrome 155 with the WebMCP testing flag turned on, using Google Chrome Labs’ WebMCP extension with Gemini as the AI model.

The extension found all five tools. When I asked about the AI discoverability plans, its log showed two calls to the model:

  1. The model picked a tool. It received my question and the list of tools, and answered only with “call get_ai_discoverability_plans” (about 2.4 seconds).
  2. The model wrote the answer. The tool ran on the page, and the model turned the plan data into a reply (about 7.5 seconds).

These timings come from one test, not a benchmark.

Five things I learned:

What it does not do yet

What to do now

If you want WebMCP tools on your own website or Rails app, see AI engineering and integration, or Shopify and e-commerce development for stores.

Frequently asked questions

What is WebMCP in simple words?
It is a way for a website to tell AI agents which actions it offers, such as search products, check the cart or answer a policy question. The agent can then call those actions directly instead of reading the page and guessing which buttons to click.
Does Shopify support WebMCP?
Yes. Shopify’s developer documentation says it provides WebMCP tools on every Liquid storefront, meaning every store built on a Shopify theme, with tools to search the catalog, show product details, manage the cart, go to checkout, open order history and answer policy and FAQ questions. Eligible checkouts add their own tools, and stores with a custom-built Hydrogen storefront can turn WebMCP on.
Can WebMCP tools take actions, like adding to a cart?
Yes. Shopify’s tools can add items to the cart, change quantities and take the shopper to checkout, and its checkout tools can place the order once the buyer confirms it. Tools that change something should check their inputs and leave important decisions, like paying, to the person.
Is WebMCP safe? Can an AI agent buy something without me?
A website decides which actions it offers, and the agent can only use those. Reading information is low risk. Actions like adding to a cart need more care: the tool should check what the agent sends, and anything important, like paying, should be confirmed by the person. Shopify’s checkout tools, for example, place an order only after the agent shows the buyer the order and the total and gets their permission.
Do I need WebMCP on my website?
If your store runs on a standard Shopify theme, you already have it. For other websites, not yet: in October 2026 only a few AI agents in Chrome and Edge can use it. Start with the basics first: clear product information and pages that AI tools can read, because WebMCP tools can only share the data you have.
How is WebMCP different from showing up in ChatGPT or Google?
They solve different problems. ChatGPT, Perplexity and Google Search collect page content with their crawlers, and crawlers do not call WebMCP tools, so showing up in their answers depends on clear, complete information on your pages. That is the work of SEO, and of GEO and AEO for AI answers. WebMCP helps later, once an AI agent is already on your site, working for a shopper.
Is WebMCP the same as MCP?
It comes from the same idea. MCP (Model Context Protocol) is a standard that lets AI apps use tools running on a server. WebMCP brings those tools into the web page itself, so they run in the visitor’s browser. In both, each tool has a name, a description, the input it needs and a function that does the work.
Which browsers support WebMCP?
In October 2026 it is still experimental. Chrome and Edge are testing it with developers and selected websites. Firefox and Safari do not support it yet.

Ask an AI assistant

Each assistant answers on its own. For exact prices and scope, the plans on this site are the source.

Related

All writing