Control Any WebMCP-Enabled Website with Natural Language
webmcp bridges Chrome's WebMCP standard (navigator.modelContext, document.modelContext, and declarative <form toolname>) directly to your own Gemini, Claude, or OpenAI API key.
{ text: string }{ theme: string }{ subject, priority }Connect directly to Google Gemini, Anthropic Claude, or OpenAI. Models are fetched live from the provider's official API.
Languages: EN · 中文 · 日本語 · 한국어 · ES · FR · DE
Built for the Web Model Context Protocol
Everything you need to discover, test, and orchestrate structured AI tools exposed by modern web applications.
Imperative & Declarative WebMCP
Supports imperative navigator.modelContext.registerTool, document.modelContext.getTools() / executeTool(), and declarative HTML forms with <form toolname="..." tooldescription="..." toolautosubmit>.
Bring Your Own Key (BYOK)
Powered by the open-source Vercel AI SDK (@ai-sdk/google, @ai-sdk/anthropic, @ai-sdk/openai). Dynamically fetches available models and preserves Gemini 2.5/3 thoughtSignature across multi-step tool calls.
100% Local & Privacy-First
No backend server, no account signup, and zero telemetry. API keys, model selections, and your 100-item prompt history are stored exclusively in chrome.storage.local.
Live Tool Inspector & Auto-Sync
A MAIN-world MutationObserver and tab listener automatically detect newly rendered tools or SPA route changes and update the Side Panel status bar in real time.
Agent-Friendly Debug Telemetry
Inspect JSON input/output payloads, execution duration, and token/cache metrics for every tool step. Copy structured run logs in one click for coding agents.
8 Languages & Adaptive Themes
Localized UI in English, 中文, 日本語, 한국어, Español, Français, and Deutsch with System, Light, and Dark modes plus ↑ / ↓ prompt history recall.
Live WebMCP Playground on This Page
This official website registers real WebMCP tools! Open the webmcp Chrome Extension on this page—or click any prompt chip below to simulate tool execution immediately.
window:
getTodos, addTodo, toggleTodo, setPageTheme · Declarative Form: createSupportTicket
📋 Task Board Imperative WebMCP
navigator.modelContext.registerTool (getTodos, addTodo, toggleTodo)🎫 Support Ticket Declarative WebMCP Form
<form toolname="createSupportTicket" toolautosubmit>How webmcp Works Under the Hood
Seamless execution across Chrome's execution worlds, plus zero-friction adoption for web developers.
MAIN World Page Bridge
page-bridge.js runs at document_start in the page's MAIN world, querying document.modelContext.getTools() and scanning DOM forms with toolname attributes without clobbering native prototypes.
Isolated Content Relay
content.js bridges messages between the page's MAIN execution world and the extension runtime, pushing real-time WEBMCP_TOOLS_CHANGED notifications on DOM mutations.
Side Panel AI Tool Loop
sidepanel.js converts discovered JSON schemas into Vercel AI SDK tools, runs multi-step tool calls directly against Gemini, Claude, or OpenAI, and renders live step telemetry.
navigator.modelContext.registerTool({
name: 'addTodo',
description: 'Add a new todo item to the page list',
inputSchema: {
type: 'object',
properties: {
text: {
type: 'string',
description: 'The task description to add'
}
},
required: ['text']
},
execute: async ({ text }) => {
const item = addTaskToState(text);
return { status: 'added', item };
}
});
<form
toolname="createSupportTicket"
tooldescription="Submit a support ticket with subject and priority"
toolautosubmit
>
<input
type="text"
name="subject"
required
toolparamdescription="Short summary of the support issue"
/>
<select
name="priority"
toolparamdescription="Urgency: low, medium, or high"
>
<option value="low">Low</option>
<option value="high">High</option>
</select>
<button type="submit">Submit</button>
</form>
Build & Load in Google Chrome
Get up and running in less than a minute from source or an unpacked release bundle.
git clone https://github.com/AJLoveChina/webmcp-extension.git
cd webmcp-extension
# Install dependencies & bundle with esbuild into dist/
npm install
npm run build
Step 2 · Load Unpacked in Chrome
- Open Google Chrome and navigate to
chrome://extensions/. - Enable Developer mode using the top-right toggle.
- Click Load unpacked and select the generated
dist/folder. - Pin webmcp in your toolbar, open the Side Panel, paste your Gemini / Claude / OpenAI API key, and try the playground above!
Single Purpose & Permission Transparency
Every Chrome permission requested by webmcp serves a single, clearly scoped purpose.
Single Purpose Statement
Discover, inspect, and execute WebMCP (Web Model Context Protocol) tools exposed by the active webpage using natural language prompts powered by the user's own Gemini, Claude, or OpenAI API key.
storage
Locally stores your chosen AI provider, model ID, theme/language settings, API keys, and recent prompt history in chrome.storage.local without any external server.
activeTab & scripting
Discovers and invokes WebMCP tools registered on the active webpage via navigator.modelContext / document.modelContext and declarative <form toolname> elements.
sidePanel
Displays the persistent conversational WebMCP controller and Tool Inspector inside Chrome's native Side Panel alongside the webpage.
tabs & <all_urls>
Automatically refreshes available WebMCP tools when switching tabs or navigating across any WebMCP-enabled domain, and connects directly to official Gemini, Claude, and OpenAI API endpoints.