Deutsch
Agent protocols

WebMCP

Also known as: Web Model Context Protocol

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

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.

MCP: host, clients and servers, plus WebMCPAn AI application acting as host starts one MCP client per server. Each server offers tools, resources and prompts. Local servers connect via stdio, remote servers via Streamable HTTP. Below, WebMCP: a web page registers tools in JavaScript, and an agent in the browser calls them.HOSTMCP SERVERSHostAI application, e.g. a chat appMCP client 1stdioServer 1 · fileslocalToolsResourcesPromptsMCP client 2stdioServer 2 · databaselocalToolsResourcesPromptsMCP client 3Streamable HTTPServer 3 · external APIremoteToolsResourcesPromptsWEBMCP · DRAFT OF THE W3C WEB MACHINE LEARNING COMMUNITY GROUPAgent in the browsere.g. the browser’s agentcalls a toolWeb pageregisters JavaScript tools that run in the browserSchematic. As of MCP specification 2026-07-28 and WebMCP draft of Oct 2, 2026.
According to the MCP specification, a host starts one client per server. Servers offer tools, resources and prompts and run locally (stdio) or remotely (Streamable HTTP). WebMCP is a draft by a W3C community group, not a W3C standard. Here the web page provides its tools inside the browser. Sources: Model Context Protocol: Specification 2026-07-28; Model Context Protocol: Architecture; Model Context Protocol: Transports; W3C Web Machine Learning Community Group: WebMCP (draft of Oct 2, 2026).

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.

AI agent protocols compared
ProtocolPublisherConnectsStatus 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 promptscurrent version 2026-07-28
A2A (Agent2Agent)by Google, donated to the Linux Foundation; joining the Agentic AI Foundation announced on 2026-08-27AI agents from different vendors with each otherspecification 1.0 (release v1.0.1 of 2026-05-28)
ACP (Agentic Commerce Protocol)OpenAI and Stripebuyers and their AI agents with businesses and payment providersbeta, current version 2026-04-17
AP2 (Agent Payments Protocol)Google; standardisation continues in FIDO Alliance working groupsAI agents, merchants and payment providers for payments on behalf of usersv0.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 /.well-known/ucp)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 browserdraft (Draft Community Group Report of 2026-10-02), not a W3C standard; origin trial in Chrome from version 149
NLWebMicrosoft (announced 2025-05-19), open source under the MIT licencewebsites (Schema.org and RSS content) with users and AI agents; every instance is an MCP serveropen-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:

HTML
<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 toolname and tooldescription. 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() without preventDefault(). To return a custom result to the agent, the page first has to stop the normal form submission with preventDefault().

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.

Sources

  1. WebMCP – Chrome for Developers (checked 2026-10-07, page last updated 2026-10-01)developer.chrome.com
  2. WebMCP imperative API – Chrome for Developersdeveloper.chrome.com
  3. WebMCP declarative API – Chrome for Developersdeveloper.chrome.com
  4. webmachinelearning/webmcp – explainer and draft specification (W3C Web Machine Learning Community Group)github.com
  5. WebMCP: How to Optimize for AI Agents and Measure What They Do – searchVIU blog (2026)searchviu.com
  6. WebMCP – Draft Community Group Report (02.10.2026), W3C Web Machine Learning Community Groupwebmachinelearning.github.io

Last updated: