Sponsored by Deepsite.site

@magicuidesign/mcp

Created By
beaubhp8 months ago
Official MCP server for Magic UI.
Content

@magicuidesign/mcp

npm version

Official ModelContextProtocol (MCP) server for Magic UI.

This server enables AI assistants like Cursor to access information about Magic UI components, including lists of available components and their implementation details.

Features

  • Get a list of all available Magic UI components.
  • Retrieve implementation details and code examples for specific components across various categories (Core, Special Effects, Animations, Text, Buttons, Backgrounds, Device Mocks).

Setup with Cursor (or Claude Desktop)

  1. Install Cursor: Ensure you have the Cursor IDE installed.
  2. Configure Cursor's MCP: You need to tell Cursor how to run your MCP server.
    • Locate or create the MCP configuration file. On macOS/Linux, this is typically at ~/.cursor/mcp.json. On Windows, it might be %USERPROFILE%\.cursor\mcp.json.
    • Edit the mcp.json file.
      • If the file doesn't exist or is empty: Create it with the following content:
        {
          "mcpServers": {
            "magicui-mcp": {
              "command": "npx",
              "args": [
                "-y",
                "@magicuidesign/mcp"
              ]
            }
          }
        }
        
      • If the file exists and has other servers: Add the magicui-mcp block inside the existing mcpServers object:
        {
          "mcpServers": {
            // ... other servers might be here ...
            "magicui-mcp": {
              "command": "npx",
              "args": [
                "-y",
                "@magicuidesign/mcp"
              ]
            }
          }
        }
        
  3. Restart Cursor: Close and reopen Cursor to apply the changes.
  4. Verify: Look for the Magic UI tools (like getUIComponents, getComponents, etc.) being available in Cursor's AI chat interface or MCP status indicators.

Note: This setup relies on npx successfully fetching and running the latest published version of @magicuidesign/mcp from npm. Ensure you have published a version that includes the #!/usr/bin/env node shebang in the main script (dist/server.js) and has all necessary dependencies.

Example Usage in Cursor

Once configured, you can ask Cursor questions like:

"List all Magic UI components using the getUIComponents tool."

"Show me the implementation details for the Magic UI Marquee component using the getComponents tool."

"Get the code for the Neon Gradient Card effect from Magic UI."

Development Setup

Running with Inspector

For development and debugging, you can use the MCP Inspector tool:

npx @modelcontextprotocol/inspector npx -y @magicuidesign/mcp

Visit the Inspector documentation for more details.

Local Development

  1. Clone the repository:
    git clone magicuidesign/mcp
    cd mcp # Or your project directory name
    
  2. Install dependencies:
    npm install
    
  3. Build the project: (Compiles TypeScript to JavaScript in dist/)
    npm run build
    
  4. For development with auto-rebuilding: (Requires tsc-watch or similar setup in package.json)
    npm run watch # Or: tsc -w
    
    (You might need to add a watch script to your package.json if it doesn't exist: "watch": "tsc -w")

Available Tools

The server provides the following tools callable via MCP:

Installation (as a dependency)

While primarily intended as a standalone MCP server run via npx, you can also install it as a dependency if needed:

npm install @magicuidesign/mcp

ISC

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Amap Maps高德地图官方 MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Playwright McpPlaywright MCP server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
CursorThe AI Code Editor
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Tavily Mcp
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Serper MCP ServerA Serper MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
ChatWiseThe second fastest AI chatbot™
WindsurfThe new purpose-built IDE to harness magic
DeepChatYour AI Partner on Desktop