Install the 21st MCP via CLI
mainThe recommended way to install the 21st MCP (formerly Magic MCP) for AI agents is using the @21st-dev/cli. Use the init command with the --client flag to specify your environment (e.g., cursor, claude, vscode, windsurf, or codex).
npx @21st-dev/cli@latest init --client <cursor|claude|vscode|windsurf|codex>