Generates and displays UI component designs using Bootstrap framework, allowing users to visually compare and select from multiple design variations
Generates and displays UI component designs using Bulma framework, allowing users to visually compare and select from multiple design variations
Generates and displays UI component designs using plain CSS or inline styles, allowing users to visually compare and select from multiple design variations
Generates and displays UI component designs using Semantic UI framework, allowing users to visually compare and select from multiple design variations
Generates and displays UI component designs using Tailwind CSS framework, allowing users to visually compare and select from multiple design variations
Rakit UI AI - MCP Design Selection Tool
An intelligent UI component design selection tool built on the Model Context Protocol (MCP). This tool allows AI assistants to present multiple UI component designs in a browser interface for user selection. NEW: Now includes AI-powered design generation using MiniMax-M2.1 API!
Quick Start
Install Rakit UI AI globally and start using it immediately:
The tool will start an MCP server that you can connect to from your AI assistant (like Claude Desktop, Cursor IDE, etc.).
AI-Powered Design Generation
NEW FEATURE: Rakit UI AI now includes AI-powered design generation using MiniMax-M2.1! Simply describe what you need in natural language, and the tool will generate 3 distinct, production-ready designs for you to choose from.
Setup
Get your MiniMax API key from platform.minimax.io
Set the environment variable:
export MINIMAX_API_KEY="your-api-key-here"That's it! The tool will automatically use the MiniMax API when you provide a prompt.
Usage with AI Generation
The tool will:
Call MiniMax-M2.1 with your prompt
Generate 3 distinct design variations
Open them in your browser for selection
Return your chosen design with full HTML code
Using in IDEs
Cursor IDE Setup
Option 1: Settings UI (Recommended)
Open Cursor Settings:
Press
Cmd+,(Mac) orCtrl+,(Windows/Linux)Or click the settings icon in the bottom-left corner
Navigate to MCP Settings:
In the left sidebar, click on "MCP" (or search for "MCP" in the search bar)
Add Rakit UI AI:
Click the "Add New MCP Server" button
Enter the following:
Server Name:
rakitui-aiCommand:
rakitui-aiEnvironment Variables (optional): Add
MINIMAX_API_KEYif you want AI-powered generation
Restart Cursor:
Close and reopen Cursor, or click the "Restart MCP Servers" button if available
Start Using:
The tool will be available as
mcp_rakit-ui-ai_designselectionAsk Claude: "Show me 3 different button designs"
Or: "Create a card component for a user profile"
Option 2: JSON Configuration File
Open Cursor Settings:
Press
Cmd+,(Mac) orCtrl+,(Windows/Linux)Click the settings icon and select "Open Settings (JSON)" (or search for "MCP" and click "Edit in JSON")
Add the MCP Server: Add this to your
settings.jsonfile:{ "mcpServers": { "rakitui-ai": { "command": "rakitui-ai" } } }With MiniMax API Key (optional - for AI generation):
{ "mcpServers": { "rakitui-ai": { "command": "rakitui-ai", "env": { "MINIMAX_API_KEY": "your-api-key-here" } } } }Save and Restart:
Save the file (
Cmd+SorCtrl+S)Restart Cursor
How to Use in Cursor
Once configured, you can use the tool in the Cursor chat:
Example 1 - AI Generation (with MiniMax API):
Example 2 - Manual Input:
Available Commands:
Keyboard shortcuts: Press
1,2, or3to select a designZoom: Click on any design to see it larger
Copy code: Click the copy button to copy the HTML
Troubleshooting Cursor Setup
Problem: "Command not found" or "rakitui-ai not found"
Solution:
If installed globally, make sure npm global bin is in your PATH
Or use the full path:
/usr/local/bin/rakitui-ai(Mac) orC:\Users\[you]\AppData\Roaming\npm\rakitui-ai.cmd(Windows)For local development, use the full path to your project:
/path/to/rakitui-ai/dist/index.js
Problem: Tool not appearing in chat
Solution:
Restart Cursor completely
Check that the MCP server is running (look for green indicator in MCP settings)
Try removing and re-adding the server
Problem: MiniMax API not working
Solution:
Verify your API key is correct
Ensure
MINIMAX_API_KEYenvironment variable is setCheck your MiniMax account has credits available
Claude Desktop Setup
Add to MCP Configuration: Edit your Claude Desktop config file (
~/Library/Application Support/Claude/claude_desktop_config.jsonon macOS):{ "mcpServers": { "rakitui-ai": { "command": "rakitui-ai" } } }Restart Claude Desktop and start using the design selection tool
Other IDEs
For any IDE that supports MCP:
Use command:
rakitui-aiThe tool will be available as
mcp_rakit-ui-ai_designselection
Installation Options
Option 1: Global Installation (Recommended)
Option 2: Local Development
Features
Core Functionality
Visual Design Comparison: Display three UI component designs side-by-side in a modern, responsive interface
Real-time Selection: WebSocket support for instant feedback when a design is selected
Enhanced Response Data: Returns not just the selection, but also the HTML code and metadata
AI-Powered Generation (NEW): Generate designs from natural language prompts using MiniMax-M2.1
User Experience Improvements
Keyboard Shortcuts: Press 1, 2, or 3 for quick selection
Click to Zoom: Click on any design to see it in a larger view
Code Preview: Toggle between visual and code view for each design
Copy to Clipboard: One-click copy of design HTML code
Mobile Responsive: Works seamlessly on all device sizes
Smooth Animations: Polished UI with fade-ins, slides, and transitions
Technical Features
WebSocket Communication: Real-time bidirectional communication replaces polling
Security: Basic XSS prevention and input validation
Connection Status: Visual indicator showing WebSocket connection state
Local Storage: Remembers last selection for reference
Error Handling: Graceful error recovery with user feedback
MiniMax API Integration: AI-powered design generation with token usage tracking
Supported CSS Frameworks
Tailwind CSS
Bootstrap
Bulma
Foundation
Semantic UI
Plain CSS / Inline styles
Supported Component Types
Buttons (primary, secondary, outlined, with icons)
Cards (content, featured, compact)
Form Inputs (underlined, bordered, filled)
Navigation Bars (standard, centered, full-featured)
Modal Dialogs (standard, confirmation, form)
Data Tables (simple, striped, data-dense)
Usage
Two Ways to Use Rakit UI AI
Option 1: AI-Powered Generation (NEW!)
Describe what you need, and MiniMax-M2.1 will generate 3 distinct designs:
Example Prompts:
"Create 3 button designs for a SaaS dashboard"
"Design a login form with email and password fields"
"Show me 3 navigation bar styles for an e-commerce site"
"Create a pricing card with monthly and yearly options"
"Design a modal dialog for user confirmation"
Option 2: Manual Design Input
Provide your own pre-generated designs:
That's it! The tool automatically:
Detects CSS frameworks (Tailwind, Bootstrap, etc.)
Adapts layout based on component complexity
Provides click-to-zoom and keyboard shortcuts
Shows beautiful, isolated previews
Returns the selected design with full details
Generates designs from prompts using AI (when prompt is provided)
How to Use in Practice
Once configured in your IDE, simply ask your AI assistant to create design options:
Example prompts:
"Show me 3 different card designs for a user profile"
"Create 3 navigation bar options with different styles"
"Give me 3 button variants: primary, secondary, and outlined"
"Show me 3 different pricing table designs"
What happens:
If you provide a prompt, the AI generates 3 different designs
If you provide designs directly, those are used
Tool opens in your browser automatically
You see all designs side-by-side
Click your favorite (or press 1, 2, 3)
AI gets your choice and can continue with that design
Features at a Glance
Feature | Description |
šÆ Smart Layout | Gallery view for complex components, card view for simple ones |
š”ļø CSS Isolation | No style conflicts between different frameworks |
š± Mobile Ready | Touch-friendly interface with responsive design |
āØļø Keyboard Shortcuts | Press 1, 2, or 3 for instant selection |
š Zoom View | Click any design to see it larger |
š Copy Code | One-click copy of selected HTML |
Manual MCP Server Mode
If you prefer to run the server manually (for development or custom setups):
Start the MCP server:
npx rakitui-ai # OR after global install: rakitui-aiConfigure your MCP client to connect via stdio
Use the tool: The AI can now present UI design options and receive your selections
š” Tip: For most users, the IDE configuration above is much easier than manual server mode.
Testing
Run the test script to see the tool in action:
This will:
Start the MCP server
Send a test request with three card designs
Open a browser window for selection
Display the enhanced response with selected design details
API
Tool Name: designselection
Input Parameters
AI-Powered Generation (Prompt-Based)
Parameter | Type | Description |
prompt | string | Natural language description of the UI component to generate (e.g., "Create 3 modern button designs for a SaaS dashboard") |
style_preference | string (optional) | Style guidance (e.g., "modern and clean", "playful", "minimalist") |
framework | string (optional) | Target CSS framework (tailwind, bootstrap, bulma, foundation, semantic ui, css). Defaults to "tailwind" |
component_type | string (optional) | Component type hint (button, card, form, navigation, modal, table) |
Manual Input (Legacy)
Parameter | Type | Description |
design_name_1 | string | Name of the first design |
design_html_1 | string | HTML content of the first design |
design_name_2 | string | Name of the second design |
design_html_2 | string | HTML content of the second design |
design_name_3 | string | Name of the third design |
design_html_3 | string | HTML content of the third design |
Response
MiniMax API Integration
To use the AI-powered design generation:
Get an API Key: Visit MiniMax Developer Platform to create an account and get your API key
Set Environment Variable:
export MINIMAX_API_KEY="your-api-key-here"Usage: Simply provide a
promptparameter instead of manual design HTML
Note: The API key is stored securely in your environment variable and is never logged or exposed.
Architecture
New AI Integration Layer
The MiniMax API integration adds two new modules:
minimaxClient.ts: Handles communication with MiniMax API
API endpoint: https://api.minimax.io/v1
Authentication via MINIMAX_API_KEY environment variable
Error handling and retry logic
Response parsing for design JSON
designPrompts.ts: Contains optimized prompts for different component types
System prompt establishing UI/UX expertise
Component-specific prompt templates (buttons, cards, forms, etc.)
Framework-specific guidelines (Tailwind, Bootstrap, etc.)
Design quality checklist for AI instructions
Development
Building
Debugging
Check
tmp/debug.logfor server-side logsCheck
tmp/selection.logfor selection historyBrowser console shows client-side WebSocket activity
MiniMax API calls are logged with timing and token usage
Testing MiniMax Integration
Adding New Features
Update the HTML template in
src/tools/templates/designSelection.tsAdd server-side logic in
src/tools/utils/serverUtils.tsEnhance the response format in
src/tools/DesignselectionTool.tsAdd new prompt templates in
src/tools/prompts/designPrompts.tsBuild and test your changes
Security Considerations
Input validation prevents XSS attacks
Design names are sanitized before display
Script tags and JavaScript URLs are blocked
WebSocket messages are validated
Browser Compatibility
Chrome/Edge: Full support
Firefox: Full support
Safari: Full support
Mobile browsers: Full support with touch gestures
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please read the development guidelines in .cursorrules/development-guide.mdc before submitting PRs.
šØāš» Hire Me
I'm open to work and available for new opportunities!
Hi! I'm the creator of this MCP Design Selection Tool. I specialize in building innovative developer tools, AI integrations, and modern web applications. If you're looking for someone who can:
š¤ Build AI-powered tools and MCP servers
ā” Create modern, responsive web applications
š ļø Develop developer experience tools
šØ Design intuitive user interfaces
š± Build cross-platform solutions
I'd love to hear about your project!
š§ Contact Information
Email: arissetia.m@gmail.com
Portfolio: madebyaris.com
Status: š¢ Available for hire
š¼ What I Can Help With
Custom MCP server development
AI tool integration and automation
Modern web application development
Developer experience improvements
Technical consulting and architecture
Feel free to reach out ā I'm always excited to work on interesting projects!