A Manager-side Storybook addon that turns the story you have open, with its controls, globals and viewport, into WebMCP tools for browser agents. No MCP server, no shadow state, no DOM automation.
npm install -D storybook-addon-webmcp

The WebMCP panel in the demo Storybook, after an agent set the review rating to 1.
Published on npm as storybook-addon-webmcp. ESM-only, requires Storybook ^10.0.0. Register it:
// .storybook/main.ts
export default {
addons: ["storybook-addon-webmcp"],
};No Preview entry or backend is required. In browsers without document.modelContext.registerTool, Storybook runs as normal and the WebMCP panel reports that WebMCP is unavailable. See Getting started.
This is the deployed Storybook, running the addon against a demo host (MealDrop). Open the WebMCP panel to see the tools. Agent calls work in a browser that implements WebMCP; the panel and ordinary Storybook controls work everywhere.
Prefer a full tab? Open the demo. The overview walks through a six-step flow to try with an agent.
get_context, find_stories, open_story) and three contextual tools for controls and globals that follow the open story.Start with Getting started, then what it does, the tools, how it works, and security. Source is on GitHub (MIT).