21st.dev Magic generates interface components from text descriptions. An agent can generate interface components from text descriptions. Add your API_KEY when you install the 21st.dev Magic MCP server in Longwave.
Add your API_KEY when you install the 21st.dev Magic MCP server in Longwave.
Ask for the result in any thread, for example: “Generate a component for a signup form”. The agent picks the 21st.dev Magic function and calls it.
Use cases
Generate a component for a signup form
Draft a navigation component from a design brief
Create a component variation for a product page
Questions people ask
What does 21st.dev Magic generate?
Magic generates interface components from a text description. The result is component code for use in an application. 21st.dev Magic documentation
Is Magic the same as the 21st.dev component library?
Magic provides component generation. The 21st.dev website also provides a collection of interface components for browsing and reuse. 21st.dev Magic documentation
How do I add the 21st.dev Magic MCP server to Claude Code?
Run claude mcp add --transport http magic https://21st.dev/api/mcp in a terminal. Add your API_KEY when you install the 21st.dev Magic MCP server in Longwave.
Who publishes the 21st.dev Magic MCP server?
21st.dev publishes the 21st.dev Magic MCP server that Longwave installs. Source code
Use 21st.dev Magic in Longwave
Call 21st.dev Magic from any agent thread, on your machine or in the cloud.