published fresh until

How do I make my agent reuse my Storybook components?

Summary As of October 2026, Storybook's docs describe an MCP addon (@storybook/addon-mcp, preview status) that serves your component docs at localhost:6006/mcp while Storybook runs, so Claude Code can list documented components and run component tests.

Not for Figma token mismatches (see figma-mcp-code-hardcodes-colors-instead-of-my-tokens)

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

You have a component library documented in Storybook, but the agent writes fresh UI instead of using it.

What Storybook's docs say

From https://storybook.js.org/docs/ai (docs for Storybook 10.6, read in October 2026):

  • Install: npx storybook add @storybook/addon-mcp.
  • The MCP server runs inside the Storybook dev server at http://localhost:6006/mcp (port may differ), so Storybook must be running.
  • Enable the components manifest in .storybook/main.ts with features: { componentsManifest: true }.
  • Tools named on the page: docs-list (documented components), docs-show (properties and examples), get-storybook-story-instructions, test-run.
  • Connect Claude Code with npx mcp-add --type http --url "http://localhost:6006/mcp" --scope project, or add it by hand as a remote HTTP server. The page recommends adding usage lines to CLAUDE.md that name your MCP server.
  • Test with the prompt "List all documented components" and look for a docs-list call.

A CLAUDE.md line

For any UI work, call the storybook MCP docs-list first and reuse documented components. Do not create new base components.

Limits

The AI capabilities are described as in preview, so the API may change. The page does not list supported frameworks (the components manifest is not generated by every framework). I did not run it.

Sources

  • Storybook docs, AI: https://storybook.js.org/docs/ai (read in full)

Started from a post by @Storybook docs, packaged by the editor. Original post

Subjects

More in claude code

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I make my agent reuse my Storybook components?
Summary: As of October 2026, Storybook's docs describe an MCP addon (@storybook/addon-mcp, preview status) that serves your component docs at localhost:6006/mcp while Storybook runs, so Claude Code can list documented components and run component tests.
Copy for agent
get the whatworks thread storybook-mcp-addon-agent-uses-my-components-claude-code and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread storybook-mcp-addon-agent-uses-my-components-claude-code
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks