@modern/standing

WebMCP implementation

Let browser agents use your site.

Browser agents can already read your pages. WebMCP lets your site hand them the tools to finish the job: search, book, buy or enquire, through your own code, with the user confirming the steps that matter.

Standard · WebMCP, proposedBrowser · Chrome origin trialControl · User confirms key steps

What WebMCP does.

WebMCP is a proposed web standard for giving AI agents structured tools on a web page. The page declares what it can do. The agent in the browser calls it. Your code runs, and the page updates in front of the user.

01

Tools, not guesses

Without WebMCP, a browser agent reads screenshots and page code and guesses which element is the button. With it, the page declares tools such as check_availability or book_appointment, each with a description and a JSON Schema for its inputs, and the agent calls them directly.

02

Your code does the work

A tool runs inside your page, with the visitor's session, basket and sign-in already in place. It reuses the client-side code your interface already runs, so the result the agent reports is the result your site produced.

03

The user stays in charge

Tools run visibly on the page, and sensitive actions such as a purchase can ask the user to confirm first. WebMCP is designed for browsing with a person present, not for agents acting alone.

Two ways to declare a tool.

Declarative, on an existing form

<form toolname="book_appointment" tooldescription="Books an appointment for a chosen date and time.">

Imperative, in JavaScript

document.modelContext.registerTool({ name: "check_availability", description: "Lists free slots for a date.", inputSchema: { type: "object", properties: { date: { type: "string" } } }, execute })

WebMCP or an MCP server? Often both.

They answer different callers. An MCP server serves AI platforms that call your backend directly. WebMCP serves the agent sitting in your visitor's browser, on your page.

MCP server

Runs on your backend. Assistants such as Claude or ChatGPT call it from their own platform, without your interface in view.

WebMCP

Runs in your page. The agent calls it inside the visitor's session, and the interface updates as each tool completes.

Shared rules

Both are built against the same content and permission model, so a task gives the same answer whichever door the agent uses.

What we deliver.

Tool strategy

We map the tasks visitors come to complete, then design one tool per task with a verb name and a plain description. Tools register only on the pages and states where they work, so an agent is never offered a tool it cannot use.

Build

Existing forms become tools with the declarative toolname and tooldescription attributes. Application flows such as search, booking and checkout get imperative tools registered in JavaScript, with inputs validated strictly in code.

Safety

Bookings, purchases and outgoing messages ask the user to confirm. Registration follows the tools Permissions Policy, and embedded third-party frames get tool access only where you grant it.

Measurement

Each release is checked with Lighthouse's Registered WebMCP tools audit and with evaluation runs, where an agent attempts real tasks against your tools. Under Modern Standing Care, tool health is reviewed alongside the rest of the estate.

Four stages to an agent-ready site.

01

Map: the tasks that matter

We list what visitors try to do, rank the tasks by value, and pick the first few to expose. Most sites start with search, an enquiry or a booking, not with every feature at once.

02

Build: tools on your code

Tools are written into your codebase and reviewed like any other change. Nothing is injected from a third-party script you cannot read.

03

Test: with real agents

Evaluation runs check that an agent picks the right tool, fills it correctly and recovers from errors. We fix the tool descriptions and schemas before anything ships.

04

Ship: as an enhancement

Browsers without WebMCP see the same site as before. Browsers with it, today Chrome through its origin trial, get tools on top.

The rest of the agentic estate.

Questions, answered.

01

What is WebMCP?

WebMCP is a proposed web standard that lets a website expose structured tools to AI agents in the browser. Each tool has a name, a description and a JSON Schema for its inputs, so an agent can call it directly instead of guessing which button to click. It offers two APIs: a declarative one that adds attributes to HTML forms, and an imperative one that registers tools in JavaScript.

02

Which browsers support WebMCP?

Chrome runs WebMCP as an origin trial from Chrome 149, and developers can test it locally behind a Chrome flag. The standard is still under active discussion and may change. Because WebMCP is added as a progressive enhancement, browsers without it simply see the site as it is today.

03

Is WebMCP the same as MCP?

No. A Model Context Protocol server runs on your backend and is called by AI platforms directly. WebMCP runs inside your web page and is called by an agent in the visitor's browser, using the page's own code, state and sign-in. The WebMCP explainer describes it as a complement to backend MCP, not a replacement, and many sites will want both.

04

Can an agent buy or book something without the user?

WebMCP is designed for browsing with a person present, and tools run visibly on the page. Sensitive actions such as a purchase can request the user's confirmation before they complete. We add that confirmation step to every booking, purchase and outgoing message we build.

05

Do we need to rebuild our website?

No. Existing HTML forms can become tools by adding two attributes. Interactive flows reuse the client-side code your interface already runs. Highly complex interfaces sometimes need extra work to expose their state cleanly, and the audit tells you that before the build starts.

06

How many tools should a page register?

As few as the page needs. Every tool takes up part of the agent's context and adds to the time it takes to choose, and Lighthouse warns when a page registers more than 40. We register tools by page state, so each page offers only the tools that work there.

Free automated assessment

Give agents the right tools.