
AI agents are changing how people use the internet, but the web was never built for them. WebMCP is a proposed browser standard that lets a website hand AI agents a set of structured tools, so they call functions instead of guessing their way through buttons and forms. Here’s what WebMCP is, how it works (with code), how it differs from MCP, and where it stands in Chrome today.
Key Takeaways
- WebMCP (Web Model Context Protocol) is a proposed web standard, edited by engineers from Google and Microsoft in the W3C Web Machine Learning Community Group. It lets websites expose JavaScript functions as “tools” that AI agents in the browser can call directly.
- Two APIs: the Imperative API (
document.modelContext.registerTool()) is in the spec today. The Declarative API, which turns an HTML form into a tool with attributes liketoolname, is still a proposal. - WebMCP is not the same as MCP. MCP connects AI apps to servers. WebMCP runs inside a web page, in the browser, with the user’s session.
- Status (November 2026): experimental. It’s behind a flag in Chrome, and there are origin trials from Chrome 149 and Edge 150. Firefox and Safari haven’t committed. It’s not on by default anywhere yet.
See what MaslonLabs has built for Android.
Explore our apps →The Web Was Built for Humans. AI Agents Are a Different Story.
When Tim Berners-Lee designed the World Wide Web, he had one type of user in mind: a human being, sitting in front of a screen, reading text, clicking links, and filling out forms. For over three decades, that assumption held.
But something has changed. AI agents (software that browses the web, completes tasks, and makes decisions on your behalf) are becoming a real part of how people use the internet. And they don’t experience the web the way humans do.
For an AI agent, a website is not a visual experience. It’s a mess of HTML, JavaScript, and CSS that was never meant to be navigated programmatically. Clicking buttons, filling forms, and extracting structured information is slow, fragile, and error-prone. The web, as it was built, simply doesn’t speak AI.
That’s the problem WebMCP is designed to solve.
What Is WebMCP, Exactly?
WebMCP is a JavaScript API that lets a web page register tools for AI agents. A tool is a function with a name, a plain-language description, and a JSON Schema describing its inputs. Instead of reading pixels or the DOM, an agent asks the browser which tools the page offers and calls the right one with structured arguments.
Instead of an agent trying to book a flight by clicking through a visual interface, the website says: “Here’s a search_flights tool. Give me an origin, a destination, and a date, and I’ll return the results.” The tool runs in the page’s own JavaScript, so it uses the same logic, session, and login as the human-facing interface.
The WebMCP specification is a Draft Community Group Report published by the W3C Web Machine Learning Community Group. It is not (yet) a W3C Standard. Its editors come from Microsoft and Google, and Chrome’s documentation describes WebMCP as “a proposed web standard.” Google covers it as part of its push for the “agentic web” in the Chrome for Developers WebMCP docs.
The Problem With How AI Agents Browse Today
To understand why WebMCP matters, you need to understand how AI agents currently interact with websites, and why it’s such a poor experience.
Today, most browser-based AI agents use a technique called DOM actuation, often combined with screenshots. They look at the Document Object Model (the underlying structure of a web page), try to identify interactive elements like buttons, inputs, and links, and then simulate user actions to interact with them.
This approach works sometimes, but it has serious limitations:
- It’s slow. An agent navigating a multi-step form has to load pages, wait for JavaScript to execute, and process visual layouts. All of that takes time and compute.
- It’s fragile. A small change to a website’s HTML structure can break an agent’s ability to interact with it entirely.
- It’s imprecise. Agents have to guess at intent. A button labeled “Continue” might mean something different on a checkout page than on a survey.
- It’s uncontrolled. From the website owner’s perspective, there’s no way to guide or constrain how an AI agent uses your site.
WebMCP addresses these problems by replacing guesswork with an explicit contract between the website and the agent.
How WebMCP Works: The Imperative and Declarative APIs
WebMCP has two complementary APIs. They’re at different stages, so it’s worth knowing which one you can actually build with today.
The Imperative API (in the spec)
The Imperative API is the core of WebMCP. You register a tool from JavaScript with document.modelContext.registerTool(). Each tool has a name, a description the agent reads to decide when to use it, an inputSchema (JSON Schema), and an async execute function that does the work and returns a result. Here’s a minimal example:
if ("modelContext" in document) {
const controller = new AbortController();
document.modelContext.registerTool({
name: "search_products",
title: "Search products",
description: "Search the product catalog by keyword, with an optional maximum price in EUR.",
inputSchema: {
type: "object",
properties: {
query: { type: "string", description: "What to search for, e.g. 'running shoes'" },
maxPrice: { type: "number", description: "Maximum price in EUR" }
},
required: ["query"]
},
annotations: { readOnlyHint: true },
async execute({ query, maxPrice }) {
const params = new URLSearchParams({ q: query });
if (maxPrice) params.set("max_price", maxPrice);
const res = await fetch("/api/search?" + params);
return await res.json(); // serialized to JSON for the agent
}
}, { signal: controller.signal });
// Later, to remove the tool: controller.abort();
}
A few details from the current spec are worth knowing:
- Unregistering: there’s no
unregisterTool(). You remove a tool by aborting theAbortSignalyou passed when registering it. - Annotations: optional hints tell the agent how careful to be.
readOnlyHintmarks tools that only read data.consequentialHintmarks actions with real-world effects, like placing an order.untrustedContentHintflags output that may contain untrusted content. - Return value: whatever
executeresolves with is serialized to JSON and handed to the agent. A plain object is fine. - Naming change: early demos used
navigator.modelContext. The spec now defines the API ondocument.modelContext, so older tutorials may not work as written.
The Declarative API (proposal)
The Declarative API aims to make simple, form-based actions agent-ready with no JavaScript at all. You add attributes to an ordinary HTML form, and the browser turns it into a tool. The form’s field names become the tool’s input parameters:
<form toolname="search_flights"
tooldescription="Search one-way flights by route and date"
action="/flights">
<input name="from" required
toolparamdescription="Departure airport IATA code, e.g. WAW">
<input name="to" required
toolparamdescription="Arrival airport IATA code, e.g. LHR">
<input type="date" name="date"
toolparamdescription="Travel date">
<button type="submit">Search flights</button>
</form>
By default, the agent fills in the form and the browser focuses the submit button, so the user stays in the loop and submits it. The toolautosubmit attribute lets the agent submit on its own, and SubmitEvent.agentInvoked tells your code that an agent sent the form.
Keep in mind that, as of November 2026, the Declarative API lives in a separate explainer and “is not part of the specification at this time.” Attribute names may still change.
Curious what we’ve built with these ideas?
Explore our Android apps by MaslonLabs →WebMCP vs MCP: What’s the Difference?
The names are similar on purpose. WebMCP borrows MCP’s idea of tools (name, description, input schema), but it solves a different problem in a different place:
| MCP (Model Context Protocol) | WebMCP | |
|---|---|---|
| Where it runs | A separate server (local or remote) that an AI app connects to | Inside a web page, in the user’s browser |
| Who provides the tools | A server you build and host | The website itself, in its front-end JavaScript |
| Who calls them | AI apps and IDEs such as Claude, ChatGPT or Cursor | AI agents built into or connected to the browser |
| Authentication | API keys or OAuth, set up for the server | The user’s existing session on the site |
| Works when | Any time the server is running | Only while the page is open in a tab |
| Status (Nov 2026) | Widely adopted open protocol | Experimental: flag and origin trials |
The two complement each other rather than compete. A company might run an MCP server for back-end integrations and use WebMCP to make its public website easier for browser agents to use. If you’re interested in the server side, see our guide to the best MCP servers for SEO specialists.
Real-World Use Cases: From Flight Booking to Support Tickets
The potential applications of WebMCP go well beyond novelty. Here are some concrete examples of what becomes possible when websites speak AI:
Customer Support. A user asks their AI assistant to file a support ticket for a software bug. Instead of the agent struggling to navigate a ticketing interface, the website exposes a create_ticket tool that accepts a description, category, and severity level. The ticket is created accurately, with all the right fields populated, in seconds.
E-Commerce. A user wants a specific type of running shoe in size 42, under €100, available for next-day delivery. An AI agent can search, filter, and configure options using structured tools, with no need to simulate scrolling through a product grid or clicking dropdown menus. Checkout would be marked as a consequential action, so the agent knows to confirm with the user first.
Travel. Planning a trip involves dozens of small decisions: departure city, arrival city, dates, number of passengers, seat preferences, baggage options. WebMCP lets travel websites expose each of these as a structured action, so an agent can handle a booking flow accurately and without misclicks.
These are the kinds of use cases Google and the spec authors highlight as the main motivation for WebMCP.
What This Means for Web Developers
If you build websites or web applications, WebMCP is worth paying attention to now, even though it’s still experimental.
The core idea is that you add tool definitions to your existing site, declaring what agents are allowed to do and how. This is similar in spirit to how robots.txt lets you tell search engine crawlers what to index, except that instead of restricting access, you’re enabling structured interaction.
The key benefits for developers:
- Control: You define exactly what agents can do on your site, rather than leaving it up to the agent to figure it out.
- Reliability: Tools are far less likely to break when your UI changes, since they’re defined independently of your visual design.
- Reuse: Tools can call the same front-end code and APIs your interface already uses, so there’s no separate back end to build or secure.
- Low risk: Browsers without WebMCP simply don’t have
document.modelContext, so a feature check (if ("modelContext" in document)) keeps everything else working as before.
One thing WebMCP is not, at least today, is an SEO signal. Google Search doesn’t use WebMCP tools for crawling or ranking. Its value is in how agents interact with your pages once a user is already there.
Want to see functionality-first design in action?
Browse our Android apps by MaslonLabs →How to Try WebMCP in Chrome
You don’t need to join a program to experiment with WebMCP anymore. According to the Chrome docs, there are three routes:
- Local testing with a flag. Open
chrome://flags/#enable-webmcp-testing, set it to Enabled, and relaunch Chrome. - Origin trial for real users. From Chrome 149 you can register your site for the WebMCP origin trial and enable the API for visitors without a flag.
- Inspect and debug. Chrome DevTools has a WebMCP pane in the Application panel that lists available and invoked tools and lets you run a tool by hand. Google also publishes a Model Context Tool Inspector extension and demo sites in the webmcp-tools repository.
WebMCP requires a secure context (HTTPS). It’s enabled by default in top-level pages and same-origin iframes. Cross-origin iframes need allow="tools", and sites can switch it off with the Permissions-Policy: tools=() header.
What About User Control and Privacy?
Any time AI agents take actions on behalf of users, questions of control and privacy are legitimate and important.
WebMCP doesn’t give AI agents unlimited access to your site. Developers define a specific, bounded set of tools, and anything outside those tools isn’t reachable through WebMCP. Because tools run in the page with the user’s own session, an agent can only do what that user could already do. Annotations like consequentialHint let sites tell agents which actions need extra care or confirmation.
That said, the permission model, consent flows, and protections against prompt injection through tool output are still being worked out in the spec. That’s one of the main reasons it’s in origin trials rather than shipped by default.
Where Is WebMCP Now, and What Comes Next?
Here’s where things stand as of November 2026:
| Browser / milestone | Status |
|---|---|
| February 2026 | Google opens an early preview program for prototyping |
| Chrome | Local testing via chrome://flags/#enable-webmcp-testing; origin trial from Chrome 149 |
| Microsoft Edge | Origin trial from Edge 150 |
| Firefox, Safari | No implementation; standards-position discussions only |
| Specification | W3C Community Group draft (not on the W3C Standards Track yet) |
The APIs are still changing (the move from navigator.modelContext to document.modelContext is a recent example), so anything you build now should be treated as an experiment. The WebMCP GitHub repository tracks the spec, open issues, and implementation status.
WebMCP is one of several emerging standards for the agentic web. For AI shopping specifically, see what the Universal Commerce Protocol (UCP) does.
Related reading: what is the agentic web? and the best agentic browsers in 2026.
Frequently Asked Questions
What does WebMCP stand for?
WebMCP stands for Web Model Context Protocol. It brings the “tools” idea from the Model Context Protocol (MCP) into the browser, so web pages can expose functions to AI agents.
Who created WebMCP?
WebMCP is developed in the W3C Web Machine Learning Community Group. The specification’s editors are engineers from Microsoft and Google, and Chrome and Edge are the first browsers testing it.
Is WebMCP the same as MCP?
No. MCP connects AI applications to servers you run. WebMCP lets a web page register tools in the browser, where they run with the user’s session and only while the page is open.
How do I enable WebMCP in Chrome?
For local testing, open chrome://flags/#enable-webmcp-testing, set it to Enabled, and relaunch Chrome. To enable it for real visitors, register your site for the WebMCP origin trial, available from Chrome 149.
Is WebMCP available in all browsers?
Not yet. As of November 2026, WebMCP is in origin trials in Chrome (from version 149) and Edge (from version 150). Firefox and Safari haven’t committed to implementing it.
Does WebMCP help SEO?
Not directly. Google Search doesn’t use WebMCP for crawling or ranking. It’s about making your site easier for AI agents to use once a user is on it, which may matter more as agent-driven browsing grows.
The Internet Is Getting a New Layer. Are You Ready?
The web has evolved in layers. First came HTML. Then CSS. Then JavaScript. Then APIs. Each new layer didn’t replace what came before. It extended it, opening up possibilities that didn’t exist before.
WebMCP feels like the beginning of the next layer: a web that isn’t just human-readable, but agent-readable. A web where your website can communicate directly with the AI tools your users rely on, in a language they both understand.
This doesn’t mean the visual web goes away. It means the visual web gets a counterpart: a structured, programmable interface built for the agents that increasingly act on our behalf.
For developers, the opportunity is clear: understand the standard early, experiment behind the flag or in the origin trial, and be ready for the agentic web before it becomes the expectation.
The web was built for humans. But the next version will need to speak to both.



