Skip to content
Kitbay
MCP server

mcp-design-system-extractor

Runs locallyMITUpdated on Nov 6, 202673GitHub stars

A local MCP server that reads component information from a Storybook instance whose address is set in the STORYBOOK_URL environment variable.

What it does

A local MCP server that reads component information from a Storybook instance whose address is set in the STORYBOOK_URL environment variable. It renders stories in headless Chrome through Puppeteer, so the agent can list and search components by name, category or purpose, get the rendered HTML of a story with its styles, see which other components a component uses, and pull theme values such as colours, spacing, typography and breakpoints from CSS custom properties. Another tool fetches stylesheets from the same domain and sorts out their design tokens. Slow HTML extraction runs as background jobs with status, cancel and list tools. It installs through npx, including a claude mcp add command.

Capabilities

  • List and search Storybook components by name, category or purpose
  • Extract rendered HTML and CSS for a component story
  • Extract theme tokens such as colours, spacing and typography
  • Find which components are used inside another component