
freema/mcp-design-system-extractor
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
freema/mcp-design-system-extractor は [https://github.com/freema/mcp-design-system-extractor.] からインポートされた MCP サーバーの候補です
概要
freema/mcp-design-system-extractor は [https://github.com/freema/mcp-design-system-extractor.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
ストーリーブック設計システムからコンポーネント情報を抽出するモデルコンテキストプロトコル(MCP)サーバー。 ストーリーブックインスタンスに接続し、HTML、スタイル、コンポーネントメタデータを抽出します。
インストール
##Claude CLI の使用 (推奨)
自己署名された証明書を使って:
##npm を使う
次に、MCP クライアントで設定します(環境変数を参照してください)。
ソースから
主な依存関係
-Puppeteer:動的JavaScriptコンポーネントレンダリング用のヘッドレスChromeを使用します -Chrome/Chromium:Puppeteer(自動ドッカーで処理)に必須
- ストーリーブックの配布を組み込んだ作品
##特徴
-リストコンポーネント: コンパクトなモードでストーリーブックから利用可能なすべてのコンポーネントを入手
- HTMLを抽出: 任意のコンポーネントのレンダリングされた HTML を取得する (async または sync モード) -検索コンポーネント: 名前、タイトル、カテゴリ、または目的別にコンポーネントを見つける -コンポーネントの依存関係: 他のコンポーネント内で使用されるコンポーネントを分析
- テーマ:抽出設計システムテーマ(色、間隔、タイポグラフィ)
- 外部CSS分析:デザイントークンを抽出するためにCSSファイルをフェッチして分析
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Design System Extractor
A Model Context Protocol (MCP) server that extracts component information from Storybook design systems. Connects to Storybook instances and extracts HTML, styles, and component metadata.
Installation
Using Claude CLI (Recommended)
claude mcp add design-system npx mcp-design-system-extractor@latest \
--env STORYBOOK_URL=http://localhost:6006
With self-signed certificate:
claude mcp add design-system npx mcp-design-system-extractor@latest \
--env STORYBOOK_URL=https://my-storybook.example.com \
--env NODE_TLS_REJECT_UNAUTHORIZED=0
Using npm
npm install -g mcp-design-system-extractor
Then configure in your MCP client (see Environment Variables).
From Source
git clone https://github.com/freema/mcp-design-system-extractor.git
cd mcp-design-system-extractor
npm install && npm run build
npm run setup # Interactive setup for Claude Desktop
Key Dependencies
- Puppeteer: Uses headless Chrome for dynamic JavaScript component rendering
- Chrome/Chromium: Required for Puppeteer (automatically handled in Docker)
- Works with built Storybook distributions
Features
- List Components: Get all available components from your Storybook with compact mode
- Extract HTML: Get the rendered HTML of any component (async or sync mode)
- Search Components: Find components by name, title, category, or purpose
- Component Dependencies: Analyze which components are used within other components
- Theme Information: Extract design system theme (colors, spacing, typography)
- External CSS Analysis: Fetch and analyze CSS files to extract design tokens
- Async Job Queue: Long-running operations run in background with job tracking
Environment Variables
| Variable | Description | Default |
|---|---|---|
STORYBOOK_URL |
URL of your Storybook instance | http://localhost:6006 |
NODE_TLS_REJECT_UNAUTHORIZED |
Set to 0 to skip SSL certificate verification (for self-signed certs) |
1 |
Example with self-signed certificate:
{
"mcpServers": {
"design-system": {
"command": "node",
"args": ["/path/to/dist/index.js"],
"env": {
"STORYBOOK_URL": "https://my-storybook.example.com",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
}
}
}
Usage
See DEVELOPMENT.md for detailed setup instructions.
Available Tools (9 total)
Core Tools
- list_components
- Lists all available components from the Storybook instance
- Use
compact: truefor minimal output (reduces response size) - Filter by
categoryparameter
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"design-system": {
"command": "node",
"args": ["/path/to/dist/index.js"],
"env": {
"STORYBOOK_URL": "https://my-storybook.example.com",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
}
}
}