WebMCP (Web Model Context Protocol) is a new browser API that enables websites to expose their functionality as structured tools for AI agents. Instead of agents scraping the DOM and simulating clicks, developers can register JavaScript functions with natural language descriptions and schemas that agents can discover and invoke directly. The API offers both declarative (HTML forms) and imperative (JavaScript) approaches, reusing existing application logic while leveraging the user's browser session. Published as a W3C Draft Community Group Report in February 2026, it's currently in early preview with a polyfill implementation (MCP-B) available for experimentation.
Table of contents
What is WebMCP?The two APIsA practical exampleWebMCP vs MCPUse casesThings to ConsiderConclusion1 Comment
Sort: