Pular para o conteúdo
Kitbay
Servidor MCP

mcp-design-system-extractor

Roda localmenteMITAtualizado em 6 de nov. de 202673Estrelas no GitHub

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

Resumo

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.

O que faz

  • 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