About freema/mcp-design-system-extractor
freema/mcp-design-system-extractor is an MCP server published by freema in the Data category: mCP (Model Context Protocol) server that enables AI assistants to interact with Storybook design systems. Extract component HTML, analyze styles, and help with design system adoption and refactoring. Conduid read 9 tools from its source: get_component_dependencies, get_component_html, get_external_css, get_theme_info, job_cancel, job_list and 3 more. It is published to npm as mcp-design-system-extractor and starts with npx.
The repository has 73 stars and 14 forks, is licensed MIT, and its last commit was on 6 Nov 2026. The latest release is v1.2.0 (27 Jul 2026). It follows 1.1.1 (4 Feb 2026), and the 5 most recent releases go back to 0.1.1 (11 Jul 2025). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include chrome-devtools, design-system, design-tokens, reverse-engineering, screenshots and style-guide.
Install
claude mcp add design-system-extractor -- npx -y mcp-design-system-extractornpx -y mcp-design-system-extractorgit clone https://github.com/freema/mcp-design-system-extractorTools (9)
get_component_dependenciesAnalyze rendered HTML to find which other components a given component internally uses by detecting React components, web components, and CSS class patterns| Parameter | Type | Description |
|---|---|---|
| componentId * | string | The story ID of the component (e.g., "example-button--primary") |
get_component_htmlExtract HTML from a component. Default is async (returns job_id, poll with job_status). Set async=false for sync mode. Use variantsOnly=true to get variant list.| Parameter | Type | Description |
|---|---|---|
| async | boolean | If true (default), returns job_id immediately - use job_status to poll for results. If false, waits for result synchronously. |
| componentId * | string | The story ID in format "component-name--story-name" (e.g., "button--primary") or component ID (e.g., "button") when using variantsOnly. |
| includeStyles | boolean | Whether to include extracted CSS styles in the response. Storybook boilerplate CSS is filtered out. Default: false. |
| timeout | number | Custom timeout in milliseconds (5000-60000). Only used in sync mode (async=false). Default is 15000ms. |
| variantsOnly | boolean | If true, returns only the list of available variants/stories for the component (synchronous). Use component ID without story suffix. |
get_external_cssExtract design tokens from CSS files. DEFAULT BEHAVIOR: Returns ONLY tokens and file statistics (small response ~1-3K tokens). Does NOT return CSS content by default to avoid token limits. For full CSS content, explicitly set includeFullCSS=true and maxContentSize. Perfect for analyzing design system tokens without hitting response size limits.| Parameter | Type | Description |
|---|---|---|
| cssUrl * | string | URL of CSS file to analyze. IMPORTANT: Tool returns only design tokens by default (not CSS content) to avoid response size limits. |
| extractTokens | boolean | Extract design tokens (colors, spacing, typography, etc.). Default: true. This is the main purpose of this tool. |
| includeFullCSS | boolean | OPTIONAL: Set to true ONLY if you need the actual CSS content. WARNING: Large CSS files may hit token limits. Default: false (recommended). |
| maxContentSize | number | OPTIONAL: Max CSS content characters when includeFullCSS=true. Default: 10000. Larger files will be truncated. |
get_theme_infoGet design system theme information (colors, spacing, typography, breakpoints)| Parameter | Type | Description |
|---|---|---|
| includeAll | boolean | Whether to include all CSS custom properties found (default: false) |
job_cancelCancel a queued or running job. Returns whether the cancellation was successful.| Parameter | Type | Description |
|---|---|---|
| job_id * | string | The job ID to cancel |
job_listList all jobs with their status. Shows what each job is processing and whether it is still running.| Parameter | Type | Description |
|---|---|---|
| status | string | Filter by status: "all" (default), "active" (queued/running), "completed" (completed/failed/cancelled) |
job_statusCheck the status of an async job. Returns status, progress, and result when completed. Poll this endpoint to get results from get_component_html.| Parameter | Type | Description |
|---|---|---|
| job_id * | string | The job ID returned from get_component_html |
list_componentsList all UI components available in your design system/Storybook. Returns components like modals, dialogs, buttons, forms, cards, etc. with their names, categories, and variant count. Use this to explore what components are available for building UI features. Use category="all" or omit category parameter to list all components. Supports pagination to handle large component libraries.| Parameter | Type | Description |
|---|---|---|
| category | string | Filter components by category path (e.g., "Components/Buttons", "Layout"). Use "all" or omit to list all components. |
| compact | boolean | If true (default), returns compact format with only id, name, title, and variantCount. If false, returns full component data including all stories. |
| page | number | Page number (1-based). Default is 1. |
| pageSize | number | Number of components per page (1-100). Default is 20. |
search_componentsSearch design system components by name, title, category, or purpose. Find UI components like modals, dialogs, buttons, forms, cards, etc. Supports text search (query) and semantic search by purpose. Available purposes: "form inputs", "navigation", "feedback", "data display", "layout", "buttons", "progress", "media". Supports pagination for large result sets.| Parameter | Type | Description |
|---|---|---|
| page | number | Page number (1-based). Default is 1. |
| pageSize | number | Number of components per page (1-100). Default is 20. |
| purpose | string | Semantic search by purpose. Available: "form inputs", "navigation", "feedback", "data display", "layout", "buttons", "progress", "media". Can be combined with query. |
| query | string | Text search query (e.g., "button", "form", "nav"). Use "*" to list all. Case-insensitive partial matching. Optional if purpose is provided. |
| searchIn | string | Where to search: "name" (component name only), "title" (full path), "category" (grouping), or "all" (search everywhere, default) |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.2K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- !No dynamic code executionScanned 29 source files and found 4 calls to eval or shell execution, in src/utils/puppeteer-client.ts:88 and src/utils/puppeteer-client.ts:108 among others. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/index.ts:6
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 3 callssrc/tools/get-external-css.ts:191, src/utils/storybook-client.ts:93, src/utils/storybook-client.ts:155
- Writes or deletes files
- No file writes or deletes
- Lockfile
- package-lock.json
Pattern matches on the source text of 29 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.2K words, fetched a month ago. The original in the repository is authoritative.
Read full README