magic-mcp

MCP server by 21st-dev · ★ 6.1k · updated 1 month ago

Developer ToolsMaintainedGrade ARemote availableOne-click install

It's like v0, but in your Cursor / Claude Code / Windsurf: search 10,000+ React/Tailwind components, generate new UI with AI, and publish your own — right from your editor. Magic MCP is now the 21st MCP; this package keeps old configs working. Setup: 21st.dev/mcp

Install magic-mcp

Choose your AI client and copy the config.

Add to claude_desktop_config.json — macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Then restart Claude. Setup guide

{
  "mcpServers": {
    "magic-mcp": {
      "command": "npx",
      "args": [
        "@21st-dev/cli@latest",
        "init",
        "--client",
        "cursor",
        "#",
        "or:",
        "claude",
        "|",
        "vscode",
        "|",
        "windsurf",
        "|",
        "codex"
      ]
    }
  }
}
Before you install: Install command taken from the project README. The README mentions API keys or tokens — you'll likely need to add them as environment variables ("env") in the config.

Related servers