TokenToSeaMCP Hub
中文 Console

21st.dev Magic

21st.devOfficial

Search 10,000+ React and Tailwind components, generate new UI with AI and publish your own from Cursor, Claude Code or Windsurf.

Setup

Choose your client, copy the config, then fill in any required environment variables.

Add to CursorAdd to VS Code

claude mcp add 21st-dev-magic --env API_KEY='<API_KEY>' --env TWENTY_FIRST_API_KEY='<TWENTY_FIRST_API_KEY>' -- npx -y @21st-dev/magic@latest 'API_KEY={{config.API_KEY}}'

Environment variables

  • API_KEY
  • TWENTY_FIRST_API_KEY

Replace the placeholders with your own credentials and keep them out of version control.