# WebMCP

Canonical page: https://www.theglitch.ai/ai-glossary/webmcp

A proposed browser standard, a draft on trial in Chrome, that lets a website register structured tools directly for in-tab AI agents, so the agent calls a typed function instead of guessing pixels or scraping buttons.

[WebMCP, common card \#268 in The Glitch AI glossary: A proposed browser standard, a draft on trial in Chrome, that lets a website register structured tools directly for in-tab AI agents, so the agent calls a typed function instead of guessing pixels or scraping buttons.](https://www.theglitch.ai/images/cards/glossary/webmcp.png?v=c2d32631b3e6ddb7)

GLS 268 · common

Also called: Web Model Context Protocol, navigator.modelContext.

For: Builders · Marketers · Must know

## Why it matters

Browser agents break whenever a site moves a button or changes CSS. WebMCP gives the site control over what an agent can read, what arguments it must pass and what stays human-confirmed.

## In practice

A glossary site registers search\_glossary and show\_page on document.modelContext. When a user asks their browser agent to find "agent harness", the agent calls search\_glossary with \{ query: "agent harness" \} and receives a bounded 1,500-character answer with canonical links instead of clicking through search inputs.

## Watch for

Treat WebMCP tool outputs and page inputs as untrusted boundaries: sanitize invisible text, keep read tools read-only and never auto-submit forms or payments without explicit human confirmation.

## How it compares

- [Model Context Protocol](https://www.theglitch.ai/ai-glossary/model-context-protocol): MCP runs over HTTP or stdio between an agent and a server; WebMCP runs inside the user’s browser tab using the site’s existing session and UI.

- [Browser agent](https://www.theglitch.ai/ai-glossary/browser-agent): A browser agent is the software driving the tab; WebMCP is the typed tool contract a website exposes so that agent does not have to scrape the DOM.

## Related terms

[Model Context Protocol](https://www.theglitch.ai/ai-glossary/model-context-protocol) · [Browser agent](https://www.theglitch.ai/ai-glossary/browser-agent) · [Tool calling](https://www.theglitch.ai/ai-glossary/tool-calling) · [AI visibility](https://www.theglitch.ai/ai-glossary/ai-visibility)

## Try it here

[What is WebMCP?](https://www.theglitch.ai/learn/webmcp) · [Add WebMCP to your site](https://www.theglitch.ai/learn/webmcp-tutorial)

## Sources

- [W3C WebML Community Group · WebMCP specification](https://webmachinelearning.github.io/webmcp/)

- [Chrome for Developers · WebMCP early preview](https://developer.chrome.com/blog/webmcp-epp)

Use in an AI agent: connect MCP at https://www.theglitch.ai/mcp and call get\_glossary\_term with webmcp, or read the [Markdown edition](https://www.theglitch.ai/ai-glossary/webmcp.md).

Definition updated 2026-11-28.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
