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.
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-extractorRun in your terminal. Add --scope user to use it in every project.
Step-by-step: install mcp-design-system-extractor in Claude Code
{
"mcpServers": {
"mcp-design-system-extractor": {
"args": [
"-y",
"mcp-design-system-extractor"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install mcp-design-system-extractor in Claude Desktop
{
"mcpServers": {
"mcp-design-system-extractor": {
"args": [
"-y",
"mcp-design-system-extractor"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-design-system-extractor": {
"args": [
"-y",
"mcp-design-system-extractor"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
Step-by-step: install mcp-design-system-extractor in VS Code
codex mcp add mcp-design-system-extractor -- npx -y mcp-design-system-extractor{
"mcpServers": {
"mcp-design-system-extractor": {
"args": [
"-y",
"mcp-design-system-extractor"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install mcp-design-system-extractor in Antigravity CLI
gemini mcp add mcp-design-system-extractor npx -y mcp-design-system-extractorGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
Step-by-step: install mcp-design-system-extractor in Gemini CLI
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)
| Setting | Needed | What it is |
|---|---|---|
STORYBOOK_Environment variable | Optional | Base URL of the Storybook instance (default: http://localhost:6006) |
NODE_Environment variable | Optional | Set to 0 to allow self-signed certificates on the Storybook host |
DEBUGEnvironment variable | Optional | Set 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
ANo 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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
