Diagram of an AI agent calling structured WebMCP tools on a website instead of reading screenshots.

WebMCP Explained: How Websites Talk to AI Agents — A Marketer’s Guide (Updated December 2026)

Short answer: WebMCP (Web Model Context Protocol) is a proposed browser standard that lets a website tell an AI agent, in structured code, exactly what actions it can take — search, filter, book, add to cart — instead of forcing the agent to guess from screenshots and HTML. The page registers named tools with typed inputs; the browser mediates; the agent calls the tool; the user stays in control. As of December 2026 it is a W3C Community Group draft running in Chrome and Edge origin trials — real enough to pilot, not yet a finished standard.

I first wrote about WebMCP in February 2026, days after the draft appeared. A lot has changed since then: the API moved, Chrome opened an origin trial, Microsoft Edge joined, and the security guidance got serious. This is the updated, complete explainer — written for marketers and analysts, not just developers — including the part most guides skip: how you measure what agents do on your site.

What is WebMCP?

WebMCP is a browser API that enables web applications to provide JavaScript-based tools to AI agents. A tool is a named action with a plain-language description and a JSON Schema describing its inputs — for example, search_products requiring a category string and returning a list of items.

Think of the difference this way. Without WebMCP, an agent visiting your site behaves like a person squinting at a screen: it takes screenshots, guesses which blue box is the Search button, clicks, and hopes. With WebMCP, your page hands the agent a menu: “Here are the four things you can do here, here is what each one needs, here is what you get back.” The interpretation burden moves from the agent to the website — where it belongs, because only the website knows what its buttons actually mean.

WebMCP is incubated in the W3C Web Machine Learning Community Group and co-authored by engineers from Google and Microsoft. The first Draft Community Group Report was published on February 10, 2026. It is important to be precise about status: a Community Group draft is not a W3C Standard and is not yet on the W3C Standards Track. The draft is revised often — the version current at the time of writing is dated December 2, 2026 — so treat API details as moving targets and feature-detect everything.

Why does the web need WebMCP now?

AI agents are becoming a real class of website visitor. A shopper asks an assistant to find running shoes under $150; a traveller asks an agent to compare hotels and hold a room. Today those agents mostly navigate the human interface — screenshots, DOM scraping, simulated clicks. That approach has three structural problems:

  1. It is brittle. Change a button colour, move a form, A/B test a layout, and the agent’s mental map breaks.
  2. It is expensive. Every screenshot and page dump costs tokens. Early Chrome and MCP-B benchmarks reported a simple task dropping from about 3,801 tokens with screenshots to about 433 tokens with a structured tool call — roughly 89% fewer tokens, with complex tasks around 77% fewer. Treat those as early benchmark figures, not guarantees; your mileage will vary by page and task. The direction, however, is not in doubt: a typed function call is cheaper than reading a whole page as pixels.
  3. It is unaccountable. When an agent clicks through your checkout, your analytics sees a confusing trail of pageviews. When it calls a named tool, you get a clean, measurable event — and as an analytics person, that is the part I care about most. More on measurement below.

How does WebMCP work?

A WebMCP tool has four parts: a name (short, stable, e.g. search_flights), a description in plain language (the agent’s only guide for when to call it), an inputSchema (JSON Schema: types, required fields, enums), and an execute function that runs the action and returns a structured result. The browser holds the registrations for the open tab; the agent discovers the tools, reads the schemas, and calls them. Tools are ephemeral — they exist only while the page is open, inside the user’s signed-in session, with the user’s cookies and permissions.

There are two ways to register tools, and they can be combined on one page.

What is the declarative API?

The declarative API turns an existing HTML form into a tool with attributes — no JavaScript required. The form keeps working normally for humans; the annotations make it callable for agents.

<form toolname="search_articles"
      tooldescription="Search articles on this site by keyword and category"
      toolautosubmit>
  <input name="query" type="text"
         toolparamdescription="Keywords to search for">
  <select name="category"
          toolparamdescription="Article category">
    <option value="adobe">Adobe & Measurement</option>
    <option value="ai-agents">AI Agents & MCP</option>
    <option value="decision-science">Decision Science</option>
  </select>
  <button type="submit">Search</button>
</form>

Three attributes do the work. toolname (required) names the tool. tooldescription (required) tells the agent what the form does and when to use it. toolautosubmit (optional) lets the agent submit the form itself; without it, the form is populated and the user confirms. On individual fields, toolparamdescription describes each input. The browser automatically synthesizes the JSON Schema from the form — field names become properties, required becomes required, input types and select options become constraints. If the action already exists as a form (search, contact, quote, booking), declarative is the right first step: two attributes and you are agent-ready.

One status note: the declarative form API is documented and shipped in Chrome’s implementation; the Community Group draft removed its declarative section in October 2026 pending a redesign, so treat the form attributes as Chrome-led for now and feature-detect.

What is the imperative API?

The imperative API registers tools in JavaScript, for anything a form cannot express: filtering results, changing app state, multi-step flows, calling your own APIs.

const modelContext = document.modelContext ?? navigator.modelContext;

if (modelContext) {
  await modelContext.registerTool({
    name: "search_products",
    description: "Search the product catalogue by category and maximum price. Returns matching products with prices.",
    inputSchema: {
      type: "object",
      properties: {
        category: { type: "string", description: "Product category" },
        maxPrice: { type: "number", description: "Maximum price in CAD" }
      },
      required: ["category"]
    },
    annotations: { readOnlyHint: true },
    execute: async ({ category, maxPrice }) => {
      const results = await searchCatalogue(category, maxPrice);
      return { products: results };
    }
  });
}

One change since my February post matters here: early Chrome previews exposed the API as navigator.modelContext; the specification settled on document.modelContext, and Chrome 150 deprecated the navigator alias. Feature-detect both, as in the snippet above. Tools can be listed with getTools(), changes fire a toolchange event, waitForToolsUntil() (added November 2026) lets the browser wait until a page’s tools have stabilised before an agent observes them, and passing an AbortController signal at registration lets you unregister cleanly when app state changes — stale tools must come down, just as stale tags must.

Chrome’s guidance on tool descriptions is worth following literally: keep descriptions under 500 characters, parameter descriptions under 150, names short, and outputs concise. Write descriptions like documentation, because for the agent, that is exactly what they are.

WebMCP vs MCP: what is the difference?

They share a name and a vocabulary — tools, schemas, structured arguments — but they operate at different layers.

MCP (Model Context Protocol)WebMCP
Where it runsBackend servers, local appsInside the browser tab
Who provides toolsA server you connect toThe web page itself
LifetimePersistent connectionEphemeral — dies when the tab closes
SessionAPI keys / server authThe user’s live browser session, cookies, login
PrimitivesTools, resources, promptsTools only (today)
Best analogyA 24/7 call centre, reachable from anywhereThe in-store expert, available when you walk in

MCP, introduced by Anthropic in November 2024, connects AI applications to external systems — databases, APIs, file systems — over a persistent protocol. WebMCP brings the same tool-calling idea into the frontend: the page becomes a mini-server for the agent sitting next to the user. Chrome’s own framing is that MCP is the backend and WebMCP is the frontend; WebMCP does not replace MCP, and the browser can translate page tools into MCP format when talking to agents. If you run a store, your backend MCP server can search the catalogue for any agent, anywhere; your WebMCP tools let the agent in the shopper’s browser use this page, with this cart, right now.

WebMCP vs UCP: do ecommerce sites need both?

Yes — they solve different problems. The Universal Commerce Protocol (UCP), announced by Google and Shopify in January 2026, standardizes the commerce journey itself: product discovery, cart, checkout, orders — the shared rails that let an agent buy from any participating merchant, including inside Google AI Mode and Gemini. WebMCP standardizes nothing about commerce; it lets a single site expose its own bespoke actions — the configurator, the sizing quiz, the B2B quote flow, the booking calendar — that no generic commerce protocol covers.

The simple mental model: UCP is how the agent buys the thing. WebMCP is how the agent uses your pages to decide what to buy and what happens around the purchase. OpenAI and Stripe’s Agentic Commerce Protocol (ACP) plays a similar checkout role inside ChatGPT. These layers compose; they are not rivals. (I covered UCP separately in my January post on Google’s commerce protocol.)

Is WebMCP secure?

This is where the 2026 guidance matured most, and where my February post was too casual. A registered tool executes inside the live page under the user’s signed-in session — every capability you expose is a capability an agent can exercise with that user’s authority. Chrome’s security guidance is blunt about the core risk: language models treat instructions and data as one stream of tokens, so they are susceptible to indirect prompt injection — malicious instructions hidden in user-generated content or third-party data. Safety cannot be guaranteed inside a probabilistic model, so WebMCP layers controls around it:

  • readOnlyHint — marks tools that only read data and change nothing, so agents can call them without pestering the user. Mark every pure lookup read-only; permission fatigue is itself a security risk.
  • consequentialHint — marks high-stakes or non-reversible actions (booking travel, transferring money, deleting records) so the browser or agent requests explicit user confirmation before execution.
  • untrustedContentHint — labels tool output containing user-generated or external data as untrusted, signalling the agent to treat it as data, not instructions.
  • Exposure is closed by default. Other websites and cross-origin iframes cannot see your tools unless you name their origins in the exposedTo option. Expose tools only to origins you would trust with the underlying data — remember a read-only tool like getFavoriteProducts still reveals information about a user.
  • Validate inputs, return safe errors. Check every argument before acting; return fixed, descriptive error text rather than passing upstream error messages to the model.

Be clear-eyed about the limits: the hints are advisory signals, not enforcement — a malicious site can omit or spoof them, and the specification says agents must not blindly trust them. The practical rule for site owners: expose the minimum capability, mark risky actions honestly, validate everything server-side as you would any API, and keep a kill switch per tool.

Which browsers support WebMCP today?

As of December 2026: Chrome and Edge, experimentally; nobody else. The timeline:

DateMilestone
Aug–Sep 2025Google and Microsoft proposal accepted in the W3C Web Machine Learning Community Group
Feb 10, 2026W3C Draft Community Group Report published; Chrome 146 Canary early preview behind a flag
May–Jun 2026Chrome 149 origin trial announced — registered sites can enable WebMCP for real visitors with a trial token, no flag needed
Sep 2026Chrome trial extended through Chrome 162 after feedback suggested API improvements
2026Microsoft Edge origin trial live from Edge 150
Dec 2, 2026Current draft revision (generic tool-calling explainer added; waitForToolsUntil() refined Dec 1); still a Community Group draft, not a W3C Standard

For local development, enable chrome://flags/#enable-webmcp-testing and inspect registered tools in the Chrome DevTools WebMCP panel. For production pilots, register your origin for the Chrome (and Edge) origin trial and serve the token via meta tag or response header. Firefox and Safari do not ship an implementation, and no browser enables WebMCP for all users yet. Everything must be progressive enhancement: feature-detect, and make sure the page works perfectly when modelContext does not exist — which, today, is most of the time.

Honesty about agent consumption matters too. Gemini in Chrome is the primary in-browser consumer today, and the broader agent ecosystem is still wiring up to call page tools. Shipping WebMCP now is buying an option on the agentic web at low cost — not harvesting traffic that already exists. Anyone telling you otherwise is selling something.

What does WebMCP mean for marketers and analysts?

This is the section I wish existed in February. Four implications matter if you own measurement:

  1. Agent actions become first-class analytics events. A tool call is a named, typed event: tool name, arguments, result, success or failure. Instrument it like any other conversion action. In the execute function (or on form submit for declarative tools), push a structured event to your data layer — webmcp_tool_call with tool_name, tool_outcome, and non-sensitive parameters — and pick it up in Adobe Launch or Google Tag Manager. For the first time, “the agent searched, compared, and booked” is a clean funnel instead of a smear of synthetic pageviews.
  2. Attribution gets a new actor. When an agent completes a purchase inside the user’s session, last-click models will credit the session, not the agent’s research path. Decide now how you will tag agent-assisted conversions (a traffic_type: agent_assisted dimension is a reasonable start), or your channel reports will quietly mislead you within a year.
  3. Consent and governance apply to tools, not just tags. A tool that reads personalization data or writes to an account is a data-processing surface. It belongs in your tag governance process: naming standards, schema review, consent checks before consequential tools run, QA in staging, versioned releases. If you run Adobe Launch, treat tool registration like a Launch rule — reviewed, tested, and removable.
  4. Being usable beats being merely findable. AEO and GEO get your content cited in AI answers; WebMCP gets your site used by agents after the citation. The two compound: cited content brings the agent to your page, structured tools let it finish the job, and clean tool-call events prove the revenue. Sites that are only readable will lose tasks to sites that are operable.

A practical QA checklist, borrowed from tag management discipline: every tool has a stable name and a description a stranger could act on; schemas reject bad input; read-only tools are marked; consequential tools confirm with the user; untrusted outputs are labelled; errors return safe text; tools unregister when state changes; analytics events fire once, with consent respected; and the whole layer can be switched off without touching the underlying forms.

Should you implement WebMCP now?

It depends on what your site does:

Site typeVerdict for early 2027
Content / blogPrepare cheaply: annotate search and contact forms declaratively; focus energy on citable content (AEO/GEO)
Ecommerce with configurators, quizzes, bookingPilot now: read-only search/filter tools first, consequential actions behind confirmation
SaaS dashboards, complex web appsPilot imperative tools for core verbs; expect API churn, isolate behind feature detection
Regulated / high-risk transactionsWait for the standard to settle; do the security review and form hygiene now

The work under WebMCP pays off with or without it: clear form labels, semantic HTML, documented actions and clean analytics events make your site better for humans, search engines and agents alike. Start with one read-only tool on your highest-intent form this quarter. That is an afternoon of work and a permanent head start.

How do I get started with WebMCP today?

  1. Audit your forms. List the actions visitors take: search, filter, quote, book, subscribe, checkout. The highest-intent form is your first tool.
  2. Annotate declaratively. Add toolname, tooldescription and toolparamdescription; keep descriptions under 500 characters.
  3. Enable locally. Turn on chrome://flags/#enable-webmcp-testing, open DevTools, and confirm your tools appear in the WebMCP panel with correct schemas.
  4. Add one imperative tool for a dynamic action, with readOnlyHint or consequentialHint set honestly and input validation in execute.
  5. Instrument it. Fire a webmcp_tool_call analytics event; verify it in Adobe Launch / GTM debug mode and in your reports.
  6. Join the origin trials (Chrome 149+, Edge 150+) so real visitors’ agents can use the tools without flags.
  7. Track and iterate. Log tool calls, failures and confirmations; review monthly as the draft evolves — the API moved once already (navigator to document) and will move again.

Frequently asked questions

What is WebMCP in one sentence?

WebMCP is a proposed browser standard that lets a website expose its actions as structured, callable tools so AI agents can use the site directly instead of guessing from screenshots.

Is WebMCP the same as MCP?

No. MCP connects AI applications to backend servers and data sources over a persistent protocol. WebMCP runs inside the browser tab, exposes the open page’s own actions for the length of the session, and currently implements tools only. They are complementary layers — backend and frontend.

Does WebMCP replace SEO or AEO?

No. WebMCP does not make your content discoverable or citable; search and answer engines still decide what to retrieve and quote. WebMCP makes your site operable once an agent arrives. You need citable content and usable tools.

Which browsers support WebMCP?

Chrome (origin trial from Chrome 149, extended through Chrome 162) and Microsoft Edge (origin trial from Edge 150). No browser enables it for all users yet, and it remains a W3C Community Group draft, not a finished standard.

Is WebMCP secure?

It has layered controls — read-only, consequential and untrusted-content hints, closed-by-default tool exposure, and user confirmation for irreversible actions — but hints are advisory and prompt injection cannot be fully prevented in probabilistic models. Expose minimum capability, validate inputs, and treat tools like APIs.

Do I need a backend or API to use WebMCP?

No. The declarative API is plain HTML attributes on forms you already have. The imperative API is client-side JavaScript. A backend helps for richer tools, but a search form can become a tool with two attributes.

How do I measure AI agent activity on my site?

Instrument tool calls as analytics events (tool name, outcome, non-sensitive parameters) through your tag manager, tag agent-assisted conversions as their own dimension, and track AI citations separately with a weekly prompt panel across Perplexity, ChatGPT Search, Google AI Mode and Copilot.

The bottom line

For thirty years we built websites for human eyes and hoped machines could cope. WebMCP flips that: the website declares what it can do, in a contract both humans’ browsers and agents can honour. It is early — a draft, two browsers, an ecosystem still wiring itself up — but the direction is set, the cost of starting is two HTML attributes, and the measurement discipline it demands is exactly the discipline good analytics teams already have. The sites that learn to be operable now will be the sites agents choose later.

About the author: Ganesh Sivaraman is a Senior Associate at Cognizant Technology Solutions, Canada, based in Halifax, with 18+ years in digital marketing and web analytics — Adobe Analytics and Adobe Launch implementation, tag management, and measurement governance. He writes about AI agents, MCP and the agentic web for marketers. Connect on LinkedIn; credentials on Credly.

Sources and further reading

  • W3C Web Machine Learning Community Group — WebMCP Draft Community Group Report (first published Feb 10, 2026; current draft Dec 2, 2026): https://webmachinelearning.github.io/webmcp/
  • Chrome for Developers — WebMCP documentation and origin trial: https://developer.chrome.com/docs/ai/webmcp
  • Chrome for Developers — WebMCP tool security (published Jun 9, 2026; updated Sep 1, 2026): https://developer.chrome.com/docs/ai/webmcp/secure-tools
  • WebMCP explainer and issues — GitHub, webmachinelearning/webmcp
  • Early token-efficiency benchmarks (Chrome/MCP-B figures as reported Feb 2026): LearnDevRel, “WebMCP: Chrome Just Turned Every Website Into an API for AI Agents”
  • UCP overview: Google and Shopify, Universal Commerce Protocol (announced Jan 11, 2026)

Last updated: December 3, 2026. WebMCP is a moving draft — this guide will be revised as the specification and browser trials evolve.

Scroll to Top