@elsahafy/ux-mcp-server 2.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +159 -18
- package/dist/index.js +2130 -8
- package/knowledge/ai-ml-patterns.json +192 -0
- package/knowledge/analytics-metrics.json +521 -0
- package/knowledge/angular-patterns.json +347 -0
- package/knowledge/ar-vr-interfaces.json +139 -0
- package/knowledge/color-theory.json +499 -0
- package/knowledge/data-viz.json +527 -0
- package/knowledge/design-system-advanced.json +533 -0
- package/knowledge/ecommerce-patterns.json +616 -0
- package/knowledge/ethical-design.json +484 -0
- package/knowledge/finance-ux.json +208 -0
- package/knowledge/forms.json +641 -0
- package/knowledge/haptic-feedback.json +102 -0
- package/knowledge/healthcare-ux.json +209 -0
- package/knowledge/information-architecture.json +494 -0
- package/knowledge/microcopy.json +743 -0
- package/knowledge/mobile-patterns.json +537 -0
- package/knowledge/neurodiversity.json +228 -0
- package/knowledge/pwa-patterns.json +429 -0
- package/knowledge/saas-patterns.json +613 -0
- package/knowledge/testing-validation.json +561 -0
- package/knowledge/typography.json +509 -0
- package/knowledge/voice-ui.json +359 -0
- package/knowledge/vue-patterns.json +279 -0
- package/knowledge/web-components.json +148 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
# UX MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@elsahafy/ux-mcp-server)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
6
|
+
Model Context Protocol server that provides comprehensive UX best practices, accessibility guidelines (WCAG), usability heuristics (Nielsen), UI patterns, performance optimization, SEO, internationalization, animation, and React patterns to AI assistants.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
### npm (Recommended)
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install -g @elsahafy/ux-mcp-server
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### npx (No Installation)
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npx @elsahafy/ux-mcp-server
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### From Source
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
git clone https://github.com/elsahafy/ux-mcp-server.git
|
|
26
|
+
cd ux-mcp-server
|
|
27
|
+
npm install
|
|
28
|
+
npm run build
|
|
29
|
+
```
|
|
4
30
|
|
|
5
31
|
## Features
|
|
6
32
|
|
|
7
|
-
### 📚 Resources (
|
|
33
|
+
### 📚 Resources (12 Knowledge Bases)
|
|
8
34
|
|
|
9
35
|
Access comprehensive UX knowledge bases:
|
|
10
36
|
|
|
@@ -15,10 +41,15 @@ Access comprehensive UX knowledge bases:
|
|
|
15
41
|
- **ux://responsive/design** - Responsive design & mobile-first principles
|
|
16
42
|
- **ux://themes/dark-mode** - Dark mode implementation guide
|
|
17
43
|
- **ux://content/error-messages** - User-friendly error message library
|
|
44
|
+
- **ux://performance/optimization** - Core Web Vitals & performance best practices
|
|
45
|
+
- **ux://seo/guidelines** - SEO best practices, meta tags, structured data
|
|
46
|
+
- **ux://i18n/patterns** - Internationalization & localization patterns
|
|
47
|
+
- **ux://animation/motion** - Motion design principles & accessibility
|
|
48
|
+
- **ux://react/patterns** - Advanced React patterns & state management
|
|
18
49
|
|
|
19
|
-
### 🛠️ Tools (Dynamic Operations)
|
|
50
|
+
### 🛠️ Tools (11 Dynamic Operations)
|
|
20
51
|
|
|
21
|
-
|
|
52
|
+
Powerful tools for UX analysis and generation:
|
|
22
53
|
|
|
23
54
|
1. **analyze_accessibility** - Check code for WCAG violations
|
|
24
55
|
2. **review_usability** - Evaluate against Nielsen's heuristics
|
|
@@ -28,6 +59,9 @@ Eight powerful tools for UX analysis and generation:
|
|
|
28
59
|
6. **check_contrast** - Verify WCAG color contrast ratios
|
|
29
60
|
7. **check_responsive** - Analyze mobile-first and responsive design
|
|
30
61
|
8. **suggest_error_message** - Get user-friendly error messages
|
|
62
|
+
9. **analyze_performance** - Check code for performance issues & Core Web Vitals
|
|
63
|
+
10. **check_seo** - Analyze HTML for SEO best practices
|
|
64
|
+
11. **suggest_animation** - Recommend animations for UI interactions
|
|
31
65
|
|
|
32
66
|
### 💬 Prompts (Pre-configured Reviews)
|
|
33
67
|
|
|
@@ -37,22 +71,29 @@ Three comprehensive review workflows:
|
|
|
37
71
|
2. **usability_audit** - Complete Nielsen heuristics evaluation
|
|
38
72
|
3. **design_system_setup** - Guide for creating design systems
|
|
39
73
|
|
|
40
|
-
##
|
|
74
|
+
## Usage with Claude Desktop
|
|
41
75
|
|
|
42
|
-
|
|
43
|
-
# Install dependencies
|
|
44
|
-
npm install
|
|
76
|
+
After installing via npm, add to your Claude Desktop config file.
|
|
45
77
|
|
|
46
|
-
|
|
47
|
-
npm run build
|
|
78
|
+
### Configuration
|
|
48
79
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
80
|
+
**Location of config file:**
|
|
81
|
+
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
82
|
+
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
52
83
|
|
|
53
|
-
|
|
84
|
+
**If installed globally via npm:**
|
|
54
85
|
|
|
55
|
-
|
|
86
|
+
```json
|
|
87
|
+
{
|
|
88
|
+
"mcpServers": {
|
|
89
|
+
"ux-best-practices": {
|
|
90
|
+
"command": "ux-mcp-server"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**If installed from source:**
|
|
56
97
|
|
|
57
98
|
```json
|
|
58
99
|
{
|
|
@@ -60,18 +101,20 @@ Add to your Claude Desktop config (`claude_desktop_config.json`):
|
|
|
60
101
|
"ux-best-practices": {
|
|
61
102
|
"command": "node",
|
|
62
103
|
"args": [
|
|
63
|
-
"/path/to/ux-mcp-server/dist/index.js"
|
|
104
|
+
"/absolute/path/to/ux-mcp-server/dist/index.js"
|
|
64
105
|
]
|
|
65
106
|
}
|
|
66
107
|
}
|
|
67
108
|
}
|
|
68
109
|
```
|
|
69
110
|
|
|
70
|
-
On Windows, the path might look like:
|
|
111
|
+
On Windows (source install), the path might look like:
|
|
71
112
|
```json
|
|
72
113
|
"C:\\Users\\YourName\\ux-mcp-server\\dist\\index.js"
|
|
73
114
|
```
|
|
74
115
|
|
|
116
|
+
After updating the config, restart Claude Desktop.
|
|
117
|
+
|
|
75
118
|
## Example Usage
|
|
76
119
|
|
|
77
120
|
### Analyze Accessibility
|
|
@@ -107,6 +150,42 @@ On Windows, the path might look like:
|
|
|
107
150
|
// Claude will use check_contrast tool
|
|
108
151
|
```
|
|
109
152
|
|
|
153
|
+
### Analyze Performance
|
|
154
|
+
|
|
155
|
+
```typescript
|
|
156
|
+
"Analyze this React component for performance issues"
|
|
157
|
+
|
|
158
|
+
// Claude will use analyze_performance tool to check:
|
|
159
|
+
// - Image optimization
|
|
160
|
+
// - CSS performance
|
|
161
|
+
// - JavaScript bundle size
|
|
162
|
+
// - Loading patterns
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Check SEO
|
|
166
|
+
|
|
167
|
+
```typescript
|
|
168
|
+
"Review this HTML page for SEO best practices"
|
|
169
|
+
|
|
170
|
+
// Claude will use check_seo tool to validate:
|
|
171
|
+
// - Meta tags (title, description)
|
|
172
|
+
// - Open Graph tags
|
|
173
|
+
// - Structured data (JSON-LD)
|
|
174
|
+
// - Canonical URLs
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Suggest Animation
|
|
178
|
+
|
|
179
|
+
```typescript
|
|
180
|
+
"What animation should I use for a button click?"
|
|
181
|
+
|
|
182
|
+
// Claude will use suggest_animation tool to recommend:
|
|
183
|
+
// - Animation type
|
|
184
|
+
// - Duration and easing
|
|
185
|
+
// - CSS/JS implementation
|
|
186
|
+
// - Accessibility considerations
|
|
187
|
+
```
|
|
188
|
+
|
|
110
189
|
## Knowledge Base Contents
|
|
111
190
|
|
|
112
191
|
### WCAG Guidelines
|
|
@@ -142,6 +221,48 @@ On Windows, the path might look like:
|
|
|
142
221
|
- Color theory
|
|
143
222
|
- Component API design
|
|
144
223
|
|
|
224
|
+
### Performance Optimization
|
|
225
|
+
- Core Web Vitals (LCP, INP, CLS)
|
|
226
|
+
- Image optimization strategies
|
|
227
|
+
- CSS performance
|
|
228
|
+
- JavaScript bundle optimization
|
|
229
|
+
- Lazy loading & code splitting
|
|
230
|
+
- Caching strategies
|
|
231
|
+
- Performance budgets
|
|
232
|
+
|
|
233
|
+
### SEO Best Practices
|
|
234
|
+
- Meta tags (title, description, keywords)
|
|
235
|
+
- Open Graph protocol
|
|
236
|
+
- Twitter Cards
|
|
237
|
+
- Structured data (JSON-LD, Schema.org)
|
|
238
|
+
- Technical SEO (robots.txt, sitemap, canonical)
|
|
239
|
+
- Local SEO & rich snippets
|
|
240
|
+
|
|
241
|
+
### Internationalization (i18n)
|
|
242
|
+
- Text direction (LTR/RTL support)
|
|
243
|
+
- Locale-aware formatting (dates, numbers, currencies)
|
|
244
|
+
- Translation patterns
|
|
245
|
+
- Cultural considerations
|
|
246
|
+
- Font and character set handling
|
|
247
|
+
- URL structures for multilingual sites
|
|
248
|
+
|
|
249
|
+
### Animation & Motion Design
|
|
250
|
+
- Disney's 12 principles of animation
|
|
251
|
+
- Timing and easing functions
|
|
252
|
+
- Motion design principles
|
|
253
|
+
- Performance (GPU acceleration)
|
|
254
|
+
- Accessibility (prefers-reduced-motion)
|
|
255
|
+
- Common UI animation patterns
|
|
256
|
+
|
|
257
|
+
### React Patterns
|
|
258
|
+
- Compound components
|
|
259
|
+
- Custom hooks
|
|
260
|
+
- State management strategies
|
|
261
|
+
- Performance optimization (memoization, code splitting)
|
|
262
|
+
- Error boundaries
|
|
263
|
+
- Accessibility patterns in React
|
|
264
|
+
- Testing best practices
|
|
265
|
+
|
|
145
266
|
## Development
|
|
146
267
|
|
|
147
268
|
```bash
|
|
@@ -166,6 +287,13 @@ All examples and guidelines are framework-agnostic, focusing on:
|
|
|
166
287
|
|
|
167
288
|
Works with React, Vue, Svelte, Angular, or vanilla JavaScript.
|
|
168
289
|
|
|
290
|
+
## What's New in v2.0.0
|
|
291
|
+
|
|
292
|
+
- ✨ 5 new knowledge resources: Performance, SEO, i18n, Animation, React Patterns
|
|
293
|
+
- 🛠️ 3 new tools: analyze_performance, check_seo, suggest_animation
|
|
294
|
+
- 📦 Total: 12 resources, 11 tools, 3 prompts
|
|
295
|
+
- 🚀 Published to npm for easy installation
|
|
296
|
+
|
|
169
297
|
## Contributing
|
|
170
298
|
|
|
171
299
|
To add new patterns or guidelines:
|
|
@@ -173,6 +301,8 @@ To add new patterns or guidelines:
|
|
|
173
301
|
1. Add content to appropriate file in `knowledge/` directory
|
|
174
302
|
2. Update tool implementations in `src/index.ts` if needed
|
|
175
303
|
3. Rebuild: `npm run build`
|
|
304
|
+
4. Test locally: `npm run dev`
|
|
305
|
+
5. Submit a pull request
|
|
176
306
|
|
|
177
307
|
## License
|
|
178
308
|
|
|
@@ -184,7 +314,18 @@ MIT
|
|
|
184
314
|
- Nielsen's Usability Heuristics by Jakob Nielsen
|
|
185
315
|
- UI Patterns from established design systems and best practices
|
|
186
316
|
- Design Token concepts from design system community
|
|
317
|
+
- Core Web Vitals from Google Web.dev
|
|
318
|
+
- SEO best practices from Google Search Central
|
|
319
|
+
- Animation principles from Disney and Material Design
|
|
320
|
+
- React patterns from React community and best practices
|
|
321
|
+
- i18n standards from Unicode CLDR and W3C
|
|
322
|
+
|
|
323
|
+
## Links
|
|
324
|
+
|
|
325
|
+
- **npm Package**: https://www.npmjs.com/package/@elsahafy/ux-mcp-server
|
|
326
|
+
- **GitHub Repository**: https://github.com/elsahafy/ux-mcp-server
|
|
327
|
+
- **Issues & Feedback**: https://github.com/elsahafy/ux-mcp-server/issues
|
|
187
328
|
|
|
188
329
|
---
|
|
189
330
|
|
|
190
|
-
**Built for AI-assisted development with accessibility and
|
|
331
|
+
**Built for AI-assisted development with accessibility, usability, performance, and SEO as first-class citizens.**
|