# WebMCP - Why is awesome & How to use it
<!--
ref: @content/youtube/ai-jason/webmcp-why-is-awesome-how-to-use-it
tags: [WebMCP, Chrome, browser agents, MCP tools, contextual tools, agent-ready websites, declarative and imperative APIs]
version: 2
updated_at: 2026-11-24T05:15:39.341Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=xQAYZBDV5jg)**

# WebMCP - Why is awesome & How to use it

*Synthesized from AI Jason, 2026-02-15; speakers are not named in the source.*

A single presenter explains WebMCP, a Chrome proposal that lets a web page declare tools for browsing agents, and demonstrates a declarative and an imperative setup. The video ends with a plug for a paid course, which this summary omits.

## Core Thesis
The presenter argues that WebMCP gives agents deterministic actions on a website. Instead of guessing from raw HTML or screenshots, an agent calls tools that the page itself registers, and those tools change with the page the user is on. The presenter treats this as a middle path between a standalone MCP server that agents rarely load and browser-use agents that are non-deterministic.

## Key Insights
- **Two existing options, both weak.** A site can build its own MCP server, but agents rarely load it for ordinary sites. Or it can rely on browser-use agents, which parse large amounts of HTML or annotated screenshots and behave non-deterministically.
- **Tools per page.** The page registers actions for the screen it shows. A home page might expose product search and category filters, and a product page might expose add-to-cart or similar products.
- **Declarative mode.** Existing form elements get tool name and tool description attributes, and each input gets a parameter description. The browser then exposes a tool built from those attributes, and the agent can fill the form. Chrome shows a review-and-confirm prompt around form fill and submit, and special CSS classes mark the form's tool-active and tool-submit states.
- **Imperative mode.** A React or JavaScript app calls navigator.registerTool and navigator.unregisterTool, for example when a component renders. In the flight-booking demo, the search page exposes a search tool and the results page exposes set-filter, reset-filter and list-flights tools.
- **Contextual MCP.** The presenter frames this as combining MCP's strict schemas with skills' on-demand loading. Tool lists change with the page, so the agent only sees what applies there.
- **Closing the loop.** In the contact-form example, a submit listener returns an error or success response to the agent, which then decides its next step.
- **Setup.** The presenter says WebMCP needs a recent Chrome beta with the WebMCP flag enabled, plus a tool-inspector extension to see registered tools. The Kanban demo has tools for adding, moving and deleting cards and columns, and the agent built a board from a single request.

## Actionable Takeaways
1. Start with declarative attributes on existing forms, since that makes a page agent-ready with the least code.
2. Use registerTool and unregisterTool in components so the tool list matches what is on screen.
3. Return explicit success or error responses from tool calls so the agent can act on the result.
4. Test in a recent Chrome beta with the WebMCP flag and an inspector extension before relying on the behavior.

## Notable Quotes
> "the most interesting part I see is this web MCP concept" — the speaker (unnamed in the source)

> "We can customize the event listener for the form submit action" — the speaker (unnamed in the source)

---

*Related: `@content/youtube/nate-herk/i-tested-opus-5-5-vs-gpt-6-sol-on-10-real-use-cases` · `@content/youtube/nate-herk/i-tested-opus-5-5-vs-gpt-6-astra-on-12-real-use-cases` · `@content/youtube/ai-jason/i-was-giving-my-coding-agent-context-the-wrong-way` · `@content/youtube/aie/the-death-of-developer-advocates-stephanie-jarmak-sourcegraph` · `@content/youtube/david-ondrej/watch-this-100x-developer-use-gpt-6-astra-it-s-insane`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*