Magic MCP server generates UI components for frontend development. It connects to Cursor, WindSurf, and Cline editors. It exposes AI-driven UI generation tools. Frontend developers use it to rapidly prototype and build interfaces.
Magic MCP server generates UI components for frontend development. It connects to Cursor, WindSurf, and Cline editors. It exposes AI-driven UI generation tools. Frontend developers use it to rapidly prototype and build interfaces.
npx -y @21st-dev/magicAdd this configuration to your claude_desktop_config.json:
{
"mcpServers": {
"21st-dev-magic-mcp-github": {
"command": "npx",
"args": [
"-y",
"npx -y @21st-dev/magic"
]
}
}
}Restart Claude Desktop, then ask:
"What tools do you have available from magic mcp?"
API Key Required
This server requires an API key from magic mcp. Add it to your environment or config.
| Variable | Required | Description |
|---|---|---|
| MAGIC_MCP_API_KEY | Yes | Your magic mcp API key |
"What resources are available in magic mcp?"
Claude will query available resources and return a list of what you can access.
"Show me details about [specific item] in magic mcp"
Claude will fetch and display detailed information about the requested item.
"Create a new [item] in magic mcp with [details]"
Claude will use the appropriate tool to create the resource and confirm success.
We build custom MCP integrations for B2B companies. From simple connections to complex multi-tool setups.