WebMCP
WebMCP lets a website expose tools to the AI agent running in the visitor's browser. The agent calls a function you define instead of guessing at buttons and forms. These guides explain the proposal, compare it with MCP, and show how to add it to a site.
Start with what WebMCP is.
What is WebMCP
WebMCP lets a web page offer its features to AI agents as tools. Here's what it is, its current status, and how a page registers a tool.
WebMCP vs MCP
WebMCP runs tools in the visitor's browser tab, and MCP runs them on a server. Compare where each runs, how each signs in and when to use which.
Add WebMCP to your site
Register JavaScript tools on a web page with document.modelContext so Chrome's AI agents can search your menu, add items and place an order.
Browser support
Chrome, Edge, Firefox and Safari status for WebMCP as of October 2026, covering origin trials, flags and standards positions, with sources.
WebMCP security
The risks of exposing page tools to AI agents, what the WebMCP spec and Chrome say about each one, and what you can do today.