logoAnt Design

⌘ K
  • Design
  • Development
  • Components
  • Blog
  • Resources
6.3.4
  • Ant Design of React
  • Component Token
  • Disable Motion
  • Dynamic Theme
  • First Example
  • Local Theme
  • Modify Theme Token
  • Preset Algorithm
  • Use Token
  • Changelog
    v6.3.4
  • 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
    • 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

contributors
    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
    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 7 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_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

    Install the CLI globally and add the MCP server to your IDE configuration:

    bash
    npm install -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": "antd",
    "args": ["mcp", "--version", "5.20.0"]
    }
    }
    }

    Usage with AI Tools

    ToolDescriptionConfiguration
    CursorAdd to .cursor/mcp.json or Settings → Features → MCP. Documentation{ "mcpServers": { "antd": { "command": "antd", "args": ["mcp"] } } }
    WindsurfAdd to ~/.codeium/windsurf/mcp_config.json. Documentation{ "mcpServers": { "antd": { "command": "antd", "args": ["mcp"] } } }
    Claude CodeAdd to mcpServers in Claude settings. Documentation{ "mcpServers": { "antd": { "command": "antd", "args": ["mcp"] } } }
    CodexAdd to .codex/mcp.json. Documentation{ "mcpServers": { "antd": { "command": "antd", "args": ["mcp"] } } }
    Gemini CLIAdd to MCP configuration. Documentation{ "mcpServers": { "antd": { "command": "antd", "args": ["mcp"] } } }
    TraeAdd to MCP settings. Documentation{ "mcpServers": { "antd": { "command": "antd", "args": ["mcp"] } } }
    QoderAdd to MCP configuration. Documentation{ "mcpServers": { "antd": { "command": "antd", "args": ["mcp"] } } }
    Neovate CodeConfigure MCP in settings or describe task with prompt. Documentation{ "mcpServers": { "antd": { "command": "antd", "args": ["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