# 21st UI

> 21st UI is an open-source agent skill for developer tools. Finds, installs and generates React UI components from the 21st.dev catalog. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/21st-dev/magic-mcp/tree/main/skills/21st-ui
- **Repository:** https://github.com/21st-dev/magic-mcp
- **GitHub stars:** 6,759
- **License:** ISC
- **Skill name:** 21st-ui
- **Collection:** https://github.com/21st-dev/magic-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/21st-dev/magic-mcp/tree/HEAD/skills/21st-ui)
- [License: ISC](https://github.com/21st-dev/magic-mcp/tree/HEAD/skills/21st-ui)

## Features

- **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

## Install

### Claude Code

This skill ships in the `21st` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add 21st-dev/magic-mcp
/plugin install 21st@21st-dev
```

Or copy only this skill to `~/.claude/skills/21st-ui`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/21st-ui` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/21st-ui` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/21st-dev/magic-mcp.git --path skills/21st-ui
```

Or copy the folder to `~/.gemini/skills/21st-ui` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/21st-ui`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/21st-dev/magic-mcp.git
```

Then 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.

## 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.

## Alternatives

- [Discover design system](https://ai-powered.com/skills/discover-design-system): Discover design system is an open-source agent skill for design and media.
- [Tastemaker](https://ai-powered.com/skills/tastemaker-codeswithroh): Tastemaker is an open-source agent skill for design and media.
- [Web artifacts builder](https://ai-powered.com/skills/web-artifacts-builder): Web artifacts builder is a free agent skill for developer tools.
- [Design system](https://ai-powered.com/skills/design-system-smartworldarafath): Design system is an open-source agent skill for design and media.
- [Frontend design](https://ai-powered.com/skills/frontend-design-melandlabs): Frontend design is an open-source agent skill for design and media.
- [Design taste frontend](https://ai-powered.com/skills/design-taste-frontend): Design taste frontend is an open-source agent skill for developer tools.
- [Frontend design](https://ai-powered.com/skills/frontend-design-lichamnesia): Frontend design is an open-source agent skill for design and media.
- [Vue UI](https://ai-powered.com/skills/vue-ui): Vue UI is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/21st-ui
