WebMCP is a proposed web standard that lets a page offer tools to compatible AI agents. The page registers them in JavaScript, with document.modelContext.registerTool(); the agent calls them and each tool's code runs inside the page, with the permissions it already has. Chrome offers it as experimental.
🌐The page registers a tool→🤖The agent discovers it→🛒Calls it with data→👤You confirm if required→✅The page acts
Put it to the test
A question from the app. Pick an answer.
The Miga app connects to an inventory MCP server. Who offers "check stock"?
The app uses an MCP client to discover and use what the server offers, but does not provide it.
The model does not know how much bread is left. It can ask to use the tool, but it is not built in.
The server exposes its capabilities: tools like "check stock" and resources to read.
An online grocery store wants an agent to be able to put together an order. The page registers an "add to cart" tool, with its name, a description and the data it takes: product and quantity. The agent calls it and the page updates the cart with its own code. If the store moves the button but keeps the tool, the agent keeps making the same call.
It is designed for the agent to work with you on the page, not to do everything alone. The store can show you how the cart changes and leave the final payment for you to confirm. The agent or the browser can also ask you to confirm before a sensitive action.
WebMCP vs MCP
With MCP, the AI app discovers the tools exposed by an MCP server, on your machine or in the cloud. With WebMCP, the page itself offers them, and its code can call the site's APIs. If you are already signed in to the store, a tool can update your account's cart with the permissions the page already has, without the site setting up a separate MCP server.
That is why WebMCP is not a new version of MCP: it takes the idea of tools and brings it to the page. An agent built into an AI browser or into the site itself can use it, if that integration supports WebMCP.
Can you use it today?
It is still a draft from the W3C Web Machine Learning Community Group, with editors from Google and Microsoft. Chrome opened an origin trial for sites starting in version 149, and to try it on your machine there is the chrome://flags/#enable-webmcp-testing flag. Calling the tools takes a compatible agent. And it can change: it already moved from navigator.modelContext, which shows up in older examples, to document.modelContext.
A page offering tools does not make it trustworthy. Each tool description is written by the page, and a shady page can hide orders for the model there: that is prompt injection. One safeguard for sensitive actions is to require your confirmation before they run.
Now, play it
From answering to doing
A chat tells you what to change. A coding agent changes it. Me? I just have opinions.