21st.dev Magic MCP

Find and generate polished React components, and pull brand logos as SVG

21st.dev is a community library of polished React components. Its official MCP server lets your agent search the library, pull a component's code and generate new components from a prompt. It also finds brand logos as SVG, which saves a trip for every integrations grid.
The project was renamed from Magic MCP to "21st MCP" and now runs as one hosted server. Old Magic API keys were reset, so older tutorials and configs that pass a key may be out of date. Generation is only available when AI access is enabled on your account; search and component retrieval work with a free key.
Component search
Searches the 21st.dev catalog of components, themes and templates
Get code
Pulls a component's code into your project
Generate
Builds a new component from a prompt and iterates on it
Logo search
Finds brand logos and returns them as SVG
Prompts to try
When to use
  • You want polished components fast, from a library or a prompt
  • You need brand logos as SVG
  • You build in React with Tailwind
When not to use
  • You want to install from your own registry: use shadcn/ui
  • You want the agent to stick to your documented library: use Storybook
  • You want a layout grounded in real products: use Mobbin

Watch out

  • Without direction, results look like every other landing page. Point it at your tokens and components.
  • Keys from the old Magic console no longer work. Generate a new one.
  • Some code retrieval is paid; check what a component costs before pulling it.

Install

Terminal

Loading editor...

npx @21st-dev/cli@latest init --client claude
Get a free API key at 21st.dev/mcp first. The same CLI takes --client cursor, vscode, windsurf or codex. You can also add https://21st.dev/api/mcp as an HTTP server with the key in an x-api-key header.
© 2026 Paralect, Inc 651 N Broad St, Suite 206, Middletown, 19709, Delaware, United States