// may the 4th be with you⚔️
developer-toolsdesign

Ant Design MCP Server

by wxzhishang

Ant Design MCP Server: AI assistants for Ant Design docs, examples, APIs. Multi-version support and natural-language que

Provides AI assistants with comprehensive Ant Design component documentation, examples, API references, and best practices. Supports multiple versions and enables natural language queries for React UI component development.

github stars

3

0 commentsdiscussion

Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.

Multi-version Ant Design supportComplete component documentation with examplesBest practices guidance included

best for

  • / React developers using Ant Design components
  • / Building UIs with design system guidance
  • / Learning component APIs and implementation patterns

capabilities

  • / Query Ant Design component documentation
  • / Get component code examples and API references
  • / Browse best practices for specific components
  • / Switch between different Ant Design versions
  • / List available components by use case
  • / Check component changelog and update history

what it does

Provides comprehensive Ant Design component documentation, examples, and API references through MCP. Enables natural language queries for React UI development with multi-version support.

about

Ant Design MCP Server is a community-built MCP server published by wxzhishang that provides AI assistants with tools and capabilities via the Model Context Protocol. Ant Design MCP Server: AI assistants for Ant Design docs, examples, APIs. Multi-version support and natural-language que It is categorized under developer tools, design. This server exposes 7 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install Ant Design MCP Server in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Ant Design MCP Server is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

Ant Design MCP Server

一个基于 Model Context Protocol (MCP) 的 Ant Design 组件服务器,为 AI 助手提供丰富的 Ant Design 组件文档、示例和最佳实践。

🚀 功能特性

  • 组件文档查询:获取 Ant Design 所有组件的详细文档
  • 示例代码获取:提供每个组件的完整示例代码
  • API 文档查询:查询组件的 API 属性和方法
  • 最佳实践指导:获取组件使用的最佳实践建议
  • 更新日志查询:查看组件的版本更新历史
  • 多版本支持:支持切换不同版本的 Ant Design

📦 安装

从源码构建

# 克隆仓库
git clone <repository-url>
cd antd-MCP

# 安装依赖
npm install

# 构建项目
npm run build

🛠️ 使用方法

启动 MCP 服务器

构建完项目后可以选择在本地的客户端配置MCP。

具体配置方法可以参考客户端说明。

以cursor为例,可以在Cursor Settings中的Tools中配置:

// 从本地导入(推荐,后面也许就不推荐了)
{
  "mcpServers": {
    "antd-components-local": {
      "command": "node",
      "args": [
        "<repository-url>/antd-MCP/dist/cli.js"
      ]
    }
  }
}

// 从npm导入
{
  "mcpServers": {
    "antd-components-local": {
      "command": "npx",
      "args": [
        "antd-mcp"
      ]
    }
  }
}

提取 Ant Design 数据

如果需要从本地的 Ant Design 仓库提取最新数据:

# 先克隆antd仓库到本地
git clone https://github.com/ant-design/ant-design

# 执行脚本
npm run extract

# 可能会出现更新日志无法正常获取的现象(如果docs文件夹下没有components-changelog.json文件),可以执行以下脚本后重新执行extract脚本
npm run generate-component-changelog

爬取最佳实践

此功能还待完善,写得脚本太烂了,目前爬取的数据较混乱,如果有大佬有好的思路欢迎PR

# 爬取全部组件的最佳实践(需要提前提取Ant Design数据)
npm run crawl-practices

# 爬取指定组件的最佳实践
npm run crawl-practices Button ...

在 MCP 客户端中使用

将此服务器添加到您的 MCP 客户端配置中,然后可以使用以下功能:

  • 📋 list-components - 列出所有可用的 Ant Design 组件
  • 📖 get-component-docs - 获取指定组件的文档
  • 💡 get-component-examples - 获取组件示例代码
  • 🔍 get-component-api - 查询组件的 API 文档
  • get-best-practices - 获取组件使用的最佳实践
  • 📝 get-component-changelog - 查看组件更新历史
  • 🔄 change-component-version - 切换 Ant Design 版本

📁 项目结构

antd-MCP/
├── src/                    # 源代码
│   ├── tools/             # MCP 工具实现
│   ├── scripts/           # 脚本工具
│   ├── utils/             # 工具函数
│   └── index.ts           # 主入口文件
├── docs/                  # Ant Design 组件文档
│   └── components/        # 各组件文档和示例
├── cli.ts                 # 命令行入口
└── package.json           # 项目配置

🔧 开发

开发环境启动

可以利用MCP提供的线上调试器调试

构建项目

npm run build

调试和检查

npm run inspector

生成组件更新日志

npm run generate-component-changelog

📋 系统要求

  • Node.js >= 16.0.0
  • npm 或 yarn

🤝 贡献

欢迎提交 Issue 和 Pull Request!

开发流程

  1. Fork 本仓库
  2. 创建特性分支 (git checkout -b feat/amazing-feature)
  3. 提交更改 (git commit -m 'Add some amazing feature')
  4. 推送到分支 (git push origin feat/amazing-feature)
  5. 开启 Pull Request

分支命名规范

  • feat/ - 新功能
  • fix/ - 问题修复
  • docs/ - 文档更新
  • refactor/ - 代码重构
  • test/ - 测试相关

FAQ

What is the Ant Design MCP Server MCP server?
Ant Design MCP Server is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for Ant Design MCP Server?
This profile displays 54 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.6 out of 5—verify behavior in your own environment before production use.

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
MCP server reviews

Ratings

4.654 reviews
  • Amelia Gonzalez· Dec 20, 2024

    We wired Ant Design MCP Server into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Aditi Smith· Dec 12, 2024

    Ant Design MCP Server has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Ishan Rao· Dec 12, 2024

    Strong directory entry: Ant Design MCP Server surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Shikha Mishra· Dec 8, 2024

    According to our notes, Ant Design MCP Server benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Amelia Ramirez· Dec 4, 2024

    Ant Design MCP Server reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Rahul Santra· Nov 27, 2024

    We wired Ant Design MCP Server into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Luis Anderson· Nov 11, 2024

    Useful MCP listing: Ant Design MCP Server is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Amelia Rahman· Nov 11, 2024

    According to our notes, Ant Design MCP Server benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Luis Choi· Nov 3, 2024

    Ant Design MCP Server is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Kabir Liu· Nov 3, 2024

    Ant Design MCP Server is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

showing 1-10 of 54

1 / 6