Skip to content
MCP server

magic-mcp

MCP server giving AI coding agents search and install access to 21st's React component

Actively maintainedStatus and history

The repository was last updated 70 days ago and is published under ISC.

Pricing
Freemium
Platforms
API, CLI, vscode
GitHub stars
6.6K
Last commit
2 months ago
Language
TypeScript
License
ISC

Similar MCP servers

About magic-mcp

magic-mcp is a freemium MCP server for developer tools. It is available on API, CLI, vscode and Web.

The README says this project has been replaced by the 21st MCP, a hosted HTTP server reached through the 21st CLI, while this npm package remains as a stdio proxy so older Magic configs keep working. Once connected, an agent can search the catalog of React UI components, retrieve component code, and install pieces into a project without leaving the editor.

The server also exposes hosted UI generation with variants, but that depends on whether AI access is enabled for the account. The README notes that the generate and iterate_generation tools only appear when AI is enabled, and that without it the agent can still search, fetch components and adapt the code itself.

It suits front-end developers who build with Cursor, Claude Code, Windsurf, VS Code or another MCP client and want reusable interface pieces. Fresh API keys are required because the old Magic keys were reset.

What it does

Component catalog search
Lets an agent query the 21st library of components, themes and templates from inside an MCP client.
Install via CLI or MCP
Components can be added to a project through the 21st CLI or directly by the agent through MCP tools.
Hosted UI generation
Generates interface code with variants when AI access is enabled on the account.
Legacy tool name support
Translates old Magic tool names such as 21st_magic_component_builder into the current tool set.
Stdio compatibility proxy
The @21st-dev/magic package forwards MCP messages to the 21st server for existing mcp.json configs.

Good for

  • Adding a pricing table or other common UI block to a React project from an agent prompt
  • Browsing alternative component designs before committing to one in a codebase
  • Migrating an existing Magic MCP configuration to the new 21st server
  • Auditing or rebuilding screens in a team's own component style when AI access is enabled

Pricing

Freemium, from $6 a month

Free account copies 2 components a day; Builder from $6 a month; Builder + AI from $15 a month.

Prices change. Check 21st.dev before you buy.

magic-mcp FAQ

Do I need an API key?

Yes. The README says a 21st API key is required, and keys from the old Magic console no longer work and must be regenerated at 21st.dev/mcp.

Which clients does it support?

The README lists Cursor, Claude Code, VS Code, Windsurf and Codex as install targets for the CLI, and says the server is a plain HTTP MCP server usable by any MCP client.

Are the generate tools always available?

No. The README says generate and iterate_generation are listed only when AI access is enabled on the account, and get_usage.aiGenerationEnabled reports that status.

Is magic-mcp free?

magic-mcp has a free plan, with paid plans for more usage or features. Paid plans start at $6 a month.

What are the best alternatives to magic-mcp?

The closest alternatives to magic-mcp are Magic Cloud, affectUI, awesome-mcp-servers, Aicanvas and Codemagic MCP by usefulapi.

Where this comes from

  • Description: written from the project's README and the project's website.

How AIPoweredBot checks servers