Magic MCP
by 21st-dev
Generates and searches UI components through the 21st MCP, with legacy Magic compatibility and API-key authentication.
Install Magic MCP
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"21st-dev-magic-mcp": {
"command": "npx",
"args": [
"-y",
"@21st-dev/cli@latest"
],
"env": {
"TWENTY_FIRST_API_KEY": "YOUR_VALUE_HERE",
"API_KEY_21ST": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
We couldn’t confirm it starts correctly
We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.
npx -y @21st-dev/cli@latestNo response to initialize.
This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1mo ago.
Overview
Use cases
- Search 21st.dev components for an interface
- Generate UI components with design variants
- Find themes, templates, or logo assets
- Retrieve eligible component code
- Browse shared team libraries and bookmarks
Key features
- UI component generation
- Component, theme, and template search
- Design inspiration lookup
- Generated UI variants
- Legacy Magic tool-name compatibility
- Hosted MCP forwarding over stdio
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 7d ago via OSV.dev · @21st-dev/cli@latest (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Magic MCP works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Magic MCP
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/21st-dev-magic-mcp)<a href="https://allmcps.com/mcp/21st-dev-magic-mcp"><img src="https://allmcps.com/api/badge/21st-dev-magic-mcp?style=directory" alt="Magic MCP on AllMCPs" /></a>