cloud-devops-expert
Cloud and DevOps expert including AWS, GCP, Azure, and Terraform
webmcp-browser-tools
WebMCP — browser-side API that lets web applications expose their own functionality as MCP tools TO AI agents. Use when designing or integrating with web apps that surface UI actions (forms, buttons, data queries) as callable agent tools. NOT for web scraping or fetching external pages.
Full skill instructions
WebMCP is a browser API specification — published as a W3C Community Group Draft by contributors from Google and Microsoft (February 2026) — that enables web applications to expose their own UI functionality as MCP tools to AI agents.
Direction of data flow: Web App → exposes tools → AI Agent calls them.
This is the reverse of web scraping. The web app author decides what functions agents can call. The agent doesn't read the page — it calls structured tools the page registered.
| Scenario | Correct Tool |
|---|---|
| Agent fetches content from an external website (BLS, Ongig, news sites) | WebFetch or mcp__Exa__web_search_exa |
| Web app exposes its own actions (add to cart, filter results, submit form) to an AI agent | WebMCP |
| Agent automates a browser (click, fill, navigate) | mcp__chrome-devtools__* or Playwright |
WebMCP is not a web scraper, crawler, or search engine. It is a tool registration protocol for web apps that want to be first-class AI-callable services.
Experimental Web Platform Features flag. Stable rollout expected mid–late 2026.@mcp-b/ ecosystem provides working npm packages today (polyfill + React integration)| Package | Purpose |
|---|---|
@mcp-b/react-webmcp | React hooks to expose components as MCP tools (v1.1.1) |
@mcp-b/webmcp-polyfill | Strict WebMCP core polyfill for any framework |
@mcp-b/webmcp-types | TypeScript type definitions |
@mcp-b/transports | Browser transport layer (WebSocket/postMessage) |
@mcp-b/webmcp-ts-sdk | Adapts the official MCP TypeScript SDK for browsers |
@mcp-b/create-webmcp-app | Scaffolding tool for new WebMCP apps |
Install:
npm install @mcp-b/react-webmcp
# or for raw usage:
npm install @mcp-b/transports @modelcontextprotocol/sdk zod
A web app registers tools with the browser. An AI agent (that has been granted access) can call those tools. The handler runs as client-side JavaScript with full access to the page's state.
// Web app registers tools for AI agents to call
if ('modelContext' in window.navigator) {
window.navigator.modelContext.provideContext({
tools: [
{
name: 'filterProducts',
description: 'Filter the product list by a natural language query',
inputSchema: {
type: 'object',
properties: {
query: { type: 'string', description: 'Natural language filter' },
},
required: ['query'],
},
execute({ query }, agent) {
// Runs in-browser, has access to current UI state
const results = productService.filter(query);
return { content: [{ type: 'text', text: JSON.stringify(results) }] };
},
},
],
});
}
@mcp-b/react-webmcp)import { useTool } from '@mcp-b/react-webmcp';
function ProductList({ products }) {
useTool({
name: 'filterProducts',
description: 'Filter products visible on screen',
inputSchema: {
/* ... */
},
execute({ query }) {
return products.filter(p => p.name.includes(query));
},
});
return (
<ul>
{products.map(p => (
<li key={p.id}>{p.name}</li>
))}
</ul>
);
}
| Aspect | Standard MCP Server | WebMCP |
|---|---|---|
| Location | Separate server process | Browser client-side JS |
| Context access | Isolated from UI | Shares live UI state, DOM, user session |
| Status | Production-ready | Chrome Canary preview (stable ~mid-2026) |
| Installation | npm server package | @mcp-b/ npm packages (polyfill) or native browser API |
| Setup | Separate process, stdio/SSE | In-page script, browser transport |
| Auth | Server-level | Browser security model + page context |
Use Skill({ skill: 'webmcp-browser-tools' }) when:
Do NOT use this skill when:
WebFetch or mcp__Exa__web_search_examcp__chrome-devtools__*searchInventory, addToCart, applyPromoCode — agent calls them without scrapingrunQuery(metric, timeRange) — agent can answer data questions without screen-readinginsertSnippet, runTests, openFile — agent assists without Playwright automationcreateComponent, applyTheme — agent can directly modify designs@mcp-b/webmcp-polyfill or @mcp-b/react-webmcp in the target web appwindow.navigator.modelContext.provideContext()mcp__chrome-devtools__* tools available) can discover and call registered tools on the pagewebmcp-integration workflow for onboarding web apps as agent-callable servicesWatch: https://github.com/webmachinelearning/webmcp for:
window.navigator.modelContext API surface@mcp-b/ package releases for updated polyfill patternsWebFetch / Exa@mcp-b/webmcp-polyfill for progressive enhancement today| Agent | Role |
|---|---|
frontend-pro | Primary — designing and implementing WebMCP tool registration in web apps |
developer | Supporting — integration architecture, polyfill setup, TypeScript types |
researcher | Supporting — tracking spec evolution, browser support status |
if ('modelContext' in window.navigator) feature detection@mcp-b/webmcp-polyfill) for development until Chrome stable ships the native API| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| No feature detection guard | Crashes in non-WebMCP browsers | Always check 'modelContext' in window.navigator |
| Using WebMCP for external URL fetching | Wrong direction of data flow | Use WebFetch or Exa for external content |
| Skipping JSON Schema for tool inputs | Ambiguous contracts, runtime errors | Define schema for all tool inputs before handler |
| Registering backend-equivalent tools | Duplicates MCP server, ignores page state | Tools should expose UI-specific actions and state |
| Relying on native API in production now | Chrome stable ships ~mid-2026 | Use @mcp-b/webmcp-polyfill until native is stable |
Before starting:
Read .claude/context/memory/learnings.md
After completing:
.claude/context/memory/learnings.md.claude/context/memory/learnings.md.claude/context/memory/decisions.md@mcp-b/ packages → .claude/context/memory/issues.mdASSUME INTERRUPTION: If it's not in memory, it didn't happen.
Cloud and DevOps expert including AWS, GCP, Azure, and Terraform
Spreadsheet toolkit (.xlsx/.csv). Create/edit with formulas/formatting, analyze data, visualization, recalculate formulas, for spreadsheet processing and analysis.
Automated brownfield codebase analysis with weighted keyword scoring, three-stream analysis, and design pattern recognition. Detects project type, frameworks, dependencies, architecture patterns, and generates comprehensive project profile.
Use when creating, updating, or generating README and documentation files for projects and libraries
Core skill for the deep research and writing tool. Write scientific manuscripts in full paragraphs (never bullet points). Use two-stage process with (1) section outlines with key points using research-lookup then (2) convert to flowing prose. IMRAD structure, citations (APA/AMA/Vancouver), figure...
Comprehensive Android development expert covering Jetpack Compose, Kotlin coroutines/Flow, Architecture Components, Hilt DI, Navigation, testing, performance, Material Design 3, and modern Android patterns (MVI, Clean Architecture).
Efficient database search tool for bioRxiv preprint server. Use this skill when searching for life sciences preprints by keywords, authors, date ranges, or categories, retrieving paper metadata, downloading PDFs, or conducting literature reviews.
Use when the user wants to use Google Gemini for analysis, large files or codebases, sandbox execution, or brainstorming. Uses headless Gemini CLI scripts (no MCP). Triggers on "use Gemini", "analyze with Gemini", "large file", "sandbox", "brainstorm with Gemini".
High-performance toolkit for genomic interval analysis in Rust with Python bindings. Use when working with genomic regions, BED files, coverage tracks, overlap detection, tokenization for ML models, or fragment analysis in computational genomics and machine learning applications.
Defines the structure and implementation of service classes, enforcing the use of interfaces, ServiceImpl classes, DTOs for data transfer, and transactional management.
Diffusion-based molecular docking. Predict protein-ligand binding poses from PDB/SMILES, confidence scores, virtual screening, for structure-based drug design. Not for affinity prediction.
How agents discover and use skills. Use to understand skill invocation protocol.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience