21st.dev — UI Component Registry for AI Agents
21st.dev is a UI component registry designed for AI coding agents. It provides MCP tools to search 12,000+ community components, generate new UI with variants, search logos, and publish/share components.
Source: 21st.dev | MCP: docs.21st.dev/mcp
When to Use
- Building UI with an AI agent and need production-ready components
- Searching for React/Next.js/Tailwind components by category
- Generating new UI components with variants
- Searching for logos by industry/style
- Publishing your own components to a team library
- Need design system tokens or theme generation
MCP Setup
21st.dev exposes an HTTP MCP server. Get an API key at 21st.dev/mcp.
{
"mcpServers": {
"21st": {
"url": "https://21st.dev/api/mcp",
"headers": { "x-api-key": "YOUR_21ST_API_KEY" }
}
}
}
Or install via CLI:
npx @21st-dev/cli@latest init --client claude # or: cursor | vscode | windsurf | codex
Core MCP Tools
| Tool |
Purpose |
Example |
search |
Search components/themes/templates |
"hero section SaaS" |
generate |
Generate new UI with variants |
"pricing table 3 tiers" |
get_inspiration |
Get inspiration from existing components |
"dashboard sidebar" |
search_logo |
Search logos by query |
"tech startup minimal" |
get_component |
Retrieve a specific component by ID |
— |
publish |
Publish a component to the registry |
— |
bookmark |
Bookmark components for later |
— |
Workflow
1. Search for Existing Components
User: "Find a hero section for a SaaS landing page"
→ search("hero section SaaS landing") → returns matching components
→ Select best fit → retrieve code → adapt to project
2. Generate New UI
User: "Create a pricing table with 3 tiers"
→ generate("pricing table 3 tiers monthly annual toggle")
→ Returns component code + variants
→ Select variant → integrate
3. Logo Search
User: "Find a minimal tech logo"
→ search_logo("minimal tech startup")
→ Returns logo options → select → download
4. Publish Component
User: "Publish this button component to 21st"
→ publish(component_code, metadata)
→ Component available in registry
Component Categories
- Hero — Landing page heroes, headers, CTAs
- Pricing — Pricing tables, toggle, comparison
- Navigation — Navbars, sidebars, breadcrumbs
- Forms — Login, signup, contact, multi-step
- Cards — Product, feature, testimonial, blog
- Tables — Data tables, dashboards, pricing
- Footers — Simple, multi-column, newsletter
- Testimonials — Quotes, ratings, carousels
- CTAs — Call-to-action sections
- Features — Feature grids, icon lists
- Stats — Metrics, counters, KPIs
- FAQ — Accordions, toggles
- Blog — Post cards, lists, grids
- Gallery — Image grids, lightboxes
- Modals — Dialogs, drawers, popovers
- Authentication — Login, register, forgot password
- Empty States — No data, 404, loading
- Onboarding — Tours, tooltips, walkthroughs
Supported Stacks
- React / Next.js
- Tailwind CSS
- shadcn/ui
- HTML/CSS
- Vue (limited)
- Astro (limited)
Integration with Other Skills
- ui-ux-pro-max — Use 21st.dev to find components that match the design system generated by ui-ux-pro-max
- shadcn/ui — Many 21st components are built on shadcn/ui primitives
- tailwind-advanced — Components use Tailwind classes; customize with tailwind-advanced patterns
- frontend-design — Use 21st components as starting points for custom designs
When NOT to Use
- Need a full page layout (use ui-ux-pro-max design system generation)
- Need complex animations (use motion.dev)
- Need brand identity (use brand skill)
- Need backend/API components (not a 21st.dev use case)
- Project doesn't use React/Tailwind (limited support for other stacks)
Red Flags
- Copy-pasting without adaptation: Always customize components to match your design system
- Ignoring accessibility: Verify components meet WCAG standards before shipping
- Over-reliance on registry: Custom designs often outperform generic components
- Not checking license: Verify component license before commercial use
Verification
Process
- Analyze UI requirements
- Search 21st.dev for matching components
- Select best-fit component(s)
- Generate variants if needed
- Customize to match design system
- Verify accessibility and responsiveness
- Integrate into project
Anti-Rationalization Table
| Rationalization |
Reality |
| "Registry components are production-ready" |
Always audit for accessibility, performance, and design consistency |
| "I'll customize later" |
Uncustomized generic components look generic — customize from the start |
| "All components are free" |
Check licenses; some require attribution or have usage limits |
| "One component is enough" |
Combine multiple components for complex UIs; don't force-fit |
1---2name: 21st-dev3description: Use when UI component registry for AI coding agents — search, generate, and publish React/Next.js/Tailwind components via MCP. 12,000+ community components, logo search, design system tokens, theme generation. Use when building UI with agent, need production components, want to publish/share components.4domain: integrations5author: oyi776license: MIT7subdomain: ui-registry8tags:9- ui10- components11- registry12- mcp13- react14- nextjs15- tailwind16- agent17- generate18- publish19version: 1.0.020category: integrations21metadata:22 source: https://skillmd.com/skills/oyi77/21st-dev23---2425# 21st.dev — UI Component Registry for AI Agents262721st.dev is a UI component registry designed for AI coding agents. It provides MCP tools to search 12,000+ community components, generate new UI with variants, search logos, and publish/share components.2829Source: [21st.dev](https://21st.dev) | MCP: [docs.21st.dev/mcp](https://docs.21st.dev/mcp)3031## When to Use3233- Building UI with an AI agent and need production-ready components34- Searching for React/Next.js/Tailwind components by category35- Generating new UI components with variants36- Searching for logos by industry/style37- Publishing your own components to a team library38- Need design system tokens or theme generation3940## MCP Setup414221st.dev exposes an HTTP MCP server. Get an API key at [21st.dev/mcp](https://21st.dev/mcp).4344```json45{46 "mcpServers": {47 "21st": {48 "url": "https://21st.dev/api/mcp",49 "headers": { "x-api-key": "YOUR_21ST_API_KEY" }50 }51 }52}53```5455Or install via CLI:56```bash57npx @21st-dev/cli@latest init --client claude # or: cursor | vscode | windsurf | codex58```5960## Core MCP Tools6162| Tool | Purpose | Example |63|------|---------|---------|64| `search` | Search components/themes/templates | "hero section SaaS" |65| `generate` | Generate new UI with variants | "pricing table 3 tiers" |66| `get_inspiration` | Get inspiration from existing components | "dashboard sidebar" |67| `search_logo` | Search logos by query | "tech startup minimal" |68| `get_component` | Retrieve a specific component by ID | — |69| `publish` | Publish a component to the registry | — |70| `bookmark` | Bookmark components for later | — |7172## Workflow7374### 1. Search for Existing Components7576```77User: "Find a hero section for a SaaS landing page"78→ search("hero section SaaS landing") → returns matching components79→ Select best fit → retrieve code → adapt to project80```8182### 2. Generate New UI8384```85User: "Create a pricing table with 3 tiers"86→ generate("pricing table 3 tiers monthly annual toggle")87→ Returns component code + variants88→ Select variant → integrate89```9091### 3. Logo Search9293```94User: "Find a minimal tech logo"95→ search_logo("minimal tech startup")96→ Returns logo options → select → download97```9899### 4. Publish Component100101```102User: "Publish this button component to 21st"103→ publish(component_code, metadata)104→ Component available in registry105```106107## Component Categories108109- **Hero** — Landing page heroes, headers, CTAs110- **Pricing** — Pricing tables, toggle, comparison111- **Navigation** — Navbars, sidebars, breadcrumbs112- **Forms** — Login, signup, contact, multi-step113- **Cards** — Product, feature, testimonial, blog114- **Tables** — Data tables, dashboards, pricing115- **Footers** — Simple, multi-column, newsletter116- **Testimonials** — Quotes, ratings, carousels117- **CTAs** — Call-to-action sections118- **Features** — Feature grids, icon lists119- **Stats** — Metrics, counters, KPIs120- **FAQ** — Accordions, toggles121- **Blog** — Post cards, lists, grids122- **Gallery** — Image grids, lightboxes123- **Modals** — Dialogs, drawers, popovers124- **Authentication** — Login, register, forgot password125- **Empty States** — No data, 404, loading126- **Onboarding** — Tours, tooltips, walkthroughs127128## Supported Stacks129130- React / Next.js131- Tailwind CSS132- shadcn/ui133- HTML/CSS134- Vue (limited)135- Astro (limited)136137## Integration with Other Skills138139- **ui-ux-pro-max** — Use 21st.dev to find components that match the design system generated by ui-ux-pro-max140- **shadcn/ui** — Many 21st components are built on shadcn/ui primitives141- **tailwind-advanced** — Components use Tailwind classes; customize with tailwind-advanced patterns142- **frontend-design** — Use 21st components as starting points for custom designs143144## When NOT to Use145146- Need a full page layout (use ui-ux-pro-max design system generation)147- Need complex animations (use motion.dev)148- Need brand identity (use brand skill)149- Need backend/API components (not a 21st.dev use case)150- Project doesn't use React/Tailwind (limited support for other stacks)151152## Red Flags153154- **Copy-pasting without adaptation**: Always customize components to match your design system155- **Ignoring accessibility**: Verify components meet WCAG standards before shipping156- **Over-reliance on registry**: Custom designs often outperform generic components157- **Not checking license**: Verify component license before commercial use158159## Verification160161- [ ] Component matches design system tokens162- [ ] Accessibility verified (contrast, keyboard nav, ARIA)163- [ ] Responsive at all breakpoints164- [ ] License checked for commercial use165- [ ] Customized to match brand identity166167## Process1681691. Analyze UI requirements1702. Search 21st.dev for matching components1713. Select best-fit component(s)1724. Generate variants if needed1735. Customize to match design system1746. Verify accessibility and responsiveness1757. Integrate into project176177## Anti-Rationalization Table178179| Rationalization | Reality |180|---|---|181| "Registry components are production-ready" | Always audit for accessibility, performance, and design consistency |182| "I'll customize later" | Uncustomized generic components look generic — customize from the start |183| "All components are free" | Check licenses; some require attribution or have usage limits |184| "One component is enough" | Combine multiple components for complex UIs; don't force-fit |