Delv
Official (Vendor)Stale· 4mo4.1by 21st.dev

Magic MCP (21st.dev)

Generates crafted UI components in your editor using 21st.dev design patterns, integrating with Cursor, Windsurf, and Cline.

B
Safety & Trust

Delv Safety Grade: B

Score 72/100 · assessed 2026-04-18

Maintainer65
Permissions75
Supply chain75
Transparency70
Incidents100

Magic MCP is a commercial component generator from 21st.dev, a smaller design tooling vendor. It fetches pre-built React and Vue components via API and writes them into your project. The maintainer is a legitimate but relatively young company without the track record of major vendors. Supply chain is standard npm with npx install, though the API key requirement means you're trusting 21st.dev's service availability and data handling. Permissions are moderate: it writes to filesystem (component files) and makes network calls to their API. Transparency is reasonable with public repo and docs, but the service itself is proprietary. No known incidents. The main risk is vendor lock-in to 21st.dev's design system and reliance on their API uptime. Suitable for prototyping but consider the commercial dependency for production work.

Green flags

  • Standard npm package distribution with versioning
  • Public GitHub repo with visible source for CLI tooling
  • Scoped to component generation, no shell or system-level access
  • Clear documentation and integration guides for multiple editors
  • No known security incidents or malicious behaviour

Red flags

  • Requires paid API key, creating vendor lock-in to 21st.dev service
  • Relatively new vendor (21st.dev) without long operational track record
  • Proprietary backend API, opaque component generation logic
  • Filesystem write access to inject generated code into your project

Permissions requested

Write filesOutbound networkRead env
Assessed by Delv Editorial using public metadata. Grades are advisory and update as the ecosystem changes. They do not replace your own review of permissions and code before granting an agent access to sensitive systems.

Install

npx @21st-dev/cli@latest install cursor --api-key YOUR_KEY
Env vars needed: MAGIC_API_KEY

Review

Magic MCP hooks 21st.dev's component library directly into your editor. You describe what you want in natural language, it returns ready-to-paste React or Vue components styled with their design patterns. The pitch is speed: instead of browsing Shadcn or copy-pasting from Tailwind UI, you ask Claude to "generate a pricing card with three tiers" and Magic pulls a component that matches 21st.dev's aesthetic. I'd reach for this when prototyping customer-facing features where polish matters but you don't want to bikeshed button radii. The components lean modern and opinionated, which is either a time-saver or a constraint depending on your brand guidelines. It works best in Cursor and Windsurf where the MCP integration is tight. Cline support exists but feels more manual. The workflow is straightforward: you prompt Claude with a UI need, it calls the MCP server, you get back a component with imports and props already wired. The quality is consistent because 21st.dev curates the library, but that also means you're locked into their design choices. If your project uses a different component philosophy or you need something outside their catalogue, you're back to writing it yourself. Quirks: the API key requirement adds friction if you're trialling it casually. The component output assumes you're comfortable with React or Vue and have a build pipeline that can handle modern JSX. It won't teach you the framework, it just gives you the code. Also, the "magic" only extends as far as 21st.dev's library covers. Ask for something niche and it'll either hallucinate or fall back to generic suggestions. Skip this if you're building design systems from scratch, working in a non-JS stack, or your team has strong opinions about component architecture. It's for people who want good-enough UI fast and trust 21st.dev's taste. If you're already using their platform, this is a no-brainer. If you're not, try it on a throwaway project before committing.
Verdict

Install if you prototype often and 21st.dev's design language fits your work. Skip if you need full control over component structure or work outside React/Vue. It's a time-saver for the right kind of project, not a universal tool.

Good at

  • Generates production-ready components faster than browsing component libraries or writing from scratch.
  • 21st.dev's curation means consistent quality and modern design patterns out of the box.
  • Works natively in Cursor and Windsurf with minimal setup friction once the API key is in place.
  • Good for rapid prototyping when you need polished UI without the usual iteration loop.

Watch out

  • Locked into 21st.dev's design opinions, which may clash with your existing brand or component architecture.
  • Requires an API key from 21st.dev, so you can't trial it anonymously or offline.
  • Limited to React and Vue, so useless if you're working in Svelte, Angular, or server-rendered templates.
  • Component catalogue is finite, so niche or highly custom UI needs still require manual work.

Use cases

  • UI component generation
  • design system scaffolding
  • rapid prototyping
  • component library curation

Getting started

1. Run `npx @21st-dev/cli@latest install cursor --api-key YOUR_KEY` in your terminal, replacing YOUR_KEY with your 21st.dev API key. 2. Restart your editor (Cursor, Windsurf, or Cline) so it picks up the new MCP server configuration. 3. Open a project file and prompt Claude with something like "generate a hero section with a CTA button using Magic MCP". You should see it call the MCP server and return a component. 4. Paste the component into your codebase and check imports. You may need to install dependencies if they're not already in your package.json. 5. Watch out: if the component doesn't match your existing design system, you'll spend time adapting it. Use this for greenfield work or prototypes, not retrofitting into established codebases.

Works with

Claude CodeCursorWindsurfCline

Similar MCPs