Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mcp-design-system-extractor

MCP server by freema Community

Extracts component HTML, styles and metadata from Storybook design systems for AI assistants. Useful when building new features or migrating components that should match an existing design system.

  • Score 79
  • 73 stars
  • 451 a week
  • MIT
  • Updated

Install mcp-design-system-extractor

Built from the published package, never by AI.

claude mcp add mcp-design-system-extractor -- npx -y mcp-design-system-extractor

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install mcp-design-system-extractor in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-design-system-extractor block.

About

MCP Design System Extractor is a Model Context Protocol server that connects to a Storybook instance and extracts component information. It can list components, search them by name, title, category or purpose, and return rendered HTML and styles. It also reads theme information and CSS design tokens such as colors, spacing and typography.

The server reads the story index from /index.json, falling back to /stories.json, and renders stories through /iframe.html. It uses Puppeteer with headless Chrome to render JavaScript components. Long-running operations run in an in-memory job queue with a maximum of two concurrent jobs. The project is aimed at developers who work with Storybook design systems and AI assistants, including teams that need to recreate components in another framework.

Written from the project's README and checked against it.

Tools it gives your assistant

  • list_componentsLists all available components from the Storybook instance, with a compact mode and category filter.
  • get_component_htmlExtracts the HTML of a component story, async by default, with optional variant listing and styles.
  • search_componentsFinds components by name, title, category or purpose such as form inputs or navigation.
  • get_component_dependenciesAnalyzes rendered HTML to find which other components are used inside a component.
  • get_theme_infoExtracts the design system theme, including colors, spacing, typography and breakpoints.
  • get_external_cssFetches a CSS file and returns categorized design tokens for colors, spacing, typography and shadows.
  • job_statusChecks the status and result of an async job created by get_component_html.
  • job_cancelCancels a queued or running job and reports whether cancellation succeeded.
  • job_listLists jobs filtered by all, active or completed status, with queue statistics.

What you need

  • Node.js 22.12 or later
  • Chrome or Chromium for Puppeteer
  • A running Storybook instance (version 7 to 10)
SettingNeededWhat it is
STORYBOOK_URLEnvironment variableOptionalBase URL of the Storybook instance (default: http://localhost:6006)
NODE_TLS_REJECT_UNAUTHORIZEDEnvironment variableOptionalSet to 0 to allow self-signed certificates on the Storybook host
DEBUGEnvironment variableOptionalSet to true for verbose logging on stderr

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Show me all available button components in the design system
  • Extract the color palette and typography tokens from the design system.
  • Get the HTML and styles for the alert component.

Good to know

  • Storybook 6 and earlier are not supported.
  • get_external_css only accepts URLs from the same domain as the Storybook instance.
  • Completed jobs are kept for 1 hour, and the queue runs at most 2 jobs at once.
  • Self-signed certificates require setting NODE_TLS_REJECT_UNAUTHORIZED=0, which disables SSL verification.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to mcp-design-system-extractor

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

mcp-design-system-extractor: common questions

Which Storybook versions does it support?

The source says Storybook 7, 8, 9 and 10 are supported. Storybook 6 and earlier are not, because they predate /index.json and use a different story-id scheme.

Does it work with a static Storybook build?

Yes. The source says both a dev server and a built static Storybook served over HTTP will work.

Why are HTML requests async by default?

The source says async mode prevents timeouts on large components. You can set async to false to use synchronous mode with a timeout parameter.

How do I install mcp-design-system-extractor?

In Claude Code run claude mcp add mcp-design-system-extractor -- npx -y mcp-design-system-extractor. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is mcp-design-system-extractor the official server?

mcp-design-system-extractor is a community project by freema, not verified by a company domain.

Is mcp-design-system-extractor free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is mcp-design-system-extractor safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to mcp-design-system-extractor?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does mcp-design-system-extractor work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

mcp-design-system-extractor Install

Add to stack

Loading.