
21st UI
Finds, installs and generates React UI components from the 21st.dev catalog
From 21st-dev/magic-mcp
21st UI is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 6.8K
- Last commit
- License
- ISC
- Listing updated
Similar skills
About 21st UI
This skill lets an agent search the 21st.dev marketplace of React and Tailwind components, which are shadcn-compatible, and install a chosen one into a project. It steers the agent toward reusing existing catalog pieces before writing UI from scratch, then adapting the result to the project's own tokens, props and conventions.
The workflow runs through the 21st MCP server: a short search, a comparison of the best candidates when the choice is unclear, a fetch of the full component code, and then installation either through a shadcn-style registry add or by writing the returned files. A separate path covers brand logos as ready-to-paste JSX or TSX, one brand per request, and custom UI generation when AI generation is enabled on the account.
You need a 21st.dev API key, which is free to create, set in the plugin configuration. Free accounts can search the catalog and install two components per day, while paid components return code only after unlocking.
When your agent uses it
Find, install, and generate UI with 21st.dev. Use when the user asks for a UI component (pricing table, hero, navbar, dashboard, form, etc.), wants design inspiration, needs a brand logo as an SVG component, or wants to generate new UI from a prompt.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (3 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the 21st plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add 21st-dev/magic-mcp
/plugin install 21st@21st-devOr copy only this skill to ~/.claude/skills/21st-ui:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/21st-dev/magic-mcp.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/21st-ui &&
cp -R "$tmp/skills/21st-ui" ~/.claude/skills/21st-ui &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/21st-ui inside it instead.
Copy the skill folder to ~/.agents/skills/21st-ui to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/21st-dev/magic-mcp.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/21st-ui &&
cp -R "$tmp/skills/21st-ui" ~/.agents/skills/21st-ui &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/21st-ui inside it instead.
Copy the skill folder to ~/.cursor/skills/21st-ui to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/21st-dev/magic-mcp.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/21st-ui &&
cp -R "$tmp/skills/21st-ui" ~/.cursor/skills/21st-ui &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/21st-ui inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/21st-dev/magic-mcp.git --path skills/21st-uiOr copy the folder to ~/.gemini/skills/21st-ui yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/21st-ui:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/21st-dev/magic-mcp.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/21st-ui &&
cp -R "$tmp/skills/21st-ui" ~/.copilot/skills/21st-ui &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/21st-ui inside it instead.
Get the folder:
git clone --depth 1 https://github.com/21st-dev/magic-mcp.gitThen copy magic-mcp/skills/21st-ui into your agent's skills folder as 21st-ui. Agents that support SKILL.md read one folder per skill.
What it does
- Catalog component search
- Finds ready-made UI blocks such as pricing tables, heroes and navbars by short natural queries.
- Component installation
- Fetches component code and metadata, then installs it the way the registry instructs.
- Brand logo lookup
- Returns company logos as JSX or TSX components, one brand per call.
- AI UI generation
- Creates new interface sketches from a prompt when hosted AI is enabled on the account.
- Design inspiration
- Surfaces options from the catalog to compare before committing to a layout.
- Existing project conventions
- Guides integration so installed code matches the project's Tailwind setup and component layout.
Good for
- Add a pricing section to my landing page
- Find a responsive navbar that fits my Tailwind project
- Show me a few hero designs before I pick one
- Get the SVG-style logo component for a given brand
- Generate a dashboard layout from a text description
21st UI FAQ
Do I need an API key to use 21st UI?
Yes. The skill connects to the 21st MCP server, which requires an x-api-key header. Keys are free at 21st.dev/mcp and are set through the API_KEY_21ST plugin variable.
How many components can I install for free?
The free tier allows catalog search and two component installs per day. Paid components return code only after unlocking.
Does 21st UI generate UI on its own?
Only when AI generation is enabled on the account. Otherwise the agent searches the catalog and builds the UI itself, and generation tools are not used as a workaround.
Which clients does 21st UI work with?
It follows the shared agent skills format and is distributed through the Claude Code plugin marketplace.
How do I install 21st UI in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/21st-ui to use it in all your projects, or to .claude/skills/21st-ui in one project. Or install the 21st plugin, which includes it: /plugin marketplace add 21st-dev/magic-mcp, then /plugin install 21st@21st-dev.
Does 21st UI run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use 21st UI?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to 21st UI?
The closest alternatives to 21st UI are Discover design system, Tastemaker, Web artifacts builder, Design system and Frontend design.
Where this comes from
- Description: from the skill's own SKILL.md.





