WebMCP: Eight Tools That Registered Nothing for Ninety Days
Eight tools. That is how many WebMCP tools the team at ModelPiper shipped in late April. For three months, every one of them registered nothing. Not for some visitors. For every visitor, on every page load, on every dev
Eight tools. That is how many WebMCP tools the team at ModelPiper shipped in late April. For three months, every one of them registered nothing.
Not for some visitors. For every visitor, on every page load, on every device.
The site ran fine. Forms worked. Humans used it exactly as before.
Nothing threw an error, because there was nothing to throw from.
And both test suites passed the whole time. One defined a fake document.modelContext on a stub and asserted the right methods got called.
The other grepped the source for the string document.modelContext. Neither ever loaded a real browser.
Their writeup says it better than i can:
A test that checks whether your code mentions an API, rather than what that API does when called, will pass a rename, a move, and a property that was never real.
i have not seen one hype post mention it. The most useful thing written about WebMCP this year sits on page four of search results.
What the thing actually is
WebMCP is a proposed browser API under the W3C Web Machine Learning group, drafted by people at Google and Microsoft. A page calls document.modelContext.registerTool() with a name, a description, a JSON Schema, and a function.
await document.modelContext.registerTool({
name: "find-order",
description: "Look up an order by its number.",
inputSchema: {
type: "object",
properties: { orderId: { type: "string" } },
required: ["orderId"]
},
annotations: { readOnlyHint: true },
execute({ orderId }) { return lookupOrder(orderId); }
});
That is the whole idea. No server, no OAuth dance. The function runs in the tab, inside the user's session, and updates the UI the human is watching.
There is a declarative version too. Put toolname and tooldescription on a <form>, toolparamdescription on the inputs, and the browser builds the schema for you.
One detail nobody writes about. When a form submission navigates, the agent reads the tool's response from the first <script type="application/ld+json"> on the target page. The structured data you already emit for Google quietly becomes your API response.
Clever or cursed. i have not decided.
New, or MCP with extra steps
here's a question people always ask. Isn't this just MCP?
No, and the gap matters. Server MCP means the agent talks to your backend. WebMCP means the agent talks to your page, in a browser, as the logged-in user.
| Server MCP | WebMCP | |
|---|---|---|
| Runs where | your server | the user's tab |
| Auth | you build it | existing session |
| Sees the UI | no | yes |
| Works headless | yes | no |
The spec is blunt on that last row: tool calls run in JavaScript, so a browsing context has to exist. No headless mode.
People sell that as a security win. i read it as a hint about who this is for.
Three protocols is one too many
The loudest objection on HN was not security. It was exhaustion.
"WebMCP is an unnecessary standard. Same developer effort as server-side MCP but routed through the browser, creating a copy that drifts from the actual UI."
That is Manveer Chawla, who called it a false economy. His argument: if a site wants agents, expose server MCP and skip the middleman. If it does not, no standard changes its mind.
Then there is the Google angle. It owns the user layer and the models, so it decides whether your product exists for that user at all.
"Think search monopoly, except your site doesn't even exist as far as users are concerned."
Someone else invoked AMP. Concerning, spotty adoption, eventually abandoned.
Two different things called WebMCP
the first time i tried this, i searched, landed on webmcp.dev, and got a blue chat widget in the corner.
That is not the standard. It is an open source JavaScript library by one developer, published months earlier, bridging a local MCP client to a page over localhost.
His README opens with a correction: "I was just a guy with a dream." And "This implementation is not compliant with the W3C spec."
Respect for writing that. But the collision is real. Half the search results blur the two, and the older library is what plenty of people mean today.
What agents actually do right now
what actually happens today is dumber than the demos. An agent screenshots the page, guesses which rectangle is the button, clicks, screenshots again, and checks whether anything moved.
Every step costs tokens and time. Every wrong click can cost a purchase.
i watched a booking flow take nine screenshots to fail on a date picker. Nine images into a context window, and the agent still picked the wrong day.
That is the actuation problem WebMCP is meant to fix. Instead of guessing at pixels, the agent calls find-order and gets JSON back.
But the fix brings its own questions:
- what stops an agent calling
place-ordertwice - how does it know a tool already ran
- who confirms a destructive call
The spec's answer is annotations. readOnlyHint says nothing changed. consequentialHint says ask the human first.
toolautosubmit is the flag you leave off any form that spends money. And untrustedContentHint exists because every tool description is a prompt.
The accessibility argument nobody wants to have
Most tutorials call this accessibility for agents. The HN thread tore that apart.
The sharpest version: HTML is already an API. Labels, roles, required fields, ARIA. An agent that cannot read a form is not missing an API, it is missing semantics.
"The website is the API though."
i think that objection is right in principle and wrong in practice. Real pages put the meaning in images and free text.
Two identical forms, one buys a plant, one files your taxes. No ARIA tag tells you which.
WebKit's objection cuts deeper. An agent acting for a user is assistive technology, and a site should not be able to tell it apart from a human.
"WebMCP does the opposite," they wrote, "making 'an agent is driving' an observable fact."
The sites already saying no
eBay updated its user agreement in January, effective February 20, banning "buy for me" agents and LLM bots without permission.
United went further this month. It blocks third-party agents from completing bookings entirely.
Not browsing. Completing.
Their CEO: "To be honest, I don't want to create another middleman."
United also raised the bag attestation problem, the sharpest argument here. Federal rules require the airline to get a passenger to confirm their bags hold no explosives. Who ticks that box when an agent buys the ticket?
So the pitch is that sites opt into agent traffic. The sites with the best inventory are opting out, in legal text rather than code.
A web standard cannot fix a business decision.
And the dark pattern writes itself. A site can register a plausible tool that steers the agent toward the pricier flight. Someone on HN called it within hours.
There is a specific guy who ships a thing six months before the standard exists, gives it the obvious name, then watches a working group take that name away.
He is not a villain. He is usually the reason anyone was thinking about the problem.
But now his README opens with "please go read the other repo." A strange afterlife for a side project. And it happens constantly, to every good name in software.
i have done it. Named a script after a thing before the thing existed. Then spent a year explaining that no, mine is the other one.
Someone linked me to his repo expecting a compliment.
Real talk
Most of you should not touch this yet.
It runs behind a flag or an origin trial on one engine. Chrome's trial got pushed from November out to Chrome 162, roughly late January.
Firefox has shipped nothing. Safari has shipped nothing. The trial only exists to end.
And the API is still moving. The entry point went from navigator.modelContext to document.modelContext inside a year, kept the old one as a deprecated alias, then deleted the alias.
If your site is a form and a button, add the declarative attributes when it costs an afternoon. If it costs a quarter, wait.
Do not restructure your navigation around agents. Build it so that when WebMCP is missing, nothing changes for a human.
The ending
i keep coming back to those eight tools registering nothing.
The team did the work. Shipped early, tested, waited for the trial.
The failure was invisible for ninety days because nothing bad happened. No 500, no error log, no alert.
Just a page that had quietly stopped being agent-readable three months before anyone noticed.
That is the shape of this standard. Maybe the future. Maybe AMP with a JavaScript API.
The honest move is the same either way. Ship it small, log whether it registered, and let the humans keep the site that already works.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.