# magic-mcp

> magic-mcp is a freemium MCP server for developer tools. MCP server giving AI coding agents search and install access to 21st's React component. It is available on API, CLI, vscode and Web.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $6 a month
- **Platforms:** API, CLI, vscode, Web
- **Website:** https://21st.dev/mcp
- **Repository:** https://github.com/21st-dev/magic-mcp
- **GitHub stars:** 6,580
- **License:** ISC
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

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.

## Features

- **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

## 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.

## Alternatives

- [Magic Cloud](https://ai-powered.com/mcp/magic-cloud): Magic Cloud is a freemium MCP server for databases.
- [affectUI](https://ai-powered.com/mcp/affectui): affectUI is a freemium MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [Aicanvas](https://ai-powered.com/mcp/aicanvas): Aicanvas is a freemium MCP server for design and media.
- [Codemagic MCP by usefulapi](https://ai-powered.com/mcp/codemagic-mcp-by-usefulapi): Codemagic MCP by usefulapi is a freemium MCP server for developer tools.
- [Allmcps Server](https://ai-powered.com/mcp/allmcps-server): Allmcps Server is a freemium MCP server for community directories.
- [MCPfinder - MCP Server Discovery](https://ai-powered.com/mcp/mcpfinder-mcp-server-discovery): MCPfinder - MCP Server Discovery is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers): awesome-mcp-servers is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/magic-mcp
