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 の例
AI エージェント向けの操作を WebMCP ツールとして公開しているウェブサイトをご覧ください。この6件は、当ディレクトリの 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?
