WebMCP is a proposed web standard that lets a website expose structured tools to AI agents working in the browser. The agent calls a described function with defined parameters, such as “submit a support request” or “add item to cart”, and no longer has to guess which button or form field does what from screenshots or the DOM.
At a glance
- Publisher
- W3C Web Machine Learning Community Group (editors from Microsoft and Google)
- Connects
- websites with AI agents in the browser
- Status
- draft (Draft Community Group Report, Oct 2, 2026), not a W3C Standard
- Browser
- Chrome origin trial from version 149
- Specification
- WebMCP Draft Community Group Report
Last checked:
How does WebMCP work?
A site registers tools, each with a name, a natural-language description, and a schema for its inputs. There are two ways to do this. The imperative API registers tools in JavaScript through document.modelContext.registerTool(), with a name, description, input schema, and an execute function. The declarative API turns an ordinary HTML form into a tool by adding attributes such as toolname and tooldescription.
WebMCP runs inside the browser, in a session where a person has asked an agent to do something. The draft specification says it borrows vocabulary from the Model Context Protocol (tools, schemas, parameters) and is designed for the web platform as a client-side complement to server-side MCP. Tool registration is disabled by default in cross-origin iframes and has to be delegated with the tools permissions policy.
When an agent triggers a declarative form, the browser sets the read-only agentInvoked flag on the SubmitEvent to true, which lets a site count agent submissions separately in analytics. With respondWith(), the page can return a structured result to the agent. With the toolautosubmit attribute, the browser submits the form and navigates as soon as the agent invokes the tool.
Who is developing WebMCP, and what is its status?
The draft is incubated in the W3C Web Machine Learning Community Group, with editors from Microsoft and Google. Chrome offers WebMCP as an origin trial starting with Chrome 149, and developers can test it locally behind a flag. Google’s documentation states that the API is under active discussion and may change.
| Protocol | Publisher | Connects | Status and version |
|---|---|---|---|
| MCP (Model Context Protocol) | by Anthropic, since 2025-12-09 at the Agentic AI Foundation (Linux Foundation) | AI applications with servers that provide data, tools and prompts | current version 2026-07-28 |
| A2A (Agent2Agent) | by Google, donated to the Linux Foundation; joining the Agentic AI Foundation announced on 2026-08-27 | AI agents from different vendors with each other | specification 1.0 (release v1.0.1 of 2026-05-28) |
| ACP (Agentic Commerce Protocol) | OpenAI and Stripe | buyers and their AI agents with businesses and payment providers | beta, current version 2026-04-17 |
| AP2 (Agent Payments Protocol) | Google; standardisation continues in FIDO Alliance working groups | AI agents, merchants and payment providers for payments on behalf of users | v0.2 (release of 2026-04-28) |
| UCP (Universal Commerce Protocol) | Google with commerce partners (incl. Shopify, Etsy, Wayfair, Target, Walmart) | platforms and AI agents with businesses (profile at /.) | stable, version 2026-08-25 |
| WebMCP (this term) | W3C Web Machine Learning Community Group (editors from Microsoft and Google) | websites with AI agents in the browser | draft (Draft Community Group Report of 2026-10-02), not a W3C standard; origin trial in Chrome from version 149 |
| NLWeb | Microsoft (announced 2025-05-19), open source under the MIT licence | websites (Schema.org and RSS content) with users and AI agents; every instance is an MCP server | open-source project without a published version number |
Versions and status as stated in each specification or on the publisher's site, checked on 8 October 2026. These protocols change quickly. MCP, ACP and UCP use date-based versions (YYYY-MM-DD), A2A and AP2 use version numbers. Sources: Model Context Protocol: Specification 2026-07-28; Model Context Protocol: Versioning; Anthropic: Donating the Model Context Protocol and establishing the Agentic AI Foundation (2025-12-09); A2A Protocol: Specification; A2A: A new chapter for A2A, joining the Agentic AI Foundation (2026-08-27); A2A releases (GitHub); Agentic Commerce Protocol (GitHub); AP2: Agent Payments Protocol; AP2 releases (GitHub); Universal Commerce Protocol: Specification overview (2026-08-25); Universal Commerce Protocol; WebMCP: Draft Community Group Report (W3C Web Machine Learning CG); Chrome for Developers: WebMCP (updated 2026-10-07); Microsoft: Introducing NLWeb (2025-05-19); NLWeb (GitHub). Last checked: .
Example
A support form exposed as a declarative tool:
<form toolname="createSupportRequest"
tooldescription="Sends a request to customer support."
action="/support">
<input name="email" type="email" required>
<textarea name="message" required></textarea>
<button type="submit">Send</button>
</form>
From these attributes, an agent can tell what the form does and which fields it needs to fill. Without the optional toolautosubmit attribute, the user still clicks Submit to send it.
Common mistakes
- Missing name or description. A declarative tool needs both
toolnameandtooldescription. According to Chrome’s documentation, removing either one unregisters the tool. - Purchases without confirmation. For sensitive actions such as purchases, Chrome’s documentation points to
requestUserInteraction()so the person confirms before the action completes. - Expecting tools in a cross-origin iframe. WebMCP is disabled by default in cross-origin frames. The iframe needs
allow="tools"before the embedded page can register tools. - Calling
respondWith()withoutpreventDefault(). To return a custom result to the agent, the page first has to stop the normal form submission withpreventDefault().
FAQ
What is the difference between WebMCP and MCP? MCP connects AI applications to servers, usually outside the browser. WebMCP is a browser API through which the page currently open in a tab offers tools to an agent. Both share terms like tools and input schemas, but WebMCP is a separate specification.
Does WebMCP affect SEO? Google has not documented WebMCP as a ranking factor. It matters for sites where agents are expected to complete tasks, for example bookings, orders, or support requests.
How do I enable WebMCP in Chrome?
For local testing, Chrome’s documentation points to the flag chrome://flags/#enable-webmcp-testing. For real visitors, a site has to register for the origin trial.
More on the searchVIU blog
Sources
- WebMCP – Chrome for Developers (checked 2026-10-07, page last updated 2026-10-01)developer.chrome.com
- WebMCP imperative API – Chrome for Developersdeveloper.chrome.com
- WebMCP declarative API – Chrome for Developersdeveloper.chrome.com
- webmachinelearning/webmcp – explainer and draft specification (W3C Web Machine Learning Community Group)github.com
- WebMCP: How to Optimize for AI Agents and Measure What They Do – searchVIU blog (2026)searchviu.com
- WebMCP – Draft Community Group Report (02.10.2026), W3C Web Machine Learning Community Groupwebmachinelearning.github.io
Last updated: