Skip to main content
Glama

Ant Design Components MCP Server

by hannesj

Ant 設計 コンポーネント モデル コンテキスト プロトコル サーバー

Claudeのような大規模言語モデル(LLM)にAnt設計コンポーネントのドキュメントを公開するモデルコンテキストプロトコル(MCP)サーバー。このサーバーにより、LLMは専用のツールセットを通じてAnt設計コンポーネントを探索し、理解することができます。

特徴

  • 使い方は簡単 - Ant Design リポジトリ全体をクローンする必要はありません
  • 起動を高速化するための事前抽出されたコンポーネントドキュメント
  • 利用可能なすべての Ant Design コンポーネントを一覧表示する
  • 説明や使用方法を含む詳細なコンポーネントドキュメントを入手します
  • コンポーネントのプロパティとAPI定義を表示する
  • 特定のコンポーネントのコード例を参照する
  • 名前または機能でコンポーネントを検索する

初期設定

MCP サーバーを初めて使用する前に、Ant Design リポジトリからドキュメントを抽出する必要があります。

# First, clone the Ant Design repository (can be temporary) git clone https://github.com/ant-design/ant-design.git # Extract documentation cd mcp-antd-components npm run extract # Uses the default ./ant-design path # OR node scripts/extract-docs.mjs /path/to/ant-design # For a custom path # After extraction is complete, the Ant Design repo can be deleted if desired

これにより、MCP サーバーが使用する、抽出されたすべてのコンポーネント ドキュメントを含むdataディレクトリが作成されます。

サーバーのテスト

すべてが正しく動作していることを確認するには、テスト スクリプトを実行します。

npm test # OR node scripts/test-server.mjs

これにより、MCP サーバーが実行され、サンプル クエリを使用して利用可能なすべてのツールがテストされます。

使用法

コマンドライン

MCP サーバーを実行します。

# Run server with pre-extracted data npm start # OR npx -y mcp-antd-components

クロードデスクトップ統合

この MCP サーバーを Claude Desktop で使用するには、 claude_desktop_config.json構成ファイルを編集します。

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

設定ファイルの場所:

  • macOS/Linux: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: $env:AppData\Claude\claude_desktop_config.json

クロード・コード統合

この MCP サーバーを Claude Code CLI で使用するには、次の手順に従います。

  1. Claude CodeにAnt Design Components MCPサーバーを追加する
    # Basic syntax claude mcp add antd-components npx -y mcp-antd-components
  2. MCPサーバーが登録されていることを確認する
    # List all configured servers claude mcp list # Get details for your Ant Design components server claude mcp get antd-components
  3. 必要に応じてサーバーを削除する
    claude mcp remove antd-components
  4. Claude Codeのツールを使用する設定が完了すると、Claude Code セッションで Ant Design コンポーネントについて質問してツールを呼び出すことができます。

ヒント:

  • -sまたは--scopeフラグをproject (デフォルト)またはglobalとともに使用して、構成が保存される場所を指定します。

MCPツール

サーバーは、LLM が Ant Design コンポーネントのドキュメントと対話するための次のツールを提供します。

  • list-components : 利用可能なすべての Ant Design コンポーネントを PascalCase 形式で一覧表示します (例: Button、DatePicker)
  • get-component-props : 特定のコンポーネントのプロパティと API ドキュメントを取得します (「Button」のようなパスカルケース名を使用します)
  • get-component-docs : 特定のコンポーネントの詳細なドキュメントを取得します (「DatePicker」のようなパスカルケース名を使用します)
  • list-component-examples : 特定のコンポーネントで利用可能なすべての例を一覧表示します(「Table」のようなパスカルケース名を使用します)
  • get-component-example : 特定のコンポーネント例のコードを取得します(コンポーネント名は PascalCase で表記されます)
  • search-components : 名前パターンでコンポーネントを検索します(PascalCase パターンで動作します)

試してみるクエリの例:

What components are available in Ant Design? Show me the documentation for the Button component. What props does the Table component accept? Show me code examples for the Modal component. Get the example "basic" for the Form component. Find components related to Input or Form elements.

注: 内部ディレクトリ構造ではケバブケース (例: button、date-picker、table) が使用されていますが、コンポーネント名は、React コンポーネントの命名規則に合わせて PascalCase (例: Button、DatePicker、Table) で提供されます。

仕組み

scripts/extract-docs.mjsスクリプトは、Ant Design リポジトリからドキュメントを抽出し、 dataディレクトリに保存します。これには以下のものが含まれます。

  • コンポーネントドキュメント(マークダウン)
  • API/プロパティドキュメント
  • サンプルコード
  • 共通プロパティのドキュメント

このアプローチにはいくつかの利点があります。

  1. ユーザーはAnt Designリポジトリ全体をクローンする必要はない
  2. MCPサーバーの起動時間が短縮
  3. より小さいパッケージサイズ
  4. 新しいバージョンがリリースされたときに簡単に更新できます

Ant Design の新しいバージョンのドキュメントを更新するには、更新されたリポジトリで抽出スクリプトを再度実行するだけです。

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Ant Design コンポーネントのドキュメントを Large Language Models に公開し、LLM がコンポーネントの一覧表示、ドキュメントの表示、プロパティの検査、コード例の参照を行う専用ツールを使用して Ant Design コンポーネントを探索および理解できるようにします。

  1. 特徴
    1. 初期設定
      1. サーバーのテスト
    2. 使用法
      1. コマンドライン
      2. クロードデスクトップ統合
      3. クロード・コード統合
    3. MCPツール
        1. 仕組み

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
            Last updated -
            11
            76
            60
            TypeScript
            MIT License
          • A
            security
            A
            license
            A
            quality
            Facilitates searching and accessing programming resources across platforms like Stack Overflow, MDN, GitHub, npm, and PyPI, aiding LLMs in finding code examples and documentation.
            Last updated -
            6
            25
            JavaScript
            AGPL 3.0
            • Apple
          • A
            security
            A
            license
            A
            quality
            Fetches and extracts comprehensive package documentation from multiple programming language ecosystems (JavaScript, Python, Java, etc.) for LLMs like Claude without requiring API keys.
            Last updated -
            4
            5
            10
            JavaScript
            MIT License
            • Apple
            • Linux
          • -
            security
            A
            license
            -
            quality
            Enables LLMs to autonomously retrieve and explore web content by fetching pages and recursively following links to a specified depth, particularly useful for learning about topics from documentation.
            Last updated -
            TypeScript
            MIT License

          View all related MCP servers

          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/hannesj/mcp-antd-components'

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