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.

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