FM

freema/mcp-design-system-extractor

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

73 stars 14 forks 품질 85 트렌드 14MIT

freema/mcp-design-system-extractor는 MCP 서버 후보가 https://github.com/freema/mcp-design-system-extractor.에서 가져온

개요

freema/mcp-design-system-extractor는 MCP 서버 후보가 https://github.com/freema/mcp-design-system-extractor.에서 가져온

개요(AI 번역)

Storybook 디자인 시스템의 구성 정보를 추출하는 모델 Context Protocol (MCP) 서버. Storybook 인스턴스에 연결하고 HTML, 스타일 및 구성 요소 메타 데이터를 추출합니다.

설치

Claude CLI 사용 (추천)

자기 위탁 증명서로:

npm 사용

그런 다음 MCP 클라이언트에서 구성 (환경 변수 참조).

출처에서

키 의존성

-Puppeteer: 동적 JavaScript 컴포넌트 렌더링을 위한 헤더리스 크롬 사용

  • Chrome/Chromium: Puppeteer (자동으로 도커에서 처리 됨)
  • 내장된 Storybook 배포 작업

특징

-List 구성 요소: 스토리북의 모든 사용 가능한 구성품을 컴팩트 모드로 만나보세요. -Extract HTML: 어떤 구성 요소의 렌더링 된 HTML을 가져옵니다 (async 또는 동기화 모드)

  • 검색 구성품: 이름, 제목, 범주, 또는 목적으로 구성품 찾기
  • ** 부품 의존 **: 다른 구성 요소 내에서 사용 되는 Analyze -Theme Information: 디자인 시스템 테마 추출 (색상, 간격, 타이그래피) -External CSS Analysis: 디자인 토큰을 추출하기 위해 CSS 파일을 Fetch 및 분석

이 페이지는 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

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

  1. list_components
    • Lists all available components from the Storybook instance
    • Use compact: true for minimal output (reduces response size)
    • Filter by category parameter
GitHub에서 전체 README 보기

설치

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" } } } }