ContextBolt SEO Free for 7 days. Keywords, SERPs, backlinks and AI visibility, inside Claude. SEO data inside Claude. Start free trial
Comparison · WebMCP vs MCP

WebMCP vs MCP: What Each One Actually Does

WebMCP and the Model Context Protocol share half a name, so they get discussed as if one succeeds the other. They don’t. WebMCP is a browser standard drafted by Google and Microsoft engineers over the last year. MCP is the protocol Anthropic released in late 2024.

WebMCP doesn’t use MCP’s wire protocol, doesn’t speak JSON-RPC, and was deliberately not coupled to the MCP specification by the working group that adopted it. You don’t need to read either spec to see the difference:

An MCP server works when nobody is watching. A WebMCP tool only works while the tab is open.

Quick answer
  • MCP is a server protocol. A process runs, exposes tools over JSON-RPC, and any compliant client can reach it from anywhere, browser or not. ContextBolt SEO is one of these, hosted at a URL you paste into Claude, Cursor or Codex, and it keeps answering whether or not a browser tab is open.
  • WebMCP is a browser API. A page registers tools on document.modelContext, and the browser’s built-in agent can call them while that page is open.
  • Lifecycle is the deciding difference. MCP is persistent. WebMCP is ephemeral and tab bound, so the tools vanish when the user navigates away.
  • They complement each other. Chrome’s documentation recommends using both.
  • WebMCP is not shipped. It is an origin trial in Chrome 149 through 156, and the API is still moving.

MCP vs WebMCP at a glance

DimensionMCPWebMCP
Where it runsA server processThe browser tab
LifecyclePersistentEphemeral, dies with the tab
Wire formatJSON-RPCNone. It is a browser API
Works with no user presentYesNo
Sees the user’s session stateOnly what you copyYes, natively
Who you build it forAny MCP clientThe browser’s agent
Status todayShipped and widely adoptedOrigin trial only

What MCP is

The Model Context Protocol is a standard for connecting AI agents to external systems. A server runs, either locally over stdio or remotely over HTTP, and advertises a set of tools. When an agent calls one, real code executes and returns real data.

The server doesn’t care which client is talking to it, so one integration works across Claude, Cursor, VS Code and anything else that implements the client half. It doesn’t care whether a browser exists. And it keeps running whether or not a human is present, which is what makes scheduled work and background jobs possible. An MCP server is reachable at three in the morning with nobody logged in, with its own credentials and its own view of your data.

The cost is that you build and host it, replicate the user’s state and authentication on a separate server, and maintain it. Our decision guide on building versus installing an MCP server weighs the two, and the usual answer is to install one.

Good MCP candidates: live data behind an API, your database, anything on a schedule, bulk operations across thousands of records, and actions with side effects that need to happen whether or not anyone is at a keyboard.

What WebMCP is

WebMCP is a proposed web standard, incubated in the W3C’s Web Machine Learning Community Group. It lets a web page declare tools that a browser-based agent can call directly, instead of the agent screenshotting the page and guessing which button to click.

There are two ways to declare them. The imperative API is JavaScript: you call document.modelContext.registerTool() with a name, a description, a JSON Schema for the inputs, and a function that runs when the tool is called.

The declarative API is HTML attributes on a form you already have. Two attributes turn it into a tool.

<form toolname="supportRequestTool"
      tooldescription="Submit a request for support."
      action="/submit">
  <label for="firstName">First Name</label>
  <input type="text" name="firstName" id="firstName">
  <button type="submit">Submit</button>
</form>

The browser reads the form, builds a JSON tool description from it, and when an agent calls it, focuses the form and fills the fields. The user sees it happen. WebMCP is built for a human and an agent looking at the same page, and it ships CSS pseudo-classes like :tool-form-active so you can style a form while an agent is driving it.

Good WebMCP candidates: a multi-step checkout the user is halfway through, a filter panel with twenty controls, a form where the agent fills the fields but the human presses submit, and anything that depends on the cart or the state already loaded in that tab.

Why the lifecycle decides everything

Chrome’s documentation is plain about it: “WebMCP tools are ephemeral. They exist only when your page is open. Once the user navigates away from your site or closes the tab, the agent cannot access your site or take actions.”

So WebMCP can’t replace an API. There is no version of it where an agent books your flight overnight or syncs your records hourly, because there’s no live tab to run in.

What you get in exchange is what a server integration loses. The tool runs inside the user’s session, so it already has their login, their cart, their unsaved form state and their permissions. You don’t replicate any of it. The explainer calls the alternative “UI Disintermediation and Context Loss,” which is a heavy phrase for a simple failure: the server-side integration doesn’t know what the user is looking at.

Which one should you build?

Ask one question: does the agent need to act on the page a person is currently looking at?

If yes, that’s WebMCP. A server integration can’t see the half-filled form or the current cart, and browser automation has to infer both from pixels. If no, it’s MCP, because WebMCP has no tab to run in.

Most real products answer yes to both. Chrome’s guidance says “the most effective agentic applications use both MCP and WebMCP to benefit from the strengths of both technologies.” The server does the durable work. The page makes the live session legible.

WebMCP is an origin trial, so it’s off by default for most visitors, and Google is asking for feedback on the API shape through GitHub. Building against it now is a bet that the shape holds. The declarative half is the smaller bet, because two HTML attributes on a form you already ship cost almost nothing if the spec moves again.

If you run on Cloudflare, a dashboard toggle injects a WebMCP bridge into your pages at the edge with no code. We measured it: 115 bytes, two tools, and one tool pack that registered nothing. It’s a head start, not the same as exposing what your product does. If you’re asking as an SEO question, how AI agents are changing SEO covers it: make the cheap, reversible parts machine readable first.

Mistakes in WebMCP tutorials

The WebMCP spec moved, and a lot of published tutorials didn’t. I compared the guides currently ranking against the live W3C draft on August 26, 2026, and found these errors everywhere.

Write document.modelContext. The draft defines the interface on Document, as partial interface Document { readonly attribute ModelContext modelContext; }. Early proposals used navigator and a great many guides still do. In Chrome 151 with experimental web platform features enabled, document.modelContext === navigator.modelContext returns true, so a navigator example won’t silently fail. It’s still the wrong one to write down, because nothing promises Chrome keeps the alias when the origin trial ends.

There is no .well-known/webmcp manifest. Several guides describe one as a third implementation surface alongside the two APIs. No such file appears anywhere in the specification.

provideContext() is not a method. The IDL exposes exactly three methods, registerTool, getTools and executeTool, plus three event handlers, ontoolchange, ontoolactivated and ontoolcancel. Chrome’s docs mention requestUserInteraction() as ongoing research, and it isn’t in the draft either.

Version numbers have drifted. Guides published in the spring cite Chrome 146, which was the flag-gated developer trial. The public origin trial started in Chrome 149 and runs through 156. Read the draft and Chrome’s own docs first and treat everything else as commentary.

How WebMCP security differs

MCP’s security risk lives in the server you install, and we covered how to vet one in a piece on whether MCP is safe. With WebMCP the page supplies the tools. Chrome’s guidance is blunt about the limit: “it’s impossible to guarantee safety inside of a large language model,” because models remain vulnerable to indirect prompt injection.

So the spec gives you flags to declare what you know about your own content. untrustedContentHint marks a tool that returns user-generated or external data, so the agent treats the output with more suspicion. readOnlyHint marks a tool that changes nothing, so the agent can skip a confirmation it doesn’t need. Tools are same-origin by default, and exposedTo is an explicit allowlist. Chrome’s advice: “Only expose your tools to origins that you trust.”

Chrome also suggests budgets: 30 characters for a tool name, 500 for a tool description, 150 for a parameter description and 1.5K for a single tool’s output. Chrome says they may change and could be added to the spec later. The draft itself limits a tool name to 128 characters, using ASCII letters, digits, underscore, hyphen and period.

Where WebMCP stands

Google named Expedia, Booking.com, Shopify, Credit Karma, TurboTax, Redfin, Etsy, Instacart and Target as testing WebMCP at I/O in May 2026. Shopify says its standard tool set is live automatically on every Liquid storefront, which we break down in Shopify WebMCP explained for store owners. Gemini in Chrome is getting support, and Lighthouse has an Agentic Browsing category that looks for registered tools, though when we ran that audit on four sites the WebMCP checks did not move the score on pages without WebMCP.

That’s a lot of scaffolding for a six-month-old standard, and a reasonable sign the direction is real even if the API isn’t final. It won’t make servers obsolete, though. A tool that dies when the tab closes was never going to replace an API, and the specification says so in the first section. If you only build one, build the one that matches whether a human is present.

Where next

Frequently asked questions

Something else on your mind? Get in touch.

What is the difference between WebMCP and MCP?

MCP is a server protocol. It connects an AI agent to your systems from anywhere, whether or not a browser is involved. WebMCP is a browser API. It lets a web page hand structured tools to the browser's agent, and those tools disappear the moment the tab closes.

Does WebMCP replace MCP?

No. Chrome's own documentation says the most effective agentic applications use both. WebMCP tools are ephemeral and tab bound, so anything an agent has to do while nobody is watching still needs a server. WebMCP covers the live page, MCP covers everything else.

Is it navigator.modelContext or document.modelContext?

Write document.modelContext. The W3C draft defines that surface, while early proposals used navigator. In Chrome today both point to the same ModelContext object, so a navigator example can run. It is still the wrong default because Chrome has not promised to keep the alias when the origin trial ends.

Can I use WebMCP right now?

Only through an origin trial. WebMCP entered origin trial in Chrome 149 and runs through Chrome 156, so it is not on by default for most visitors. For local development you enable it at chrome://flags/#enable-webmcp-testing instead of registering.

Do I still need an API if I add WebMCP?

Yes, in almost every case. A WebMCP tool only exists while somebody has your page open. Scheduled jobs, bulk operations, and anything an agent runs on its own still need a real API or an MCP server sitting behind it.