its-just-ui MCP Server
Enables AI-powered generation, customization, and documentation of its-just-ui React components. Provides tools for component generation, theme management, form creation, responsive layouts, and accessibility guidance.
README
MCP its-just-ui Server for Cursor
A Model Context Protocol (MCP) server optimized for Cursor IDE, enabling AI-powered generation, customization, and documentation of its-just-ui React components directly in your editor.
🎯 Why Use This in Cursor?
- Native MCP Support: Cursor has built-in support for MCP servers via stdio
- AI-Powered Component Generation: Generate complete its-just-ui components with a simple prompt
- Contextual Awareness: The AI understands your project structure and existing code
- Zero Configuration: Works out of the box with minimal setup
Table of Contents
- 🚀 Quick Start for Cursor
- ⚙️ Cursor Configuration
- 🛠️ Available Tools in Cursor
- 💡 Cursor Usage Examples
- 📚 Alternative: Claude Desktop
- Development
- Troubleshooting
- License
🚀 Quick Start for Cursor
Option 1: NPM Package (Recommended)
# Simply add to your Cursor config - no installation needed!
# Cursor will handle everything via npx
Option 2: Local Development
# Clone and build
git clone https://github.com/its-just-ui/its-just-mcp.git
cd its-just-mcp
npm install && npm run build
⚙️ Cursor Configuration
Step 1: Create MCP Configuration
Project-Level (Recommended)
Create .cursor/mcp.json in your React project root:
{
"mcpServers": {
"its-just-ui": {
"command": "npx",
"args": ["-y", "its-just-mcp"],
"env": {}
}
}
}
Global Configuration (All Projects)
Create ~/.cursor/mcp.json:
{
"mcpServers": {
"its-just-ui": {
"command": "npx",
"args": ["-y", "its-just-mcp"],
"env": {}
}
}
}
Local Development Setup
If you're developing the MCP server locally:
{
"mcpServers": {
"its-just-ui": {
"command": "node",
"args": ["/absolute/path/to/its-just-mcp/dist/index.js"],
"env": {}
}
}
}
Step 2: Restart Cursor
After adding the configuration, restart Cursor to load the MCP server.
Step 3: Verify Installation
In Cursor, you can ask the AI:
- "What MCP tools are available?"
- "Generate a Button component using its-just-ui"
🎨 Cursor-Specific Features
Inline Component Generation
Ask Cursor AI to generate components directly in your code:
"Add a primary button with loading state here"
"Create a card grid layout with 3 columns"
"Generate a login form with validation"
Context-Aware Suggestions
The MCP server understands your project context:
- Existing theme configuration
- Component usage patterns
- Project structure
Quick Commands in Cursor
- Generate:
⌘+K→ "Generate [component] with [props]" - Document:
⌘+K→ "Document this its-just-ui component" - Theme:
⌘+K→ "Configure dark theme for its-just-ui" - Form:
⌘+K→ "Create a contact form with validation"
🛠️ Available Tools in Cursor
Component Generation
| Tool | Cursor Command Example | Description |
|---|---|---|
generate_component |
"Generate a primary button" | Create any its-just-ui component |
list_components |
"Show me all form components" | Browse available components |
compose_components |
"Create a card grid layout" | Compose multiple components |
Theme & Styling
| Tool | Cursor Command Example | Description |
|---|---|---|
configure_theme |
"Set up dark mode theme" | Configure ThemeProvider |
generate_tailwind_classes |
"Generate spacing utilities" | Create Tailwind utility classes |
create_responsive_layout |
"Make a responsive grid" | Build responsive layouts |
Forms & Documentation
| Tool | Cursor Command Example | Description |
|---|---|---|
create_form |
"Build a contact form" | Generate complete forms |
get_component_docs |
"Show Button documentation" | Get component docs |
check_accessibility |
"Check Dialog accessibility" | Review ARIA attributes |
💡 Cursor Usage Examples
Example 1: Generate a Component
In Cursor, simply type ⌘+K and ask:
"Generate a primary button with loading state"
The AI will use the MCP server to generate:
<Button variant="primary" loading={true}>
Processing...
</Button>
Example 2: Create a Complete Form
"Create a login form with email and password validation"
Result:
<form onSubmit={handleSubmit}>
<Input
type="email"
name="email"
label="Email"
required
placeholder="Enter your email"
/>
<Input
type="password"
name="password"
label="Password"
required
minLength={8}
/>
<Button type="submit" variant="primary">
Login
</Button>
</form>
Example 3: Configure Theme
"Set up a dark theme with blue primary color"
Result:
<ThemeProvider
theme={{
mode: "dark",
colors: {
primary: "#3b82f6",
secondary: "#64748b"
}
}}
>
{children}
</ThemeProvider>
📚 Alternative: Claude Desktop
While this server is optimized for Cursor, it also works with Claude Desktop:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"its-just-ui": {
"command": "npx",
"args": ["-y", "its-just-mcp"],
"env": {}
}
}
}
Development
# Install dependencies
npm install
# Run in development mode
npm run dev
# Build for production
npm run build
# Run tests
npm test
Linting & Formatting
# ESLint
npm run lint
# Prettier
npm run format
Testing
# Jest
npm test
# Watch mode
npm run test:watch
# Coverage
npm run test:coverage
Project Structure
its-just-mcp/
├── src/
│ ├── index.ts # Main server entry point
│ ├── components/
│ │ └── registry.ts # Component definitions and metadata
│ └── tools/
│ ├── componentGenerator.ts # Component generation logic
│ ├── themeManager.ts # Theme configuration tools
│ ├── utilityTools.ts # Utility and layout tools
│ └── documentationTools.ts # Documentation and accessibility
├── dist/ # Compiled output
├── package.json
├── tsconfig.json
└── README.md
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Recommended steps:
- Fork the repo and create a feature branch
- Add tests for new behavior
- Run lint and tests locally
- Open a PR with a clear description and examples
License
MIT
Support
For issues or questions, please open an issue on GitHub or contact the maintainers.
Related Links
- Cursor IDE - The AI-first code editor
- Cursor MCP Documentation
- its-just-ui Library
- its-just-ui on npm
- MCP SDK Documentation
Troubleshooting
Cursor-Specific Issues
| Issue | Solution |
|---|---|
| MCP tools not available | 1. Restart Cursor<br>2. Check .cursor/mcp.json is valid JSON<br>3. Verify the server path is correct |
| "Command not found: npx" | Install Node.js 18+ and npm |
| Server not responding | 1. Check Cursor Console (View → Output → MCP)<br>2. Try local installation instead of npx |
| Tools not showing in AI | Ask "What MCP tools are available?" to refresh |
Common Fixes
# Verify Node version (needs 18+)
node --version
# For local development, rebuild
cd /path/to/its-just-mcp
npm run build
# Check MCP config is valid JSON
cat .cursor/mcp.json | jq .
# Clear npm cache if npx fails
npm cache clean --force
Getting Help
- Check Cursor Console:
View → Output → MCP - Cursor MCP Docs: https://cursor-docs.apidog.io/model-context-protocol
- Open an issue: https://github.com/its-just-ui/its-just-mcp/issues
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。