logoAnt Design

⌘ K
  • Design
  • Development
  • Components
  • Blog
  • Resources
YouMindTRACTIANLobeHubCodeRabbit
6.4.5
  • Ant Design of React
  • Component Token
  • Disable Motion
  • Dynamic Theme
  • First Example
  • Local Theme
  • Modify Theme Token
  • Preset Algorithm
  • Use Token
  • Changelog
    v6.4.5
  • Basic Usage
    • Getting Started
    • Usage with Vite
    • Usage with Next.js
      UPDATED
    • Usage with Umi
    • Usage with Rsbuild
    • Usage with Farm
    • Usage with Refine
  • Others
    • Sponsor
  • AI
    • For Agents
      NEW
    • LLMs.txt
      NEW
    • MCP Server
      NEW
    • CLI
      NEW
  • Advanced
    • Customize Theme
    • CSS Compatible
    • Server Side Rendering
    • Use custom date library
    • Internationalization
    • Common Props
  • Migration
    • From v5 to v6
  • Other
    • Third-Party Libraries
    • Contributing
    • FAQ
What is MCP?
Official MCP Server
Tools
Prompts
Configuration
Usage with AI Tools
Community MCP Server
Alternative: Using LLMs.txt
Learn More

MCP Server

Docs
Edit this pageLLMs.md
LLMs.txtCLI

Resources

Ant Design X
Ant Design Charts
Ant Design Pro
Pro Components
Ant Design Mobile
Ant Design Mini
Ant Design Web3
Ant Design Landing-Landing Templates
Scaffolds-Scaffold Market
Umi-React Application Framework
dumi-Component doc generator
qiankun-Micro-Frontends Framework
Ant Motion-Motion Solution
China Mirror 🇨🇳

Community

Awesome Ant Design
Medium
X
yuque logoAnt Design in YuQue
Ant Design in Zhihu
Experience Cloud Blog
seeconf logoSEE Conf-Experience Tech Conference

Help

GitHub
Change Log
FAQ
For Agents
Bug Report
Issues
Discussions
StackOverflow
SegmentFault

Ant XTech logoMore Products

yuque logoYuQue-Document Collaboration Platform
AntV logoAntV-Data Visualization
Egg logoEgg-Enterprise Node.js Framework
Kitchen logoKitchen-Sketch Toolkit
Galacean logoGalacean-Interactive Graphics Solution
WeaveFox logoWeaveFox-AI Development with WeaveFox 🦊
xtech logoAnt Financial Experience Tech
Theme Editor
Made with ❤ by
Ant Group and Ant Design Community
loading

This guide explains how to use Ant Design with AI tools through Model Context Protocol (MCP).

What is MCP?

Model Context Protocol (MCP) is an open protocol that enables AI models to interact with external tools and data sources. Through MCP, AI assistants can access real-time documentation, code examples, and API references.

Official MCP Server

Starting from @ant-design/cli v6.3.5, you can launch an official MCP server with the antd mcp command, providing 8 tools and 2 prompts for IDE integration.

Tools

ToolDescription
antd_listEnumerate available components
antd_infoRetrieve component property specifications
antd_docFetch complete documentation
antd_demoAccess runnable code examples
antd_tokenQuery design token values
antd_design_mdFetch the design-language document
antd_semanticInspect DOM structure and styling hooks
antd_changelogAnalyze API changes across versions

Prompts

PromptDescription
antd-expertPositions the agent as an Ant Design specialist
antd-page-generatorAssists with component-based page creation

Configuration

Add the MCP server to your IDE configuration:

json
{
"mcpServers": {
"antd": {
"command": "npx",
"args": ["-y", "@ant-design/cli", "mcp"]
}
}
}

Or if you have the CLI installed globally (npm i -g @ant-design/cli):

json
{
"mcpServers": {
"antd": {
"command": "antd",
"args": ["mcp"]
}
}
}

You can pin a specific antd version with additional args:

json
{
"mcpServers": {
"antd": {
"command": "npx",
"args": ["-y", "@ant-design/cli", "mcp", "--version", "5.20.0"]
}
}
}

You can also let the CLI write supported project configuration for you:

bash
antd setup --client claude
antd setup --client cursor --mode both
antd setup --client vscode --write-instructions
antd setup --client codex
antd setup --client claude --dry-run
antd setup --client claude --check

Supported clients are claude, cursor, vscode, and codex. Setup modes are mcp, skill, and both.

Usage with AI Tools

ToolDescriptionConfiguration
CursorAdd to .cursor/mcp.json or Settings → Features → MCP. Documentation{ "mcpServers": { "antd": { "command": "npx", "args": ["-y", "@ant-design/cli", "mcp"] } } }
WindsurfAdd to ~/.codeium/windsurf/mcp_config.json. Documentation{ "mcpServers": { "antd": { "command": "npx", "args": ["-y", "@ant-design/cli", "mcp"] } } }
Claude CodeAdd to mcpServers in Claude settings. Documentation{ "mcpServers": { "antd": { "command": "npx", "args": ["-y", "@ant-design/cli", "mcp"] } } }
VS CodeAdd to .vscode/mcp.json or Settings → MCP. Documentation{ "servers": { "antd": { "command": "npx", "args": ["-y", "@ant-design/cli", "mcp"] } } }
CodexAdd to .codex/mcp.json. Documentation{ "mcpServers": { "antd": { "command": "npx", "args": ["-y", "@ant-design/cli", "mcp"] } } }
Gemini CLIAdd to MCP configuration. Documentation{ "mcpServers": { "antd": { "command": "npx", "args": ["-y", "@ant-design/cli", "mcp"] } } }
TraeAdd to MCP settings. Documentation{ "mcpServers": { "antd": { "command": "npx", "args": ["-y", "@ant-design/cli", "mcp"] } } }
QoderAdd to MCP configuration. Documentation{ "mcpServers": { "antd": { "command": "npx", "args": ["-y", "@ant-design/cli", "mcp"] } } }
Neovate CodeConfigure MCP in settings or describe task with prompt. Documentation{ "mcpServers": { "antd": { "command": "npx", "args": ["-y", "@ant-design/cli", "mcp"] } } }

Community MCP Server

You can also use the community-maintained MCP server: @jzone-mcp/antd-components-mcp

This MCP server provides the following capabilities:

  • list-components - List all available Ant Design components
  • get-component-docs - Get detailed documentation for a specific component
  • list-component-examples - Get code examples for a component
  • get-component-changelog - Get the changelog for a component

Configuration:

json
{
"mcpServers": {
"antd-components": {
"command": "npx",
"args": ["-y", "@jzone-mcp/antd-components-mcp"]
}
}
}

Alternative: Using LLMs.txt

If your AI tool doesn't support MCP, you can use our LLMs.txt support instead. We provide:

  • llms.txt - Structured overview of all components
  • llms-full.txt - Complete documentation with examples

Learn More

  • Model Context Protocol Documentation
  • Ant Design CLI
  • @ant-design/cli on GitHub
  • Ant Design LLMs.txt Guide
  • @jzone-mcp/antd-components-mcp on npm