Skip to main content
Magic UI now has an official MCP server that enables AI-assisted IDEs to have direct access to all Magic UI components.

What is MCP?

MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. This is useful for Magic UI because you can now give your AI-assisted IDE direct access to all Magic UI components so that it can generate code with minimal errors.
With MCP integration, your AI assistant can automatically reference component APIs, props, and examples when generating code.

Installation

Choose your installation method based on your IDE:

Usage

Once installed, you can ask your AI assistant to use any Magic UI component. The MCP server provides the assistant with:
  • Component documentation and descriptions
  • Complete prop type definitions
  • Usage examples and code snippets
  • Installation instructions

Example prompts

Here are some example prompts you can use with your AI assistant:
Add a blur fade text animation to the hero section
The AI will automatically:
  • Reference the correct component from Magic UI
  • Use proper TypeScript types
  • Include necessary imports
  • Apply appropriate props and styling

Verification

To verify the MCP server is working correctly:
1
Check MCP status
2
In your IDE, check that the Magic UI MCP server appears in the list of active MCP servers.
3
Test with a prompt
4
Ask your AI assistant: “Show me how to use the Magic UI blur fade component”
5
The assistant should provide accurate code with proper imports and usage.

Troubleshooting

  • Verify the configuration file path is correct for your IDE
  • Check that the JSON syntax is valid
  • Restart your IDE completely (not just reload)
  • Check IDE console for error messages
  • Explicitly mention “Magic UI” in your prompt
  • Ask the assistant to “use the MCP server”
  • Verify the MCP server is active in your IDE settings
  • Make sure you have Node.js 18+ installed
  • Try running with --verbose flag for detailed logs
  • Fall back to manual installation

Supported IDEs

The Magic UI MCP server currently supports:
  • Cursor - AI-first code editor
  • Windsurf - Codeium’s AI IDE
  • Claude Desktop - Anthropic’s desktop app
  • Cline - VS Code extension
  • Roo-Cline - Enhanced Cline fork
More IDEs will be supported as MCP adoption grows. The manual installation method works with any MCP-compatible application.

Next steps

Browse components

Explore all available Magic UI components

Learn MCP

Read more about the Model Context Protocol

Build docs developers (and LLMs) love