Loading...
npx @21st-dev/cli@latest install <client> --api-key <key>{
"mcpServers": {
"@21st-dev/magic": {
"command": "npx",
"args": ["-y", "@21st-dev/magic@latest", "API_KEY=\"your-api-key\""]
}
}
}/uiGenerates UI components based on natural language descriptions.
Adds new files to the project, but does not modify existing ones.
The Magic AI Agent is relatively safe for UI generation, as it primarily adds new components to a project. However, the reliance on an API key and external service introduces some risk, especially if the key is mishandled or the service is compromised. Ensure API keys are stored securely.