Tools, Built Into the Web
WebMCP is a proposed web standard, incubated by the W3C Web Machine Learning Community Group, that gives websites a native way to tell AI agents what they can do. Instead of an agent guessing its way through a page's UI, the page itself registers tools the agent can call. WebMCP is:
In-Browser
Tools run in the page's own JavaScript context - no separate server to host
User-in-the-Loop
The agent and the person see the same UI update in real time
Origin-Scoped
Tools are scoped to the page that registers them, with explicit opt-in for cross-origin access
Complementary to MCP
Designed to work alongside backend MCP servers, not replace them
Why WebMCP Matters
Shared Context
The agent and the user see identical UI updates simultaneously, so nothing happens off-screen or out of sight.
No Separate Backend
Reuse the authentication, session state, and business logic your frontend already has instead of standing up a new integration server.
Secure by Origin
Tools are scoped to the page's origin and disabled by default in cross-origin iframes unless explicitly permitted.
Shares MCP's Vocabulary
Tools, schemas, and inputs follow the same concepts as MCP, so existing knowledge and tooling largely transfer.
How WebMCP Works
WebMCP centers on a single browser API, document.modelContext, that pages use to register tools and agents use to find and call them:
Registration
A page calls registerTool() to expose a JavaScript function as a tool, with a name, a natural-language description, and a JSON Schema describing its inputs.
Discovery
An AI agent calls getTools() to see what's available on the current page, including tools exposed from trusted cross-origin frames.
Execution
The agent calls executeTool() with structured arguments. The browser runs the tool's callback in the page's own context and returns a structured result.
A Tool, in a Few Lines of Code
Here's a minimal example of a page registering a tool that adds an item to a todo list:
await document.modelContext.registerTool({
name: "add-todo",
description: "Add a new item to the user's active todo list",
inputSchema: {
type: "object",
properties: {
text: { type: "string", description: "The todo item text" }
},
required: ["text"]
},
async execute({ text }) {
await addTodoItemToCollection(text);
return {
content: [{ type: "text", text: `Added todo item: "${text}"` }]
};
}
});WebMCP 예시
에이전트가 사용할 수 있는 작업을 WebMCP 도구로 공개한 웹사이트를 살펴보세요. 아래 여섯 가지 예시는 디렉터리의 WebMCP 목록에서 직접 가져옵니다.
John Greene Realtor
Submit inquiries and contact messages to real estate agents and teams using browser-side WebMCP tools.
JSON Schema App
Access schema markup articles, fetch Markdown page content, and locate pricing information using WebMCP tools designed for AI agents.
Argos
Explore visual regression testing documentation, estimate plan pricing, inspect setup guides, and retrieve product comparisons using WebMCP tools.
CannaMD
Search clinic content and retrieve public pages as Markdown using WebMCP tools designed for AI agents.
Kindo
Navigate users across Kindo by triggering WebMCP tools to reach the demo request form, contact page, and resource center.
Tran33m
Inspect and decode C2PA content provenance metadata across web images using WebMCP tools.
Who Uses WebMCP
Web Developers
Expose existing app functionality to agents without building a separate backend integration
AI Agent Builders
Give agents a reliable, structured way to act on web pages instead of scraping the DOM
E-Commerce & SaaS Teams
Let agents filter, configure, and complete tasks inside the product's real UI
Browser Vendors
Standardize a safe, permissioned surface for agentic browsing across the web platform
WebMCP in Action
Design Collaboration
A design tool lets users describe template changes in natural language. WebMCP tools filter templates and apply edits while the user watches the same canvas update.
E-Commerce Filtering
Storefronts expose tools that return structured product data and update the page directly, so an agent can filter inventory - even by an uploaded photo - instantly.
Developer Platforms
Code review tools expose tools like get-status and get-failure-snippet, so agents can summarize CI failures without parsing raw infrastructure logs.
Productivity Apps
Todo, note-taking, and project tools expose simple add and complete tools agents can call directly instead of clicking through forms.
WebMCP와 MCP 비교
둘 다 에이전트에 구조화된 도구를 제공하지만 서로 다른 계층에서 작동합니다. MCP는 AI 애플리케이션을 독립 서비스에 연결하고, WebMCP는 사용자가 이미 열어 둔 웹페이지에서 에이전트가 작업하도록 합니다.
| 항목 | MCP 서버 | WebMCP |
|---|---|---|
| 실행 환경 | 페이지 외부에서 실행되는 로컬 프로세스 또는 원격 서비스입니다. | 활성 브라우저 페이지 안에서 실행되는 클라이언트 측 코드입니다. |
| 연결 | MCP 클라이언트가 지원되는 프로토콜 전송 방식으로 연결합니다. | 브라우저 또는 페이지 내 에이전트가 document.modelContext를 통해 도구를 발견합니다. |
| 컨텍스트와 인증 | 서버가 자체 자격 증명을 관리하고 필요한 컨텍스트를 다시 구성합니다. | 도구가 페이지의 현재 세션, 상태, 프런트엔드 로직을 재사용할 수 있습니다. |
| 기능 | API, 파일 또는 데이터베이스를 기반으로 도구, 리소스, 프롬프트를 공개할 수 있습니다. | 현재 제안은 페이지 작업을 명령형 또는 선언형 도구로 공개하는 데 중점을 둡니다. |
| 사용자 경험 | 관련 웹 UI 없이 AI 대화 뒤에서 실행되는 경우가 많습니다. | 사용자, 에이전트, 표시 중인 페이지를 하나의 공유 워크플로에 유지합니다. |
| 적합한 용도 | 백엔드 데이터 접근, 헤드리스 자동화, 재사용 가능한 서비스 통합입니다. | 상태를 가진 웹 애플리케이션 안에서 사람이 확인하는 대화형 작업입니다. |
함께 사용할 수 있습니다. MCP 서버가 지속적인 백엔드 접근을 처리하고, WebMCP가 페이지를 업데이트하며 보이는 컨텍스트를 유지하고 중요한 단계를 사용자에게 넘길 수 있습니다.
Where WebMCP Stands Today
WebMCP remains an evolving proposal with experimental implementations and browser trials rather than universal browser support. Its explainer and draft specification were first published in August 2025 by contributors from Microsoft, Google, and the web standards community, incubated within the W3C Web Machine Learning Community Group.
The API surface - document.modelContext, registerTool(), getTools(), and executeTool() - is still evolving through public discussion, with open questions around multimodal inputs, streaming results, and long-running tasks.
프로토타입에서 웹 제안으로
Jason McGhee의 초기 오픈 소스 WebMCP 프로젝트와 webmcp.dev 데모는 로컬호스트 WebSocket 브리지와 등록 토큰을 사용해 페이지가 MCP 방식의 기능을 공개할 수 있음을 보여 주었습니다. 현재 관리자는 이를 초기 비호환 구현으로 안내하며 새로운 작업은 W3C 제안을 따르도록 권장합니다.
WebMCP 자주 묻는 질문
Curious how this fits with the rest of the MCP ecosystem?
