Configure MCP
init sets up the 21st MCP server so your editor and AI agent can search, generate, and pull code directly. Supported clients:
Without
--write, the config is printed so you can paste it yourself. With --write it merges into your existing config file.
Install the skills
--global for installation under your home directory:
21st-cli-use— how to drive the CLI21st-ai— generating and iterating UI21st-registry— publishing and installing21st-design-sync— keeping a design system in sync21st-ui-build— building against the project’s real design system21st-ui-explore— comparing meaningful design directions21st-ui-review— deterministic review and safe fixes
--force. The old 21st install-skill command remains an alias for global
installation.
The CLI and MCP share one endpoint and one login, so once you’ve run
21st login, both surfaces are authenticated with the same account.