21st-dev Magic MCP Server
Instantly generate beautiful, production-ready UI components using natural language with the 21st-dev Magic MCP Server, fully integrated with FlowHunt and major IDEs.

What does “21st-dev Magic” MCP Server do?
The 21st-dev Magic MCP Server is an AI-driven platform designed to help developers create beautiful, modern UI components instantly through natural language descriptions. Acting as a bridge between AI assistants and your development environment, it enables seamless UI generation, real-time previews, and integration of professional brand assets and logos. With support for popular IDEs like Cursor, Windsurf, VSCode, and Cline, it streamlines frontend workflows by letting users describe the UI they want, and the Magic MCP Server generates and inserts polished, customizable components directly into the project. Its goal is to enhance developer productivity by automating repetitive UI tasks and integrating AI-powered creativity into the daily development process.
List of Prompts
No explicit prompt templates are listed in the provided repository documentation.
List of Resources
No explicit resources are listed in the provided repository documentation.
List of Tools
No explicit tools are listed in the provided repository documentation or in server.py
(or equivalent).
Use Cases of this MCP Server
- AI-powered UI Generation: Instantly create modern UI components by describing them in natural language, saving significant time on boilerplate and design.
- Component Enhancement: Upgrade existing UI components with advanced features and animations (feature coming soon), streamlining iterative development.
- Brand Asset Integration: Easily access and integrate professional brand assets and logos into your frontend, maintaining design consistency and professionalism.
- Real-time Preview: See components as they are created, enabling rapid prototyping and feedback loops.
- Multi-IDE Support: Use the same AI UI generation workflow across Cursor, Windsurf, VSCode, and Cline, ensuring consistent development experiences.
How to set it up
Windsurf
- Prerequisite: Install Node.js (latest LTS).
- Get your API key: Generate from 21st.dev Magic Console.
- Open config file: Edit
~/.codeium/windsurf/mcp_config.json
. - Add Magic MCP Server:
{ "mcpServers": { "@21st-dev/magic": { "command": "npx", "args": ["-y", "@21st-dev/magic@latest", "API_KEY=\"your-api-key\""] } } }
- Save and restart Windsurf to apply changes.
Securing API Keys: Use environment variables in your configuration:
{
"mcpServers": {
"@21st-dev/magic": {
"command": "npx",
"args": ["-y", "@21st-dev/magic@latest"],
"env": { "API_KEY": "YOUR_API_KEY" }
}
}
}
Claude
- Prerequisite: Install Node.js (latest LTS).
- Get your API key: Generate from 21st.dev Magic Console.
- Open config file: Edit
~/.claude/mcp_config.json
. - Add Magic MCP Server:
{ "mcpServers": { "@21st-dev/magic": { "command": "npx", "args": ["-y", "@21st-dev/magic@latest", "API_KEY=\"your-api-key\""] } } }
- Save and restart Claude to apply changes.
Securing API Keys:
{
"mcpServers": {
"@21st-dev/magic": {
"command": "npx",
"args": ["-y", "@21st-dev/magic@latest"],
"env": { "API_KEY": "YOUR_API_KEY" }
}
}
}
Cursor
- Prerequisite: Install Node.js (latest LTS).
- Get your API key: Generate from 21st.dev Magic Console.
- Open config file: Edit
~/.cursor/mcp.json
. - Add Magic MCP Server:
{ "mcpServers": { "@21st-dev/magic": { "command": "npx", "args": ["-y", "@21st-dev/magic@latest", "API_KEY=\"your-api-key\""] } } }
- Save and restart Cursor to apply changes.
Securing API Keys:
{
"mcpServers": {
"@21st-dev/magic": {
"command": "npx",
"args": ["-y", "@21st-dev/magic@latest"],
"env": { "API_KEY": "YOUR_API_KEY" }
}
}
}
Cline
- Prerequisite: Install Node.js (latest LTS).
- Get your API key: Generate from 21st.dev Magic Console.
- Open config file: Edit
~/.cline/mcp_config.json
. - Add Magic MCP Server:
{ "mcpServers": { "@21st-dev/magic": { "command": "npx", "args": ["-y", "@21st-dev/magic@latest", "API_KEY=\"your-api-key\""] } } }
- Save and restart Cline to apply changes.
Securing API Keys:
{
"mcpServers": {
"@21st-dev/magic": {
"command": "npx",
"args": ["-y", "@21st-dev/magic@latest"],
"env": { "API_KEY": "YOUR_API_KEY" }
}
}
}
How to use this MCP inside flows
Using MCP in FlowHunt
To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:
{
"magic-mcp": {
"transport": "streamable_http",
"url": "https://yourmcpserver.example/pathtothemcp/url"
}
}
Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change "magic-mcp"
to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.
Overview
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | Present in README |
List of Prompts | ⛔ | Not listed |
List of Resources | ⛔ | Not listed |
List of Tools | ⛔ | Not listed |
Securing API Keys | ✅ | Provided in setup instructions |
Sampling Support (less important in evaluation) | ⛔ | Not mentioned |
Roots support not specified in the repository.
Our opinion
The 21st-dev Magic MCP Server has excellent documentation for installation and setup across multiple platforms, with clear real-world use cases and a large, active user base. However, the lack of explicit documentation for MCP prompts, resources, tools, and advanced MCP concepts like Roots and Sampling limits its transparency for advanced users and integrators.
MCP Score
Has a LICENSE | ⛔ (not found explicitly) |
---|---|
Has at least one tool | ⛔ |
Number of Forks | 176 |
Number of Stars | 2.5k |
Rating: 6/10
The 21st-dev Magic MCP Server scores highly for usability, activity, and clarity of setup but loses points for lack of advanced technical detail and explicit MCP primitives in public documentation.
Frequently asked questions
- What is the 21st-dev Magic MCP Server?
The 21st-dev Magic MCP Server is an AI-powered platform that generates modern, production-ready UI components from natural language prompts, integrating easily into popular IDEs and FlowHunt workflows.
- Which IDEs are supported by the Magic MCP Server?
The server supports Cursor, Windsurf, VSCode, and Cline, providing a consistent AI-driven UI generation experience across these environments.
- How do I securely store my API key?
It's recommended to use environment variables in your MCP server configuration to avoid exposing your API key directly in your config files.
- Can I use the Magic MCP Server with FlowHunt?
Yes! Add the MCP component in your FlowHunt flow, configure the Magic MCP Server as shown in the documentation, and connect it to your AI agent for instant access to UI generation features.
- Does the server provide prompt templates or tools?
No explicit prompt templates or tools are listed in the public documentation. However, the platform focuses on natural language UI generation and brand asset integration.
- What are the key use cases for this MCP Server?
Key use cases include AI-powered UI generation, real-time component previews, seamless brand asset integration, and speeding up repetitive frontend tasks.
Supercharge Your UI Development with 21st-dev Magic MCP Server
Streamline your frontend workflow with AI-powered UI generation. Integrate the 21st-dev Magic MCP Server into FlowHunt or your favorite IDE and start building modern interfaces in seconds.