{"id":26570851,"url":"https://github.com/21st-dev/magic-mcp","last_synced_at":"2026-01-18T04:36:39.674Z","repository":{"id":278389998,"uuid":"935450522","full_name":"21st-dev/magic-mcp","owner":"21st-dev","description":"It's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic","archived":false,"fork":false,"pushed_at":"2025-12-23T10:29:14.000Z","size":1520,"stargazers_count":4036,"open_issues_count":20,"forks_count":273,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-12-24T02:37:25.155Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://21st.dev/magic","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/21st-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-19T13:17:50.000Z","updated_at":"2025-12-24T01:36:47.000Z","dependencies_parsed_at":"2025-04-07T07:21:49.191Z","dependency_job_id":"ef2ed510-933b-4326-b94e-fdd96ad73da9","html_url":"https://github.com/21st-dev/magic-mcp","commit_stats":null,"previous_names":["21st-dev/magic-mcp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/21st-dev/magic-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/21st-dev%2Fmagic-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/21st-dev%2Fmagic-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/21st-dev%2Fmagic-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/21st-dev%2Fmagic-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/21st-dev","download_url":"https://codeload.github.com/21st-dev/magic-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/21st-dev%2Fmagic-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28529870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-22T22:19:18.543Z","updated_at":"2026-01-18T04:36:39.662Z","avatar_url":"https://github.com/21st-dev.png","language":"TypeScript","readme":"# 21st.dev Magic AI Agent\n\n![MCP Banner](https://21st.dev/magic-agent-og-image.png)\n\nMagic Component Platform (MCP) is a powerful AI-driven tool that helps developers create beautiful, modern UI components instantly through natural language descriptions. It integrates seamlessly with popular IDEs and provides a streamlined workflow for UI development.\n\n## 🌟 Features\n\n- **AI-Powered UI Generation**: Create UI components by describing them in natural language\n- **Multi-IDE Support**:\n  - [Cursor](https://cursor.com) IDE integration\n  - [Windsurf](https://windsurf.ai) support\n  - [VSCode](https://code.visualstudio.com/) support\n  - [VSCode + Cline](https://cline.bot) integration (Beta)\n- **Modern Component Library**: Access to a vast collection of pre-built, customizable components inspired by [21st.dev](https://21st.dev)\n- **Real-time Preview**: Instantly see your components as you create them\n- **TypeScript Support**: Full TypeScript support for type-safe development\n- **SVGL Integration**: Access to a vast collection of professional brand assets and logos\n- **Component Enhancement**: Improve existing components with advanced features and animations (Coming Soon)\n\n## 🎯 How It Works\n\n1. **Tell Agent What You Need**\n\n   - In your AI Agent's chat, just type `/ui` and describe the component you're looking for\n   - Example: `/ui create a modern navigation bar with responsive design`\n\n2. **Let Magic Create It**\n\n   - Your IDE prompts you to use Magic\n   - Magic instantly builds a polished UI component\n   - Components are inspired by 21st.dev's library\n\n3. **Seamless Integration**\n   - Components are automatically added to your project\n   - Start using your new UI components right away\n   - All components are fully customizable\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n- Node.js (Latest LTS version recommended)\n- One of the supported IDEs:\n  - Cursor\n  - Windsurf\n  - VSCode (with Cline extension)\n\n### Installation\n\n1. **Generate API Key**\n\n   - Visit [21st.dev Magic Console](https://21st.dev/magic/console)\n   - Generate a new API key\n\n2. **Choose Installation Method**\n\n#### Method 1: CLI Installation (Recommended)\n\nOne command to install and configure MCP for your IDE:\n\n```bash\nnpx @21st-dev/cli@latest install \u003cclient\u003e --api-key \u003ckey\u003e\n```\n\nSupported clients: cursor, windsurf, cline, claude\n\n#### Method 2: Manual Configuration\n\nIf you prefer manual setup, add this to your IDE's MCP config file:\n\n```json\n{\n  \"mcpServers\": {\n    \"@21st-dev/magic\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@21st-dev/magic@latest\", \"API_KEY=\\\"your-api-key\\\"\"]\n    }\n  }\n}\n```\n\nConfig file locations:\n\n- Cursor: `~/.cursor/mcp.json`\n- Windsurf: `~/.codeium/windsurf/mcp_config.json`\n- Cline: `~/.cline/mcp_config.json`\n- Claude: `~/.claude/mcp_config.json`\n\n#### Method 3: VS Code Installation\n\nFor one-click installation, click one of the install buttons below:\n\n[![Install with NPX in VS Code](https://img.shields.io/badge/VS_Code-NPM-0098FF?style=flat-square\u0026logo=visualstudiocode\u0026logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=%4021st-dev%2Fmagic\u0026config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%4021st-dev%2Fmagic%40latest%22%5D%2C%22env%22%3A%7B%22API_KEY%22%3A%22%24%7Binput%3AapiKey%7D%22%7D%7D\u0026inputs=%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22apiKey%22%2C%22description%22%3A%2221st.dev+Magic+API+Key%22%2C%22password%22%3Atrue%7D%5D) [![Install with NPX in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-NPM-24bfa5?style=flat-square\u0026logo=visualstudiocode\u0026logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=%4021st-dev%2Fmagic\u0026config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%4021st-dev%2Fmagic%40latest%22%5D%2C%22env%22%3A%7B%22API_KEY%22%3A%22%24%7Binput%3AapiKey%7D%22%7D%7D\u0026inputs=%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22apiKey%22%2C%22description%22%3A%2221st.dev+Magic+API+Key%22%2C%22password%22%3Atrue%7D%5D\u0026quality=insiders)\n\n##### Manual VS Code Setup\n\nFirst, check the install buttons above for one-click installation. For manual setup:\n\nAdd the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing `Ctrl + Shift + P` and typing `Preferences: Open User Settings (JSON)`:\n\n```json\n{\n  \"mcp\": {\n    \"inputs\": [\n      {\n        \"type\": \"promptString\",\n        \"id\": \"apiKey\",\n        \"description\": \"21st.dev Magic API Key\",\n        \"password\": true\n      }\n    ],\n    \"servers\": {\n      \"@21st-dev/magic\": {\n        \"command\": \"npx\",\n        \"args\": [\"-y\", \"@21st-dev/magic@latest\"],\n        \"env\": {\n          \"API_KEY\": \"${input:apiKey}\"\n        }\n      }\n    }\n  }\n}\n```\n\nOptionally, you can add it to a file called `.vscode/mcp.json` in your workspace:\n\n```json\n{\n  \"inputs\": [\n    {\n      \"type\": \"promptString\",\n      \"id\": \"apiKey\",\n      \"description\": \"21st.dev Magic API Key\",\n      \"password\": true\n    }\n  ],\n  \"servers\": {\n    \"@21st-dev/magic\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@21st-dev/magic@latest\"],\n      \"env\": {\n        \"API_KEY\": \"${input:apiKey}\"\n      }\n    }\n  }\n}\n```\n\n## ❓ FAQ\n\n### How does Magic AI Agent handle my codebase?\n\nMagic AI Agent only writes or modifies files related to the components it generates. It follows your project's code style and structure, and integrates seamlessly with your existing codebase without affecting other parts of your application.\n\n### Can I customize the generated components?\n\nYes! All generated components are fully editable and come with well-structured code. You can modify the styling, functionality, and behavior just like any other React component in your codebase.\n\n### What happens if I run out of generations?\n\nIf you exceed your monthly generation limit, you'll be prompted to upgrade your plan. You can upgrade at any time to continue generating components. Your existing components will remain fully functional.\n\n### How soon do new components get added to 21st.dev's library?\n\nAuthors can publish components to 21st.dev at any time, and Magic Agent will have immediate access to them. This means you'll always have access to the latest components and design patterns from the community.\n\n### Is there a limit to component complexity?\n\nMagic AI Agent can handle components of varying complexity, from simple buttons to complex interactive forms. However, for best results, we recommend breaking down very complex UIs into smaller, manageable components.\n\n## 🛠️ Development\n\n### Project Structure\n\n```\nmcp/\n├── app/\n│   └── components/     # Core UI components\n├── types/             # TypeScript type definitions\n├── lib/              # Utility functions\n└── public/           # Static assets\n```\n\n### Key Components\n\n- `IdeInstructions`: Setup instructions for different IDEs\n- `ApiKeySection`: API key management interface\n- `WelcomeOnboarding`: Onboarding flow for new users\n\n## 🤝 Contributing\n\nWe welcome contributions! Please join our [Discord community](https://discord.gg/Qx4rFunHfm) and provide feedback to help improve Magic Agent. The source code is available on [GitHub](https://github.com/serafimcloud/21st).\n\n## 👥 Community \u0026 Support\n\n- [Discord Community](https://discord.gg/Qx4rFunHfm) - Join our active community\n- [Twitter](https://x.com/serafimcloud) - Follow us for updates\n\n## ⚠️ Beta Notice\n\nMagic Agent is currently in beta. All features are free during this period. We appreciate your feedback and patience as we continue to improve the platform.\n\n## 📝 License\n\nMIT License\n\n## 🙏 Acknowledgments\n\n- Thanks to our beta testers and community members\n- Special thanks to the Cursor, Windsurf, and Cline teams for their collaboration\n- Integration with [21st.dev](https://21st.dev) for component inspiration\n- [SVGL](https://svgl.app) for logo and brand asset integration\n\n---\n\nFor more information, join our [Discord community](https://discord.gg/Qx4rFunHfm) or visit [21st.dev/magic](https://21st.dev/magic).\n","funding_links":[],"categories":["Developer Tools","AI Integration MCP Servers","MCP 服务器精选列表","📚 Projects (1974 total)","TypeScript","Production-Ready Servers","Other Tools and Integrations","Legend","پیاده‌سازی‌های سرور","官方 MCP 服务器列表","Official Servers","MCP Servers","HarmonyOS","Content Creation","Uncategorized","MCP Clients","🌐 Web Development","MCP Ecosystem","Table of Contents","🗂️ Extensions by Category"],"sub_categories":["Design \u0026 UI","💻 开发与代码执行","MCP Servers","How to Submit","💻 \u003ca name=\"developer-tools\"\u003e\u003c/a\u003eDeveloper Tools","💻 \u003ca name=\"developer-tools\"\u003e\u003c/a\u003eابزارهای توسعه‌دهنده","💻 Developer Tools","Windows Manager","Uncategorized","IDE Extensions \u0026 Code Assistants","Servers","Developer Tools","⚙️ Development Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F21st-dev%2Fmagic-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F21st-dev%2Fmagic-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F21st-dev%2Fmagic-mcp/lists"}