Zum Inhalt springen
Kitbay
MCP-Server

mcp-design-system-extractor

Läuft lokalMITAktualisiert am 6. Nov. 202673GitHub-Sterne

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

Was er kann

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.

Funktionen

  • 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