The short version: run npx @magicuidesign/cli@latest install cursor (or windsurf, claude, cline, roo-cline), restart the editor, and the Magic UI MCP server is live — your AI editor can now search the real component registry and install components with the correct npx shadcn@latest add command instead of inventing markup. For Claude Code and VS Code, which the installer does not target directly, add a five-line JSON entry shown below. The server is free, needs no API key, and works with the free library.

What the Magic UI MCP server actually does

The Magic UI MCP server (@magicuidesign/mcp, currently version 2.0.0, published March 2026) is a Model Context Protocol server maintained in the official magicuidesign/mcp repository. Once your editor connects to it, the model gains three tools:

Because the server reads the live registry rather than a hard-coded list, new components appear in your editor as soon as they ship. It does not model broad concepts such as “widgets” or “media” as categories — ask for the thing you want (“a marquee of logos”, “a blur fade text animation”, “a grid background”) and let it search.

One naming note: Magic MCP from 21st.dev is a different, unrelated product. If your editor already lists a server called “Magic”, check the package name — the official Magic UI server is @magicuidesign/mcp.

Before you start

Step 1 — Install with the official CLI (Cursor, Windsurf, Claude Desktop, Cline, Roo Cline)

  1. In your project directory run npx @magicuidesign/cli@latest install cursor — replace cursor with windsurf, claude, cline or roo-cline.
  2. The CLI writes the MCP entry into that client’s config file for you.
  3. Restart the editor (or reload MCP servers from its settings) and confirm a server named @magicuidesign/mcp shows as connected with three tools.

If the CLI cannot find your client’s config, use the manual entry below — it is the same five lines everywhere.

Step 2 — Manual configuration (Claude Code, VS Code, or any MCP client)

The canonical config from the official README:

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

Where it goes:

{
  "servers": {
    "magicui": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@magicuidesign/mcp@latest"]
    }
  }
}

Save, reload the window, and the server appears in the agent’s tool list.

Step 3 — Use it: prompts that work

Ask in plain language and name the intent, not a component you half-remember:

The editor runs npx shadcn@latest add @magicui/<slug>, the file lands in components/ui/, and the model wires the import. Review the diff as you would any generated code — the component is real, the placement is the model’s guess.

Troubleshooting

Next: Getting started with Magic UI in Next.js 15 for the manual path, or the component overview to see every family the MCP server can reach.