Storybook's official MCP comes as an addon,
@storybook/addon-mcp, that serves an MCP endpoint from your running Storybook. It gives your agent your component library's documentation: which components exist, their props and their example stories.With it, the agent builds with the components you have instead of inventing a new button. It can also find the stories a change affected, preview them and run their interaction and accessibility tests. Pair it with Playwright to check the finished page in a real browser.
Component docs
Lists components and shows their props and stories (docs-list, docs-show)
Story preview
Previews stories inline or returns links to Storybook
Changed stories
Finds the stories a code change affected (stories-changed)
Tests
Runs interaction and accessibility tests on stories (test-run)
Prompts to try
When to use
- You have a component library documented in Storybook
- You want the agent to reuse your components instead of writing new ones
- You want stories and accessibility tests run as part of the change
When not to use
- You don't use Storybook and build on shadcn: use shadcn/ui
- You need new components generated from a prompt: use 21st.dev Magic
- You want to check the shipped page at every screen size: use Playwright
Watch out
- Storybook must be running for the server to answer.
- The docs tools need a components manifest. They support React frameworks plus the Vite builds of Angular and Vue; Webpack Angular and Nuxt don't get them.
- The test tool needs Storybook Test set up.
Install
Terminal
Loading editor...
npx storybook add @storybook/addon-mcp claude mcp add --transport http storybook http://localhost:6006/mcp
Enable
features: { componentsManifest: true } in .storybook/main.ts for the docs tools, then start Storybook. For other clients, run npx mcp-add --type http --url "http://localhost:6006/mcp" --scope project. Add a line to CLAUDE.md or AGENTS.md telling the agent to check Storybook first.More in Top MCP servers for design.