Magic UI MCP server

Provides structured access to Magic UI's component library for generating accurate code suggestions with proper installation instructions for implementing visually appealing UI elements in web applications.
Back to servers
Provider
Magic UI
Release date
Apr 17, 2025
Language
TypeScript
Package
Stats
1.4K downloads
166 stars

ModelContextProtocol (MCP) server for Magic UI is an official tool that allows you to integrate Magic UI components into your IDE using the Model Context Protocol. The server provides easy access to a comprehensive library of UI components, animations, and effects that can be used in your projects.

Installation

Automatic Installation

You can quickly install the MCP configuration using the Magic UI CLI:

npx @magicuidesign/cli@latest install <client>

Supported Clients

  • cursor
  • windsurf
  • claude
  • cline
  • roo-cline

Manual Installation

To manually configure your IDE's MCP settings, add the following to your MCP configuration:

{
  "mcpServers": {
    "@magicuidesign/mcp": {
      "command": "npx",
      "args": ["-y", "@magicuidesign/mcp@latest"]
    }
  }
}

Usage

Once your MCP server is configured, you can ask it questions directly from your IDE to get Magic UI components. Some example prompts you can use:

  • "Make a marquee of logos"
  • "Add a blur fade text animation"
  • "Add a grid background"

Available Tools

The MCP server provides several specialized tools that can be called to access different categories of Magic UI components:

Layout Components

Use getLayout to access components like:

  • Bento grid
  • Dock
  • File tree
  • Grid pattern
  • Interactive grid pattern
  • Dot pattern

Media Components

Use getMedia to access components like:

  • Hero video dialog
  • Terminal
  • Marquee
  • Script copy button
  • Code comparison

Motion Components

Use getMotion to access components like:

  • Blur fade
  • Scroll progress
  • Scroll-based velocity
  • Orbiting circles
  • Animated circular progress bar

Text Reveal Components

Use getTextReveal to access components like:

  • Text animate
  • Line shadow text
  • Aurora text
  • Animated shiny text
  • Text reveal
  • Typing animation
  • Box reveal
  • Number ticker

Text Effects Components

Use getTextEffects to access components like:

  • Word rotate
  • Flip text
  • Hyper text
  • Morphing text
  • Spinning text
  • Sparkles text

Button Components

Use getButtons to access components like:

  • Rainbow button
  • Shimmer button
  • Shiny button
  • Interactive hover button
  • Animated subscribe button
  • Pulsating button
  • Ripple button

Visual Effects

Use getEffects to access components like:

  • Animated beam
  • Border beam
  • Shine border
  • Magic card
  • Meteors
  • Neon gradient card
  • Confetti
  • Particles

Widget Components

Use getWidgets to access components like:

  • Animated list
  • Tweet card
  • Client tweet card
  • Lens
  • Pointer
  • Avatar circles
  • Icon cloud
  • Globe

Background Components

Use getBackgrounds to access components like:

  • Warp background
  • Flickering grid
  • Animated grid pattern
  • Retro grid
  • Ripple

Device Components

Use getDevices to access components like:

  • Safari
  • iPhone 15 Pro
  • Android

Limitations

Some MCP clients have limitations on the number of tools they can call. For this reason, the MCP server groups components into categories. For more specific context on individual components, you can run the MCP server locally and modify the component grouping logic.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later