Servers › Design › 21st.dev Magic

● MaintainedDesign

21st.dev Magic MCP Server

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

npx -y @21st-dev/magic@latest API_KEY="..."

Example config (Cursor / Claude Desktop)

{
  "mcpServers": {
    "magic": {
      "command": "npx",
      "args": [
        "-y",
        "@21st-dev/magic@latest",
        "API_KEY=\"...\""
      ],
      "env": {
        "TWENTY_FIRST_API_KEY": "<your-value>"
      }
    }
  }
}

The same mcpServers block works in Cursor, Claude Desktop and Devin Desktop. VS Code (Copilot) uses a "type" field, Claude Code is easiest with claude mcp add, and Codex uses TOML: see the setup guide for your app. On Windows, wrap npx with cmd /c (fix).

At a glance

Repository21st-dev/magic-mcp
GitHub stars6,700
Last commit2026-09-09 (82 days ago)
Statusmaintained
Security advisoriesNo published advisories found as of 2026-11-30. Details
Clients mentioned in READMEClaude Code, Cursor, VS Code, Windsurf, Codex
AuthAPI key/token · TWENTY_FIRST_API_KEY
Language / LicenseTypeScript / ISC

Security advisories

No published advisories found as of 2026-11-30.

Checked 2026-11-30 in the repo's GitHub security advisories and OSV.dev for @21st-dev/magic (npm). No advisory doesn't prove a server is safe. How to stay updated.

Common problems

Weekly MCP digest
New servers, breaking changes, and fresh fixes. One email a week.