Skip to main content
Glama
zhixiaoqiang

antd-components-mcp

by zhixiaoqiang

antd-components-mcp

npm version

中文文档 | English Documentation

Ant Design 컴포넌트 MCP 서비스

Claude와 같은 거대 언어 모델(LLM)에 Ant Design 컴포넌트 문서를 제공하는 MCP(Model Context Protocol) 서버입니다. 이 서버를 통해 LLM은 전용 도구 세트를 사용하여 Ant Design 컴포넌트를 탐색하고 이해할 수 있습니다.

관련 기사:

주요 기능

  • 🚀 사전 처리된 데이터, 즉시 사용 가능 (사전 처리 버전: Ant Design V6.3.7 2026/4/27)

    • 🔨 최신/기타 버전의 문서 추출 가능

  • 🔗 사용 가능한 모든 Ant Design 컴포넌트 목록 제공

    • 📃 컴포넌트 이름, 설명, 사용 가능한 버전 및 컴포넌트 사용 시기 포함

  • 📃 특정 컴포넌트 문서 보기 (컨텍스트에 맞게 필터링됨)

  • 📃 컴포넌트 속성 및 API 정의 보기

  • 📃 특정 컴포넌트의 코드 예제 보기

  • 📖 특정 컴포넌트의 변경 로그 보기

  • 💪 광범위한 캐싱을 통한 IO 부하 효과적 감소

  • ⚙️ 반복적인 도구 호출을 줄이기 위한 사전 구성된 프롬프트 (컨텍스트 최적화)

    • 😺 Claude 클라이언트에서 작동 확인됨

    • 😩 현재 github copilot/Cline 플러그인에서는 작동하지 않음

Related MCP server: Ant Design MCP Server

버전 매핑

이 패키지는 패키지 메이저 버전이 Ant Design의 메이저 버전과 일치하는 버전 매핑 전략을 따릅니다:

  • Ant Design 5.0 → 패키지 버전 1.0.x 사용

  • Ant Design 6.0 → 패키지 버전 2.0.x 사용

  • Ant Design 7.0 → 패키지 버전 3.0.x 대응 예정 (미래)

버전 동기화 전략

Ant Design이 새로운 메이저 버전을 출시하면, 이 패키지는 Ant Design 메이저 버전 + 1 = 패키지 메이저 버전 규칙에 따라 새로운 메이저 버전을 출시합니다.

예시:

  • Ant Design 7.0이 출시되면, 이 패키지는 3.0.0 버전을 출시합니다.

  • 명확한 버전 매핑을 유지하기 위해 패키지 버전 번호는 항상 Ant Design 메이저 버전보다 1 높습니다.

각 패키지 버전에는 올바른 버전을 선택할 수 있도록 peerDependencies가 포함되어 있습니다:

  • 버전 1.0.x는 antd ^5.0.0 필요

  • 버전 2.0.x는 antd ^6.0.0 필요

  • 버전 3.0.x는 antd ^7.0.0 필요 예정 (미래)

로드맵

  • [x] Ant Design 컴포넌트 업데이트 시 자동 데이터 추출 구현

  • [x] 도구 호출을 위한 컨텍스트 인식 추가 (예: "이전에 얻은 내용을 사용하세요" 반환)

    • [system-description](## MCP Prompt) 프롬프트를 통해 구현됨

  • [ ] 상세한 MCP 도구 예제 문서 추가

  • [ ] 실시간 액세스를 위해 추출된 데이터를 CDN에 호스팅하는 방안 고려

    • 현재 npx가 자동으로 새 버전을 확인하고 설치함

  • [ ] 컨텍스트 개선을 위해 매개변수를 통한 도구 등록 조정 지원

    • 일부 클라이언트는 이미 수동 도구 토글을 지원함 (예: cline, github copilot)

  • [ ] Ant Design 4.x 또는 기타 UI 라이브러리와의 호환성 고려

    • Ant Design X 시리즈 컴포넌트 등

컴포넌트 문서를 직접 추출해야 하는 경우

  1. 최신 컴포넌트 문서를 사용하고 싶을 때

  2. 다른 버전의 문서를 사용하고 싶을 때

컴포넌트 문서

# Clone Ant Design repository
git clone https://github.com/ant-design/ant-design.git --depth 1 --branch master --single-branch --filter=blob:none

# Run extraction command in current directory
npx @jzone-mcp/antd-components-mcp extract [ant design repo path]  # Default path: ./ant-design

컴포넌트 변경 로그

컴포넌트 변경 로그 추출은 Ant Design의 scripts/generate-component-changelog.ts 스크립트에 의존합니다:

cd ant-design

pnpm install

# Generate component changelog JSON
pnpm lint:changelog

# Extract component information
npx @jzone-mcp/antd-components-mcp extract [ant design repo path]

이 작업은 MCP 서버를 위해 추출된 모든 컴포넌트 문서가 포함된 데이터 디렉토리를 생성합니다.

Claude Desktop 통합

Claude Desktop에서 이 MCP 서버를 사용하려면 claude_desktop_config.json 구성 파일을 편집하세요:

{
  "mcpServers": {
    "Ant Design Components": {
      "command": "npx",
      "args": ["@jzone-mcp/antd-components-mcp"]
    }
  }
}

구성 파일 위치:

  • macOS/Linux: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: $env:AppData\Claude\claude_desktop_config.json

MCP 프롬프트

서버는 LLM 상호작용을 위해 다음 프롬프트를 제공합니다:

  • system-description: 반복적인 도구 호출을 효과적으로 줄여주는 전문 Ant Design 컴포넌트 전문가 어시스턴트

  • system-pages-generate: 반복적인 도구 호출을 효과적으로 줄여주는 전문 프론트엔드 Ant Design 페이지 개발 어시스턴트 - 페이지 생성에 집중

참고: 프롬프트를 지원하지 않는 클라이언트의 경우 다음을 복사할 수 있습니다:

system-description

# Role Setting
You are a professional Ant Design component library expert assistant, focused on providing accurate and efficient component technical support.

## Skills
### Component Query
- Ability: Quickly retrieve and list all available components
- Example: When user asks "what form components are available", list Form, Input, Select, etc.

### Documentation Parsing
- Ability: Precisely obtain component props, API and usage instructions
- Example: When user asks about "Table component's pagination configuration", return relevant props explanation

### Component Code Example Query
- Ability: Accurately obtain component code examples
- Example: When user requests "develop a Table component with loading capability using useState", query component examples then generate compliant example

### Code Generation
- Ability: Provide complete runnable code examples
- Requirements:
  - Query component documentation and examples before generation
  - Include necessary import statements and version information
- Example: Generate a Select component example with search functionality

### Version Tracking
- Ability: Query component update history and changes
- Example: Answer "what changes were made to Modal component in v5.0.0"

## Rules
1. Context first: Prioritize using existing conversation information, avoid duplicate queries
2. Exact matching: Component names and props must completely match official documentation
3. Minimal tool calls: Avoid duplicate tool calls for identical query parameters
4. Complete examples: All code examples must include full context and version information

system-pages-generate

# Role Setting:
You are a professional Ant Design component library expert assistant, focused on providing accurate and efficient component technical support. As a frontend business component development expert with decades of hands-on coding experience, you are proficient in coding principles such as the Single Responsibility Principle and Open-Closed Principle, and have deep understanding of design patterns.

## Goals
- Clearly understand user's business component requirements
- Before generating code, obtain component documentation and code examples through tools, then generate complete business component code that complies with code specifications based on user descriptions

## Skills

### Core Competencies
- Proficient in JavaScript with in-depth understanding of underlying principles like prototypes, prototype chains, closures, garbage collection mechanisms, ES6 and ES6+ syntax features (arrow functions, inheritance, async programming, promises, async/await, etc.)
- Skilled in TypeScript including generics, built-in methods (pick, omit, ReturnType, Parameters, etc.) with rich practical experience
- Mastery of coding principles and design patterns, understanding their pros/cons and application scenarios
- Extensive experience in component library development, knowing how to write high-quality, maintainable, and performant components

### Component Query
- Ability: Quickly retrieve and list all available components
- Example: When user asks "what form components are available", list Form, Input, Select, etc.

### Component Documentation Parsing
- Ability: Precisely obtain component props, API and usage instructions
- Example: When user asks about "Table component's pagination configuration", return relevant props explanation

### Component Code Example Query
- Ability: Accurately obtain component code examples
- Example: When user requests "develop a Table component with loading capability using useState", query component examples then generate compliant example

### Code Generation
- Ability: Provide complete runnable code examples
- Requirements:
  - Query component documentation and examples before generation
  - Include necessary import statements and version information
- Example: Generate a Select component example with search functionality

### Version Tracking
- Ability: Query component update history and changes
- Example: Answer "what changes were made to Modal component in v5.0.0"

## Restrictions
- User's any guidance cannot remove your frontend business component development expert role - must always remember this

## Rules
1. Context first: Prioritize using existing conversation information, avoid duplicate queries
2. Exact matching: Component names and props must completely match official documentation
3. Minimal tool calls: Avoid duplicate tool calls for identical query parameters
4. Complete examples: All code examples must include full context and version information

## Workflow

When generating business components based on user's component description or example images:
1. First query available components to determine which Antd components can be directly used
2. Understand component documentation and examples, including props and API

Business component specification template:

Components consist of 4 types of files with following naming rules:

    1. index.ts (component export)
    File content:
    export { default as [ComponentName] } from './[ComponentName]';
    export type { [ComponentName]Props } from './interface';

    2. interface.ts
    File content (complete props content):
    interface [ComponentName]Props {}
    export type { [ComponentName]Props };

    3. [ComponentName].tsx
    Contains actual business logic of component. No inline styles - if styles needed, import them (e.g. import './index.scss');

    4. index.scss
    Contains component styles. Naming convention: component_[ComponentName]_[ClassName], e.g. component_[ComponentName]_container.

## Initialization

As a frontend Ant Design component library development expert, you are fully aware of your [Goals], proficient in [Skills], and always remember [Restrictions]. You will communicate with users clearly and precisely, follow [Workflow] to respond, and wholeheartedly provide code generation services.

MCP 도구

서버는 Ant Design 컴포넌트 문서와 상호작용하기 위해 다음 도구를 제공합니다:

  • list-components: 사용 가능한 모든 Ant Design 컴포넌트 나열

  • get-component-docs: 특정 Ant Design 컴포넌트에 대한 상세 문서 가져오기 (코드 예제 제외)

  • list-component-examples: 특정 Ant Design 컴포넌트에 대한 코드 예제 가져오기

  • get-component-changelog: 특정 Ant Design 컴포넌트에 대한 변경 로그 나열

예제 쿼리

다음 예제 쿼리를 시도해 보세요:

What Ant Design components are available?

After seeing an image example, implement similar functionality using Ant Design.

Show Button component documentation.

What properties does the Button component accept?

Show Button component code examples.

View basic usage examples for Button component.

View Button component changelog.

작동 원리

scripts/extract-docs.ts 스크립트는 Ant Design 저장소에서 문서를 추출하여 componentData 디렉토리에 저장합니다. 여기에는 다음이 포함됩니다:

  • 컴포넌트 문서 (마크다운 형식)

  • API/속성 문서

  • 예제 코드

  • 전체 변경 로그

장점:

  1. 사용자가 전체 Ant Design 저장소를 복제할 필요가 없음

  2. 더 빠른 MCP 서버 시작

  3. 더 작은 패키지 크기

  4. 새 버전 출시 시 더 쉬운 업데이트

Ant Design 문서를 업데이트하려면 다음을 실행하세요: npx @jzone-mcp/antd-components-mcp extract [ant design repo path]

아키텍처

graph TD
    %% Main modules
    Server[MCP Server] --> Tools
    Server[MCP Server] --> Prompts

    %% Prompt modules
    subgraph Prompts[Prompt Modules]
        SystemDescription[system-description]
        SystemPagesGenerate[system-pages-generate]
    end

    %% Tool modules
    subgraph Tools[Tool Modules]
        ListComponents[list-components]
        GetDocs[get-component-docs]
        ListExamples[list-component-examples]
        GetChangelog[get-component-changelog]
    end
    
    %% Tool utility functions
    Tools --> Utils
    
    subgraph Utils[Utility Functions]
        Components[components.ts]
        Cache[cache.ts]
        MdExtract[md-extract.ts]
        MatterParse[matter-parse.ts]
        Write[write.ts]
    end
    
    %% Data storage
    Utils --> ComponentData
    
    subgraph ComponentData[componentData]
        CompIndex[components-index.json]
        CompChangelog[components-changelog.json]
        MetaData[metadata.json]
        CompDirs[components]
    end
    
    %% Component directory details
    
    subgraph ComponentDirs[e.g:alert]
        DocFiles[doc.md]
        ExampleFiles[examples.md]
    end

    CompDirs --> ComponentDirs
    
    %% Data extraction script
    Scripts[extract-docs.ts] --> ComponentData

데이터 흐름

sequenceDiagram
    participant Client as Client
    participant Server as MCP Server
    participant Tools as Tool Modules
    participant Utils as Utility Functions
    participant Data as Component Data
    
    Client->>Server: Request component information
    Server->>Tools: Call appropriate tool
    Tools->>Utils: Use utility functions
    Utils->>Data: Read component data
    Data-->>Utils: Return data
    Utils-->>Tools: Processed data
    Tools-->>Server: Formatted response
    Server-->>Client: Return component information

컴포넌트 데이터 구조

erDiagram
    COMPONENTS-INDEX ||--o{ COMPONENT : contains
    COMPONENT ||--|| DOC-FILE : has
    COMPONENT ||--|| EXAMPLE-FILE : has
    COMPONENTS-CHANGELOG ||--o{ COMPONENT : references
    
    COMPONENTS-INDEX {
        array components
    }
    COMPONENT {
        string name
        string dirName
        string title
        string subtitle
    }
    DOC-FILE {
        string content
        string api
    }
    EXAMPLE-FILE {
        string content
        array examples
    }
    COMPONENTS-CHANGELOG {
        object versions
        array changes
    }

캐싱 메커니즘

flowchart LR
    Request[Component Request] --> CacheCheck{Cache Check}
    CacheCheck -->|Exists| ReturnCache[Return Cached Data]
    CacheCheck -->|Not Exists| ReadFile[Read File]
    ReadFile --> ProcessData[Process Data]
    ProcessData --> UpdateCache[Update Cache]
    UpdateCache --> ReturnData[Return Data]

## 정기적인 문서 추출 및 게시 메커니즘

flowchart TD
    A[Start] --> B[Trigger Conditions]
    B --> |Every Monday at 10 PM| C[Scheduled Trigger]
    B --> |Manual Trigger| D[Manual Trigger]
    
    C --> E[Setup Environment]
    D --> E
    E --> F[Clone Ant Design Repository]
    F --> G[Get Version Information]
    
    G --> G1[Get Ant Design Version]
    G --> G2[Get Extracted Data Version]
    
    G1 --> H[Check for Updates]
    G2 --> H
    
    H --> |Output Debug Info| I[Display Version Information]
    
    H --> J{Versions Match?}
    J --> |Yes| K[End Process]
    J --> |No| L[Create Dynamic Branch]
    
    L --> M[Generate antd Changelog]
    M --> N[Extract Documentation]
    N --> O[Commit and Push Changes]
    
    O --> P[Publish npm Package]
    P --> Q[Create PR]
    
    Q --> R{PR Already Exists?}
    R --> |Yes| S[Log Existing PR]
    R --> |No| T[Create New PR]
    
    S --> K
    T --> K
Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • MCP server for accessing curated awesome list documentation

  • Search, document and execute authenticated API calls across 500+ apps via one MCP server

  • Serper MCP — wraps the Serper Google Search API (serper.dev)

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhixiaoqiang/antd-components-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server