How does Magic AI Agent handle my codebase?
It only writes or modifies files related to the components it generates, following your project’s code style and structure without affecting other parts of your application.
@21st-dev
Basic information
It's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic
Documentation reviewed 2026-10-25
Magic MCP has moved to the unified 21st MCP. The old package now acts as a compatibility proxy rather than a separate Magic backend.
The upstream README says old Magic API keys were reset. Obtain a new key from 21st.dev/mcp and follow the current 21st client setup. If an old configuration connects but authentication fails, check the key migration before changing transports.
These notes check the linked documentation, not a live authenticated connection. Suggested checks are steps for you to run.
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"magic-mcp": {
"command": "npx",
"args": [
"@21st-dev/cli@latest",
"install",
"<client>",
"--api-key",
"<key>"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
Fetch the live tool list by running this server in a temporary sandbox using the button above.
An AI-powered MCP server that creates modern UI components from natural language descriptions. It integrates with Cursor, Windsurf, and VSCode (including Cline) to generate polished, customizable React components in your IDE.
Generate an API key at 21st.dev Magic Console, then install via one CLI command (npx @21st-dev/cli@latest install <client> --api-key <key>) or manually add an MCP config entry. In your AI Agent’s chat, type /ui followed by a description of the component you need.
It only writes or modifies files related to the components it generates, following your project’s code style and structure without affecting other parts of your application.
Yes, all generated components are fully editable with well‑structured code, just like any other React component in your project.
You will be prompted to upgrade your plan if you exceed your monthly limit. Existing components remain fully functional.
Magic AI Agent can handle components of varying complexity, from simple buttons to complex interactive forms. For best results, break very complex UIs into smaller components.
Node.js (latest LTS recommended) and one of the supported IDEs (Cursor, Windsurf, or VSCode with Cline). The server only requires an API key from 21st.dev.
MCP-native LLM councils for debates, juries, blind panels, voting, refinement, and custom multi-model deliberation.

Extract, search and tag any document — invoices, receipts, contracts, forms, or your own templates. 13 tools, one sign-in (OAuth 2.1) or API key, free FileTag tier, data residency in the EU, US, Israel or Asia.

The AI marketing canvas for Claude and MCP agents. Your agent drafts campaigns as cards on a shared board, briefed by your brand rules, approved by you.

Secure infrastructure for AI agents: sealed microVM sandboxes you can checkpoint, rewind and fork.

Verand for your site, from your AI assistant: content built on your expertise, daily Google rankings, where ChatGPT, Gemini, Perplexity and Claude cite you, and compliance checks before anything publishes.
Comments