What is WebMCP?
WebMCP, explained simply: how a web page can tell an AI what it can do, beyond just being read.
For years, we optimized sites so that a human could read them and a search engine could index them. Today a new question comes up: can an AI also take action on your site?
By take action, we don't mean summarizing your home page. We mean searching for a product, checking availability, filling out a form or booking a slot, without a person clicking at every step.
WebMCP is one answer to that question. Here is what it is, where it comes from, how far along it is in Chrome and what a small business can do right now.
Reading versus acting
An AI agent can read the HTML of any public page. It understands the text, the headings, sometimes the prices shown. But reading does not mean being able to use your site as a tool.
Without a clear signal, the agent guesses. It may hallucinate an impossible action or give up. WebMCP aims to make that capability explicit: your site announces what it offers as tools to the AI.
The project's authors sum it up in their explainer on GitHub: with tools defined by the site, the agent no longer has to operate the page button by button, a method they consider fragile. It calls a function designed for the task, with clear parameters.
Where WebMCP comes from
The name refers to the Model Context Protocol (MCP), an open standard announced by Anthropic on November 25, 2024 to connect AI assistants to the systems where data lives. A business can, for example, connect its management software to an assistant through an MCP server.
WebMCP brings that idea into the browser. According to the project's repository, a page that uses WebMCP can be thought of as an MCP server built into the page. The project was started by engineers at Microsoft and Google, and its specification is published by the W3C Web Machine Learning Community Group. It is a draft community group report: the document itself states that it is not a W3C standard.
WebMCP or MCP server: what's the difference?
A classic MCP server runs on the server side: the agent talks directly to the service, without going through the website. Authentication and session state then have to be handled on that side.
With WebMCP, tools are defined in the page's code, which keeps the session and context of the user who is already logged in. The project presents WebMCP as a complement to MCP servers, not a replacement.
How it works, in short
WebMCP relies on an API that the browser exposes to the page, document.modelContext. Your site registers tools there (for example "search the catalogue" or "book an appointment") that the agent can call.
Chrome has offered it since version 149, as a trial (Origin Trial). In practice, two things make a site ready, plus one good practice:
- The trial token: you register your domain for Chrome's WebMCP trial and add the token you receive to your pages. It is temporary: once WebMCP ships for good, it will no longer be needed.
- Declared actions: in JavaScript with document.modelContext.registerTool(), or more simply with a few attributes on an existing HTML form (toolname, tooldescription).
- The good practice: check in your code that the browser supports WebMCP (if (document.modelContext)) before using it, so nothing breaks elsewhere.
Two ways to declare a tool
Chrome's documentation describes two approaches, which can be combined on the same site.
| Declarative API | Imperative API | |
|---|---|---|
| Where it happens | In the HTML of an existing form | In the page's JavaScript code |
| What you add | The toolname and tooldescription attributes, plus toolparamdescription on fields if needed | A call to registerTool() with a name, a description and a parameter schema |
| Form submission | The user clicks Submit themselves, unless the toolautosubmit attribute is present | The tool's code decides what happens |
| Best for | Contact, quote request or appointment forms | Catalogue search, filters, multi-step tasks |
The details are in the documentation for the declarative API and the imperative API. With the declarative API, the browser itself turns the form into a structured tool. It is often the simplest starting point for a small site.
How far along is it
WebMCP is not yet a feature shipped to every internet user. Chrome's WebMCP page describes it as a proposed standard, still under discussion and subject to change. Developers can test it on their own machine by enabling the chrome://flags/#enable-webmcp-testing option.
The origin trial was planned from Chrome 149 to Chrome 156. In a message posted to the blink-dev list on September 28, 2026, the Chrome team asked to extend it to version 162, explaining that feedback from participants has led to API improvements that are being implemented.
The same thread gives a sense of adoption: WebMCP tools are registered on about 0.51% of page loads in Chrome, but actual calls to those tools by agents are described as orders of magnitude lower. In other words, sites are getting ready faster than agents are using them. It is a good time to learn without pressure.
Security and good practices
A WebMCP tool acts on the visitor's behalf. The project is designed with a human in the loop: according to Chrome, tools run visibly on the page, so the person can see the task being carried out. The guides on building secure tools and best practices offer a few simple rules:
- Flag important actions: the consequentialHint annotation lets the agent or browser ask for confirmation before a booking or a payment, for example.
- Separate reading from writing: readOnlyHint indicates that a tool only reads information, without changing anything.
- Be wary of outside content: untrustedContentHint warns the agent that a tool returns content written by users, such as reviews, which could contain malicious instructions.
- Write clear, short descriptions: say what the tool does and when to use it. Chrome suggests about 500 characters per description.
- Return useful errors: a precise error message lets the model correct its parameters and try again.
Who is it useful for?
If you run an e-commerce site, a booking tool, a comparison site or any service where the end user might one day go through an AI assistant, WebMCP concerns you.
Take the fictional example of a physiotherapy clinic in Sherbrooke. Its appointment request form already exists. By adding a tool name and a description to it, the clinic lets an agent fill in the request for a patient, who only has to check the information and click Submit.
It is not reserved for big tech companies. It's a preparation layer for generative engine optimization (GEO): making your site useful to generative engines and agents, not just visible. It adds to the basics described in our article GEO or SEO for a Quebec small business, without replacing them. To be recommended in the first place, your site must first be a reliable source, as we explain in how an AI chooses its sources.
Where to start
There is no need to rebuild everything. A four-step approach is enough for most small businesses:
- Test your URL with WebMCP Check on GEOQuébec. You will see right away what is in place, what is missing, and the starter code to add to your site.
- Pick one or two actions that really matter to your customers, such as requesting a quote or checking availability.
- Read Chrome's WebMCP documentation and plan the implementation with your technical team, starting with the declarative API if those actions already go through a form.
- Register your domain for Chrome's trial, add the token, then test again.
The goal is simple: when an AI visits your site, it knows what to do.
FAQ
Is WebMCP an official standard?
Not yet. Its specification is a draft published by the W3C Web Machine Learning Community Group, which states that it is not a W3C standard. Chrome presents it as a proposed standard that may still change.
Do you need to be a programmer to add WebMCP to your site?
For an existing form, the declarative API only requires adding a few HTML attributes, such as toolname and tooldescription. For more complex tasks, the imperative JavaScript API requires a developer. In both cases, you also need to add the Chrome trial token.
Does WebMCP replace SEO or GEO?
No. WebMCP helps an agent act on your site, but the agent first has to find it and trust it. Clear content, reviews and a strong online presence remain the foundation of your visibility in search engines and AI.