antd-components-mcp
This project is an MCP server that provides comprehensive Ant Design component documentation for large language models. It features extensive caching, pre-processed data, and a variety of prompts and tools to facilitate easy integration and use with LLMs like Claude.
Ant Design Components MCP Service
A Model Context Protocol (MCP) server that provides Ant Design component documentation for large language models (LLMs) such as Claude. This server enables LLMs to explore and understand Ant Design components through dedicated tools.
Features
- Pre-processed data, ready to use
- Extract documentation for latest or other versions
- List all available Ant Design components
- View specific component documentation, properties, and API definitions
- View code examples and changelogs for components
- Extensive caching to reduce IO pressure
- Prompt configurations optimized for context
Roadmap
- Implement automatic data extraction for updates
- Context awareness for tool calls
- Add detailed MCP tools documentation
- Consider hosting data on CDN
- Support adjusting registration via parameters
- Compatibility considerations with older Ant Design versions
How It Works
Documentation is extracted from the Ant Design repository and saved for the MCP server, improving startup speed and reducing package size. To update documentation, run a designated extraction script.
Architecture
MCP Server utilizes prompt and tool modules, supported by utility functions and stored component data.
Data Flow
Illustrates the interaction and data processing between Client, MCP Server, Tool Modules, Utility Functions, and Component Data.
Caching Mechanism
Explains the process of checking, updating, and returning cached data.