change-component-version
Switches the Ant Design version that the other tools answer against.
Gives the assistant the Ant Design reference it is guessing at: the component list, each one's docs, examples and typed API, and the changelog that says which version a prop arrived in.
LABSCO SUMMARY
The changelog and version switch are what set this apart from a model recalling Ant Design from training: asking whether a component supports something becomes a question with a version attached, which is the form the question actually takes in a real project. Fetch the examples and the typed API before generating a screen — the union types are exactly the detail that makes generated antd code compile or fail.
A local Ant Design reference. Component documentation, example code, API tables and changelogs are bundled and served as tools, and the active antd version can be switched so the answers match the version the project is on.
Node.js 16 or newer. It runs as npx antd-mcp, or from a local build with node dist/cli.js after npm install and npm run build. Nothing to authorize and no network calls for lookups — the component docs, examples and API data are extracted into the repository, with scripts to re-extract them from a local clone of the Ant Design repository and to regenerate the component changelog file when it is missing.
One command — npx antd-mcp
USE CASES
List what is available, then pull documentation and example code for the ones that fit before writing any markup.
Read the component's API with its TypeScript types and union values, rather than guessing which literals a prop accepts.
Check the component's changelog against the version your project is on, so a missing feature is identified as a version gap rather than a coding problem.
Switch the active antd version first, so documentation, examples and API answers describe what is installed.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
change-component-versionSwitches the Ant Design version that the other tools answer against.
get-best-practicesReturns the recommended usage practices for a named Ant Design component.
get-component-apiReturns a named component's API, including the TypeScript types and union values behind a specified api name.
get-component-changelogReturns the changelog for one or more named Ant Design components, for checking whether a feature only arrives in a later version.
get-component-docsReturns detailed documentation for one or more named Ant Design components.
get-component-examplesReturns code examples for one or more named Ant Design components.
list-componentsReturns the list of available Ant Design components, for deciding which ones a described interface needs.
BEFORE YOU INSTALL
7 tools when we connected.
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 7 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx antd-mcp{
"mcpServers": {
"antd-components-local": {
"command": "npx",
"args": [
"antd-mcp"
]
}
}
}