21st-ui

21st-ui is a skill for Claude Code from 21st-dev/magic-mcp. It costs 63 tokens per session (775 once invoked), scanned A, original, ISC.

A skill for finding, installing, and generating React and Tailwind user-interface components through 21st.dev, a catalogue of ready-made web components. It also supports finding logos as JSX or TSX components.

In plain words
What is it for?
Use it to add elements such as pricing tables, navigation bars, heroes, dashboards, and forms, or to find UI inspiration and company logos for a React project.
Why use it?
It helps developers start from an existing component or generate one from a description instead of building every interface element from scratch. Search results include component details and installation information.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the 21st plugin — 1 skill, 1 MCP server shipped together

Good fit Use it to add elements such as pricing tables, navigation bars, heroes, dashboards, and forms, or to find UI inspiration and company logos for a React project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/21st-dev/magic-mcp/21st-ui
About the project

21st-dev/magic-mcp is a compatibility proxy that lets coding agents access the 21st MCP, a server for finding and generating React and Tailwind UI components. It is intended for users of older Magic MCP configurations that need to keep working with the unified 21st MCP service. The catalogue entry is an MCP integration for that workflow.

21st-dev/magic-mcp · 6,123 stars · on GitHub · 21st.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 21st-dev/magic-mcp --skill 21st-ui
Clone the repo
git clone --depth 1 https://github.com/21st-dev/magic-mcp

Made for: Claude Code.

Or install 21st, the plugin that ships this one along with the rest of its 1 skill, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 21st-ui

README.md
[![agentmods](https://agentmods.dev/badge/skills/21st-dev/magic-mcp/21st-ui/github.svg)](https://agentmods.dev/skills/21st-dev/magic-mcp/21st-ui)
Your own site
<a href="https://agentmods.dev/skills/21st-dev/magic-mcp/21st-ui"><img src="https://agentmods.dev/badge/skills/21st-dev/magic-mcp/21st-ui/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for 21st-ui

Your own site · 80×15
<a href="https://agentmods.dev/skills/21st-dev/magic-mcp/21st-ui"><img src="https://agentmods.dev/badge/skills/21st-dev/magic-mcp/21st-ui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 775 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.00775
Opus 5.5 $0.00025 $0.00310
Sonnet 5.5 $0.00013 $0.00155
Haiku 4.5 $0.00006 $0.00077

Measured 1mo ago against content hash 851d43ba67c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

21st-ui scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/21st-ui/SKILL.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

21st.dev UI Skill

21st.dev is a marketplace of 10,000+ production-ready React/Tailwind (shadcn-compatible) components, plus AI UI generation. This skill drives the 21st MCP server.

When to reach for it

  • The user asks to add/build a UI element: "add a pricing section", "I need a nice navbar", "make a testimonials block".
  • The user wants options or inspiration before committing to a design.
  • The user needs a company logo in JSX/TSX (search_logo).
  • The user wants brand-new UI generated from a description (generate).

Workflow: install an existing component (default path)

Prefer real catalog components over writing UI from scratch — they ship with dependencies, demos, and responsive/dark-mode support.

  1. search with a short natural query (e.g. "pricing table", "animated hero"). Results include names, descriptions, previews, and install ids.
  2. Pick the best match for the user's stack and style; show the user 1–3 top candidates if the choice isn't obvious.
  3. get_component to fetch the full code and metadata for the chosen item.
  4. Install into the project the way the result instructs (shadcn-style registry add or by writing the returned files), then wire it into the page and adapt tokens/props to the project's design system.

Notes:

  • Free tier allows catalog search and 2 component installs per day; paid components return code only after unlock.
  • Match the project's existing conventions (Tailwind config, cn helper, component folder layout) when integrating.

Workflow: generate new UI

When nothing in the catalog fits or the user explicitly wants custom UI:

  1. Check get_usage.aiGenerationEnabled and the current tools/list. Paid component access alone does not enable hosted AI. Missing or unknown status is not permission to generate.
  2. With AI off, use search and get_component, then implement or adapt the UI with your own coding agent. Do not call generation tools, legacy builder/refiner aliases, or the CLI as a workaround.
  3. When AI is enabled and generate is listed, call it with the purpose, layout, content, style, and stack constraints. It consumes AI credits and returns a preview URL; open that URL to view the generation.
  4. For existing sketch drafts, use get_generation and get_take to read their code. These reads remain available with AI off.

Read the full file on GitHub · 50 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 lines 851d43ba67c1
  2. 1mo ago First seen · 49 lines · 63 tokens per session scan A d9bc36522fe2

Subscribe to this mod's changes

21st-ui is a skill published in the GitHub repository 21st-dev/magic-mcp (6,123 stars, last pushed 1mo ago), licensed ISC. It adds 63 tokens to every session and 775 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-02.

Related

Other skills, from other repositories

cometchat-react-v7-customization

Theme and brand the React v7 UI Kit — light/dark mode, CSS custom-property design tokens, per-component style overrides. Triggers: 'change chat colors', 'dark mode chat', 'match my brand', 'customize cometchat theme', 'override message list styles'.

cometchat/cometchat-skills · 67 tokens

shadcn

Current best-practices guide for shadcn/ui applications. Before applying primitive-specific guidance, inspect whether the checked-in components use Radix UI or Base UI; current shadcn supports both (Base UI is the default for new projects) and their composition APIs differ. Component installs and upgrades go through…

PyModel/react-frontend-skills · 16 tokens

lov-kill-emoji

A UI cleanup tool that replaces unsuitable emoji in visible interface elements with matching icons or short text. It checks the surrounding meaning before changing anything.

lovstudio/skills · 48 tokens

cinematic-scroll

Design and build cinematic websites, 3D websites, interactive portfolios and product landing pages with scroll-driven storytelling, parallax, text animation and optional Three.js/WebGL scenes. Use for new experiences, motion improvements, scroll audits and storyboards in standalone HTML or an existing app. Includes…

MustBeSimo/cinematic-scroll-skill · 78 tokens

shadcnui

Expert shadcn/ui assistance covering Radix UI primitives, Tailwind CSS styling, copy-paste architecture, and accessibility. Use when building modern React component systems and accessible design systems.

G1Joshi/Agent-Skills · 42 tokens

anthropic-web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

davekilleen/Dex · 66 tokens