cd /news/ai-agents/webmcp · home › topics › ai-agents › article
[ARTICLE · art-182521] src=developer.chrome.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

WebMCP

A proposed web standard called WebMCP, published May 18, 2026 and updated October 7, 2026, would let websites declare structured tools in JavaScript and annotate HTML form elements so AI agents know how to interact with page features, with an origin trial now open in Chrome and an Intent to Experiment filed with Chromium's blink-dev group. WebMCP specifies tool discovery (such as checkout or filter_results), JSON Schemas for explicit inputs and expected outputs to reduce hallucination, and shared page state, and can be added as a progressive enhancement. The standard's backers argue that having sites declare an element's purpose is more reliable than agents interpreting buttons and fields step by step, and that tools execute visibly on the page so users can confirm tasks complete as expected.

key takeaway

Register page tools with WebMCP using JSON Schemas for inputs and outputs and shared page state so agents call declared actions like checkout or filter_results instead of interpreting form elements step by step.

by read6 min views2 publishedDec 5, 2026
WebMCP
Image: Developer (auto-discovered)

Published: May 18, 2026, Last updated: October 7, 2026

WebMCP is a proposed web standard to help you build and expose structured tools for AI agents. WebMCP provides JavaScript and annotates HTML form elements so that agents know exactly how to interact with page features, to support a user's experience. This can significantly improve the performance and reliability of agent actuation.

AI agents are a newer technology. They can help human users better complete tasks which are highly complex and technical. WebMCP offers higher accuracy for agentic task completion, and it can be added as a progressive enhancement.

Explainer Web Extensions Chrome Status Intent
GitHub Origin trial View Intent to Experiment

Why WebMCP? #

WebMCP provides rules for interaction that bridge the gap between web applications and agents, improving efficiency, reliability, and task completion. Instead of an agent reviewing the element, such as a button or a field, to understand its purpose, the website declares the element's purpose, so it's used as intended.

This is more reliable than actuation, which may have numerous steps and leaves each step open to interpretation by the agent.

Websites can share explicit purpose, such as search or purchasing, by defining a tool. Tools execute on your webpage visibly, so users gain trust that tasks are completed as expected. This also keeps your brand and human-centered design choices intact.

WebMCP supports:

  • Discovery : A standard way for pages to register tools with agents, such ascheckout orfilter_results .
  • JSON Schemas : Explicit definitions of inputs and expected outputs, to reduce hallucination or misunderstanding.
  • State : A shared understanding of the current page context, so the agent knows what resources are available to act on in real time.

Our goal is to build APIs that any browser with agentic capabilities can implement and benefit from, so your users can more easily complete tasks. You can follow along this process on

GitHub.

Use cases

There are many ways you could [use WebMCP](https://developer.chrome.com/docs/ai/webmcp/use-cases).
For example:
  • Help your customers get support . If you provide a software to customers, you may have a complex support flow to address many different questions. You can use WebMCP to help an agent more quickly navigate to the right form and fill in fields with user-provided information.
  • Improve travel booking . Help agents book complex, multi-city and multi-passenger trips with fewer steps.

Some actions may be sensitive, such as making a purchase. You can include a command to request user interaction with a confirmation dialog.

In a practical sense, your tools could accomplish the following tasks:

  • Fill in structured forms : Build asubmit_application tool to help agents map data collected from the conversation with the user to form fields correctly. For example, you can differentiate if a field requires a full name versus a separate first and last name.
  • Support agent interactions in human-first interfaces : Certain fields are designed for human users, but may not be understood by agents. You could build adate_pick tool that allows for a complex date and time selection in a reservation or event booking.
  • Quicker application debugging : You can build arun_diagnostics tool on a developer settings page, so an agent can trigger fixes that are otherwise hidden behind nested menus.

Is your use case missing? Or do you have an idea you're excited to share for

WebMCP? Raise questions and participate in discussion on GitHub.

Get started #

Join the WebMCP origin trial

from Chrome 149. Learn more about how to
[get started with origin trials](https://developer.chrome.com/docs/web-platform/origin-trials).

Local WebMCP

WebMCP is available as a Chrome flag for local development:

  1. Open Chrome and navigate to chrome://flags/#enable-webmcp-testing
  2. Set the flag to Enabled .
  3. Relaunch Chrome to apply the changes.

Use WebMCP APIs #

There are two APIs you can use to set up your website tools:

  • Imperative API : Define different types of tools with standard JavaScript, such as form input, navigation tools, state management, or other functions.
  • Declarative API : Add annotations to a standard HTML forms to create a WebMCP tool.

You can debug WebMCP tools and validate how the browser parses the JSON Schema, with Chrome DevTools.

Limitations

While WebMCP aims to make complex tasks simpler for agents and humans, there are limitations:

  • Headless browsing : While it may be possible to run WebMCP tools in headless environments, this API is primarily designed for local browser workflows with a human in the loop.
  • Overhead for complex interfaces : If your site is highly complex, you likely need to refactor or add JavaScript to handle application and interface state.
  • Tool discoverability : Clients and browsers must visit a site directly to know if it has callable tools.

Permissions policy

Both APIs are gated by the tools Permissions Policy. The policy defaults to self, which allows tool registration in top-level and same-origin contexts, and disables it for cross-origin iframes.

To allow WebMCP tools in a cross-origin iframe, add the allow="tools" attribute to the iframe.

Demo #

Examples of demos covering both imperative and declarative implementations are available:

- [WebMCP zaMaker](https://github.com/GoogleChromeLabs/webmcp-tools/tree/main/demos/pizza-maker) uses the WebMCP Imperative API.
- [Travel demo (React)](https://github.com/GoogleChromeLabs/webmcp-tools/tree/main/demos/react-flightsearch) uses the WebMCP Imperative API.
- [Le Petit Bistro demo](https://github.com/GoogleChromeLabs/webmcp-tools/tree/main/demos/french-bistro) uses the WebMCP Declarative API.

You can also review and explore the demo source code on

GitHub.

Imitate an agent to test your tools #

We've built two Chrome Extensions to help you see how WebMCP tools work in our demos and your applications.

Install the Example Agentic Chrome Extension to inspect, monitor, and execute WebMCP tools with natural language prompts. In particular, this extension always trusts WebMCP annotations, which can alert the agent to sensitive actions. This demonstrates how a tool may perform differently with annotations.

By default, this extension uses a small Node server with an AI SDK. API keys are required and stay on the local server. Your prompts are sent to the gemini-3.6-flash model by default, but you can modify the model choice and API provider in the extension's .env file. There are fields for OpenAI, Google, and Anthropic or, alternatively, you can customize the extension to use a model

from another provider. Alternatively, you can use a client-side model with the Prompt API. This doesn't

require API keys and data stays on your device. To do so, enable
`chrome://flags/#prompt-api-tool-use`.

[Install the **Model Context Tool Inspector Extension**](https://chromewebstore.google.com/detail/model-context-tool-inspec/gbpdfapgefenggkahomfgkhfehlcenpd)

to experiment with an agent and see how WebMCP tools work in live demos or your own applications. Use natural language prompts to determine if the agent interacts with WebMCP tools as expected.

To use Gemini to call your tools, you must have an API key, which you provide in the extension's interface. Your prompts are sent by default to the gemini-3.6-flash model. You can select a different Gemini model to experiment with or customize the extension code to use another provider's model.

Engage and share feedback #

WebMCP is under active discussion and subject to change in the future. If you try these APIs and have feedback, we'd love to hear it.

- Read [WebMCP best practices](https://developer.chrome.com/docs/ai/webmcp/best-practices) .
- Read our [WebMCP tool security guidance](https://developer.chrome.com/docs/ai/webmcp/secure-tools) and[best practices](https://developer.chrome.com/docs/ai/webmcp/best-practices) .
  • If you have feedback on Chrome's implementation, file a Chromium bug .
── more in #ai-agents 4 stories · sorted by recency
── more on @webmcp 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/webmcp] indexed:0 read:6min 2026-12-05 · —