Token导航 LogoToken导航TokenDH.com
Ant Design MCP Server logo
开发工具stdio官方级别未说明来源级核验

Ant Design MCP Server

MCP Server

ant-design-mcp

Ant Design MCP Server是一个提供Ant Design组件库文档和信息访问的服务,支持自动化代码生成和组件信息查询。

工具数

6

提示词数

0

GitHub Stars

0

资源数

0
开发工具JavaScriptClaude文档查询Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

leonwgc

提供方

leonwgc

最后核验

2026/5/17 20:22

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx ant-design-mcp

详细介绍

Ant Design MCP Server

Simplified Chinese| English

](https://www.npmjs.com/package/ant-design-mcp) ![License: ISC](https://opensource.org/licenses/ISC)

A Model Context Protocol (MCP) server that provides document and information access to the Ant Design component library for automated code generation.

feature

  • 📋 Get all available Ant Design component names
  • 📖 Get detailed component information (props, examples, API documentation)
  • 🔍 Search components by keywords or categories
  • 💡 Obtain usage examples for specific components
  • 🏷️ Browse components by category

install

Global installation (recommended)

npm install -g ant-design-mcp

Local installation

npm install ant-design-mcp

Using NPX (no installation required)

npx ant-design-mcp

Instructions for use

Using Claude Desktop

Add to your Claude Desktop configuration file:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "ant-design": {
      "command": "npx",
      "args": ["-y", "ant-design-mcp"]
    }
  }
}

If globally installed:

{
  "mcpServers": {
    "ant-design": {
      "command": "ant-design-mcp"
    }
  }
}

Independently running servers

npm start

Development mode (automatic reload)

npm run dev

Available tools

1. get_all_component_names

Get a list of all available Ant Design component names.

return value: A comma separated string of all component names

example:

Button, Form, Table, Modal, Input, Select, ...

2. get_component_info

Get detailed information about a specific component.

parameter:

  • componentName (string, required): Component name (e.g. "Button", "Form")

return valueMarkdown document containing the following content:

  • Component category
  • description
  • import statement
  • Props document
  • Usage example
  • API document URL

3. search_components

Search for components through keywords or functions.

parameter:

  • keyword (string, required): Search term (component name, category, or function)

return valueList and description of matched components

4. get_component_example

Obtain complete usage examples of specific components.

parameter:

  • componentName (string, required): Component name

return value: TypeScript/React code example

5. get_components_by_category

Retrieve all components within a specific category.

parameter:

  • category (string, required): Category name

- General (General) - Layout - Navigation - Data Entry - Data Display - Feedback - Other (Other)

return valueList of component names in the specified category

6. get_all_icon_names

Get a list of all available @ ant design/icons icon names.

return value: A comma separated string of all icon names (containing 750+icons)

example:

StepBackwardOutlined, StepForwardOutlined, CheckCircleOutlined, CloseCircleOutlined, ...

icon type:

  • Outline (wireframe style)
  • Filled (Solid Style)
  • TwoTone (Two tone style)

Component classification

General

Button, Icon, Typography

Layout

Divider, Grid, Layout, Space, Splitter

Navigation

Affix, Breadcrumb, Dropdown, Menu, Pagination, Steps

Data Entry

AutoComplete, Cascader, Checkbox, ColorPicker, DatePicker, Form, Input, InputNumber, Mentions, Radio, Rate, Select, Slider, Switch, TimePicker, Transfer, TreeSelect, Upload

Data Display

Avatar, Badge, Calendar, Card, Carousel, Collapse, Descriptions, Empty, Image, List, Popover, QRCode, Segmented, Statistic, Table, Tabs, Tag, Timeline, Tooltip, Tour, Tree

Feedback

Alert, Drawer, Message, Modal, Notification, Popconfirm, Progress, Result, Skeleton, Spin, Watermark

Other (Other)

Anchor, app, configuration, floatbutton, flex

Integrate with Claude Desktop

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "ant-design": {
      "command": "node",
      "args": ["/path/to/ant-admin-template/ant-design-mcp/index.js"]
    }
  }
}

Usage scenarios

  1. Automated code generationAutomatically generate React code from design specifications using component information
  2. Component discoveryQuickly find suitable components that meet your needs
  3. Document referenceAccess component props and examples without leaving the development environment
  4. Design system integrationIntegrating Ant Design components into AI driven development workflows

Example query

  • Get all Ant Design component names
  • Display information about the Form component
  • Search and data entry related components
  • Example of using the Table component
  • Display all components in the feedback category

contribution

To add more detailed component information:

  1. Fork Warehouse
  2. edit index.js
  3. in COMPONENT_INFO Add component details to the object
  4. Includes props, examples, and descriptions
  5. Submit a pull request

development

# 克隆仓库
git clone https://github.com/leonwgc/ant-design-mcp.git
cd ant-design-mcp

# 安装依赖
npm install

# 以开发模式运行(自动重载)
npm run dev

release

Please refer to the detailed release instructions PUBLISH.md

license

ISC

author

leon.wang

link

Related documents

目录标签

目录标签

开发工具JavaScriptClaude文档查询组件库服务本地部署自动化代码生成React组件

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

部署方式(deploymentType,部署类型)

remote-capable

来源包(packageName,安装包名)

ant-design-mcp

工具数量(toolCount,工具数)

6

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiononeremote-capable

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP