AI-built websites all start to look the same. 21st.dev is a library of components made by real designers, and it plugs straight into Claude. Use it once and your sites stop looking generic.
21st.dev is a huge community library of UI components built with React and Tailwind, from hero sections and nav bars to full dashboards and login screens. You can browse all of it for free. Most components are MIT-licensed, so you can use them in commercial work, but each component page shows its own license, so check it before you ship. (21st licensing)
The part I love is the 21st MCP. It connects Claude Code to the whole library, so you can ask in plain English for a pricing section and Claude searches 21st, pulls the code into your project and adapts it to your brand.
Prices from the 21st pricing page and help center. For most people, Builder is plenty. Claude Code does the adapting, so you rarely need 21st AI on top.
01
Hero Sections
Find one that matches your brand vibe and grab it. Best return on your time of any category. Browse heroes
02
Nav Bars
A real nav does a lot of the work of making a site look designed. Sticky, transparent navs are the move. Browse navs
03
Dashboards
Sidebar layouts with stat cards. Use these for SaaS apps and internal tools.
04
Pricing Sections
Clean 3-tier comparisons that save you days of design back-and-forth. Browse pricing
05
Testimonials
The ones with photos and tags look the most real. Your social proof section in minutes. Browse testimonials
06
Footers
Most AI-built footers are forgettable. A real one signals you actually shipped a product. Browse footers
01
Get your 21st API key
Sign up at 21st.dev, then go to 21st.dev/mcp and create a key. If you used the old Magic MCP, your old key was reset, so make a new one.
02
Run the setup in your project folder
Run: npx @21st-dev/cli@latest init --client claude --write
This saves the 21st MCP setup for Claude Code. Swap the key placeholder in that config for your real key (or set it as API_KEY_21ST in your environment), then restart Claude Code. Leave off --write if you want to see the config printed first, before anything is saved.
03
Ask in plain English
The old /ui command from Magic MCP is gone. Now you just tell Claude what you want, like "search 21st for a pricing section with three tiers and install the best one." (21st MCP on GitHub)
No Claude Code?
You can still use 21st on the free plan. Open any component, press ⌘C to copy the code (or ⌘X to copy a ready-made AI prompt), and paste it into Claude with a note about your brand. That uses one of your two daily retrievals.
Paste one of these into Claude Code inside your project and fill in the brackets.
Honest Limitations
Two free retrievals a day runs out fast on a real project, so budget for Builder if you’re building for a client. Everything is React and Tailwind, so if your site is plain HTML or Vue, ask Claude to convert the component for you.