MCP server

Magic MCP (21st MCP): UI Components for AI Agents

Magic MCP from 21st.dev is now the 21st MCP. It lets an AI coding agent search React and Tailwind components, fetch code and generate new UI from the editor.

Run
npx @21st-dev/cli@latest init --client cursor
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is Magic MCP?

Magic MCP by 21st.dev has become the unified 21st MCP, set up through the 21st CLI. It lets an AI coding agent search a catalog of React and Tailwind components, retrieve component code, find inspiration and, when AI access is enabled, generate and iterate UI. The old package now proxies to it.

Magic MCP is 21st.dev's MCP server for UI. The repository describes it as like v0 but inside your editor: search 10,000+ React and Tailwind components, generate new UI with AI, and publish your own.

The project has moved. Magic MCP is now the 21st MCP, installed through the 21st CLI. The @21st-dev/magic package stays as a small stdio proxy that forwards to the same server, so older configs keep working.

What changes in your agent's output

  • The agent starts from catalog components and inspiration instead of writing every card, hero or pricing block from scratch.
  • Component code arrives through get_component, so the agent adapts real source to your project.
  • With AI access enabled, generate and iterate_generation create UI and refine it from a prompt.
  • Without AI access, search and get_component still work, and your own coding agent adapts the code.

What the current server exposes

The README says the server now exposes much more than the old four tools: catalog search across components, themes and templates, paid code retrieval, bookmarks, team libraries, UI generation with variants and profile management. Connect and list tools to see what your account has.

Who Magic MCP is for

Best for

  • React and Tailwind projects that want ready components as a starting point.
  • Rapid prototyping, where finding a close match is faster than a blank prompt.
  • Teams that publish their own components and want an agent to find them in a shared library.

Not for

  • Reading a design file. Use the Figma MCP server when the design lives in Figma.
  • Projects with a fixed shadcn setup who want registry-exact installs. The shadcn MCP server fits that better.
  • Anyone who needs the old Magic keys. The README says old keys were reset, and new ones come from 21st.dev.

Use it with UiChemy

Magic MCP produces React and Tailwind code. If you want a WordPress site, UiChemy builds there: Composer writes real HTML, CSS and JS inside Elementor or Gutenberg, and AI to WordPress imports an existing build. Click Get Started on uichemy.com.