Protocols & Standards

WebMCP (Web Model Context Protocol)

Also called: Web Model Context Protocol · navigator.modelContext

WebMCP is a proposed browser API (`navigator.modelContext`) that lets a web page publish JavaScript functions as structured tools a browser-based AI agent can discover and call directly, instead of reading and clicking the page like a person.

Web pageBrowser agentnavigator.modelContextpage declares tools; the browser mediates user consent
With WebMCP a page registers callable tools on a browser API, and an in-browser agent invokes them instead of scraping or clicking the DOM.

When an AI agent works inside a browser today, it mostly operates the page the way a human would: parse the rendered DOM, guess which button does what, fill fields, click, and hope the layout didn't change. That is brittle and slow. WebMCP proposes a direct channel instead: a site's own code registers named tools — searchFlights, addToCart, applyCoupon — on a standard browser interface, and an in-browser agent calls those tools with structured arguments.

The name signals the lineage. WebMCP borrows the core idea of mcp — a server advertising tools an AI client can call — but re-homes it in the browser. Anthropic's MCP is a server-side protocol spoken over JSON-RPC (stdio or HTTP) to connect a model to backend systems; WebMCP is a client-side JavaScript API, runs entirely in the page, and is sandboxed by the browser's existing security model. They are complementary, not competitors: a site could back its WebMCP tools with an MCP server, or not.

WebMCP is being incubated in a W3C community group with participation from browser vendors including Google and Microsoft, and early implementation work has appeared in Chrome's pre-release channels in 2026. As of 2026 it is a draft under active development, not a finished, broadly shipped standard — treat it as a direction the ecosystem is exploring for making websites "agent-readable" rather than something you can rely on in every browser today.

How it works

A page calls a browser API — the proposed shape is navigator.modelContext — to register one or more tools, each with a name, a natural-language description, a typed parameter schema, and a JavaScript handler function. A browser-side agent (built into the browser or an extension) reads that list the same way an MCP client reads a server's tool list via capability-discovery, decides which tool fits the user's goal, and calls it with arguments. The browser sits in the middle: it can require user confirmation before a tool runs, scope what a tool can touch, and keep the page's tools isolated from other origins. Because the handler is the site's own code, the site stays in control of what actually happens — the agent gets a clean, declared interface instead of a screen to reverse-engineer.

Example

A travel site adds three WebMCP tools: searchFlights(origin, destination, date), selectFlight(id), and startCheckout(). A user tells their browser agent "book me the cheapest nonstop to Berlin next Friday." The agent calls searchFlights, gets structured results, picks the cheapest nonstop, calls selectFlight, then calls startCheckout — at which point the browser shows the user a confirmation prompt before anything is purchased. No DOM scraping, no guessing which <div> is the price.

How it differs

WebMCP vs. MCP: same conceptual model (declared tools an AI client discovers and calls), different home. MCP is a server-side protocol over JSON-RPC that connects a model to backend tools and data, typically outside any browser. WebMCP is an in-browser JavaScript API where the web page itself is the tool provider and the browser enforces consent and isolation. A site can use one, the other, or both.

Common misconceptions

Often assumed: WebMCP is just Anthropic's MCP running in a browser tab.
Actually: It reuses MCP's tool concept but is a separate, browser-vendor-driven API with its own surface (navigator.modelContext), its own security model, and no JSON-RPC transport — it is not the same spec.
Often assumed: WebMCP is a finished web standard you can target in production.
Actually: As of 2026 it is a draft in a W3C community group with early, partial browser implementations; the API shape and availability are still moving.

FAQ

What is WebMCP?
A proposed browser API that lets a website register JavaScript functions as structured tools an in-browser AI agent can discover and call, so the agent uses a declared interface instead of scraping and clicking the page.
How is WebMCP different from MCP?
MCP is a server-side protocol (JSON-RPC over stdio/HTTP) that connects a model to backend systems; WebMCP is a client-side browser API where the web page is the tool provider and the browser mediates consent. They share the tool concept but are different specs.
Can I use WebMCP today?
Only experimentally. It is a draft being incubated in a W3C community group with early implementation work in pre-release browser builds as of 2026, not a stable cross-browser feature.

Last checked: 2026-08-30

Related terms