PluginBench
MCP Server
Maintained
MIT

io.github.elsahafy/ux-mcp-server MCP Server

io.github.elsahafy/ux-mcp-server

Comprehensive UX toolkit with 28 knowledge bases, 23 analysis tools, and 4 audit workflows for accessible, usable design.

What is the io.github.elsahafy/ux-mcp-server MCP server?

The UX MCP Server is a Model Context Protocol server providing comprehensive UX best practices across 28 knowledge resources covering accessibility (WCAG), usability (Nielsen heuristics), UI patterns, design systems, performance, SEO, and emerging technologies. It exposes 23 dynamic tools for analyzing code, generating components, auditing designs, and validating UX decisions, plus 4 pre-configured audit workflows.

This server gives AI assistants like Claude and Cursor access to a complete UX reference library and analysis toolkit. Use it to audit code for accessibility violations, check color contrast, suggest UI patterns, generate wireframes, validate SEO, analyze performance, review forms, and run comprehensive UX audits across multiple dimensions—all grounded in established best practices like WCAG 2.1 AA, Nielsen's heuristics, and modern design system principles.

How to install io.github.elsahafy/ux-mcp-server

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "ux-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@elsahafy/ux-mcp-server"
      ]
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • analyze_accessibility — Check code for WCAG violations and accessibility issues
  • review_usability — Evaluate design against Nielsen's 10 usability heuristics
  • suggest_pattern — Find appropriate UI patterns for specific use cases
  • generate_component_example — Create accessible HTML/CSS component examples
  • audit_design_system — Review design token structure and system coherence
  • check_contrast — Verify WCAG color contrast ratios for foreground/background pairs
  • check_responsive — Analyze mobile-first and responsive design implementation
  • suggest_error_message — Get user-friendly error message recommendations
  • analyze_performance — Check code for performance issues and Core Web Vitals compliance
  • check_seo — Analyze HTML for SEO best practices (meta tags, structured data, etc.)
  • suggest_animation — Recommend animations for UI interactions with timing/easing
  • generate_color_palette — Create accessible color palettes from base colors
  • generate_typography_scale — Generate type scales with modular ratios
  • suggest_microcopy — Get UX writing recommendations for UI elements and labels
  • recommend_form_pattern — Find optimal form layouts and validation patterns
  • suggest_data_visualization — Choose appropriate charts and visualizations for data types
  • generate_accessibility_report — Comprehensive WCAG audit reports for pages/components
  • suggest_ab_variant — Generate A/B test variant suggestions for optimization
  • analyze_information_architecture — Evaluate navigation structure and information architecture
  • detect_dark_patterns — Identify deceptive UI practices and dark patterns

Use cases

  • Audit code for WCAG accessibility violations and generate remediation reports
  • Validate color contrast ratios and generate accessible color palettes for design systems
  • Analyze React/Vue/Angular components for performance issues and suggest optimizations
  • Review HTML pages for SEO best practices and structured data compliance
  • Design forms with optimal layouts, validation patterns, and accessible error handling
  • Generate UI pattern recommendations and accessible component examples for specific use cases

io.github.elsahafy/ux-mcp-server MCP server FAQ

What is the UX MCP Server?

It's a Model Context Protocol server that provides 28 knowledge bases covering UX best practices (WCAG, Nielsen heuristics, design systems, performance, SEO, etc.), 23 analysis and generation tools, and 4 pre-configured audit workflows. It works with Claude, Cursor, Continue.dev, Cline, and other MCP-compatible clients.

Is it free?

Yes, the UX MCP Server is open-source under the MIT license and free to use.

How do I install it in Claude Desktop?

Install via npm: `npm install -g @elsahafy/ux-mcp-server`, then add to your Claude Desktop config at `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows) with the server entry, then restart Claude.

How do I use it in Cursor?

Add the server to Cursor's MCP configuration at `~/.cursor/mcp.json` with the command `ux-mcp-server`, or configure via Cursor Settings → MCP Servers → Add Server.

Does it require authentication or API keys?

No, the UX MCP Server does not require any authentication, API keys, or external service connections. It runs locally with built-in knowledge bases and tools.

What tools can I use to analyze my design?

You can use tools like analyze_accessibility (WCAG violations), check_contrast (color ratios), check_responsive (mobile design), analyze_performance (Core Web Vitals), check_seo (meta tags/structured data), detect_dark_patterns (deceptive UX), and generate_accessibility_report (comprehensive audits).

README (reference)

Source of truth, from the repository.

UX MCP Server

npm version CI License: MIT PRs Welcome GitHub issues AgentSeal MCP

Model Context Protocol (MCP) server that provides comprehensive UX best practices covering the complete UX ecosystem: accessibility guidelines (WCAG), usability heuristics (Nielsen), UI patterns, design systems, performance optimization, SEO, internationalization, animation, framework patterns (React/Vue/Angular), e-commerce, testing, PWA, ethical design, SaaS, analytics, voice UI, AR/VR, AI/ML patterns, healthcare, finance, neurodiversity, and web components.

Works with any MCP-compatible client including Claude Desktop, Cursor IDE, Continue.dev, Cline, and custom applications.

Installation

npm (Recommended)

npm install -g @elsahafy/ux-mcp-server

npx (No Installation)

npx @elsahafy/ux-mcp-server

From Source

git clone https://github.com/elsahafy/ux-mcp-server.git
cd ux-mcp-server
npm install
npm run build

Features

📚 Resources (28 Knowledge Bases)

Access comprehensive UX knowledge bases organized by category:

Foundation & Core (12 resources)

  • ux://accessibility/wcag - WCAG 2.1 AA Guidelines with code checks
  • ux://usability/nielsen-heuristics - Nielsen's 10 Usability Heuristics
  • ux://patterns/ui-patterns - Common UI patterns library
  • ux://design-systems/principles - Design system principles & primitives
  • ux://responsive/design - Responsive design & mobile-first principles
  • ux://themes/dark-mode - Dark mode implementation guide
  • ux://content/error-messages - User-friendly error message library
  • ux://performance/optimization - Core Web Vitals & performance best practices
  • ux://seo/guidelines - SEO best practices, meta tags, structured data
  • ux://i18n/patterns - Internationalization & localization patterns
  • ux://animation/motion - Motion design principles & accessibility
  • ux://react/patterns - Advanced React patterns & state management

Critical Features (8 resources)

  • ux://forms/patterns - Comprehensive form design, validation & accessibility
  • ux://microcopy/guidelines - UX writing, button labels, error messages & tone
  • ux://typography/systems - Type scales, font pairing, readability & responsive typography
  • ux://color/theory - Color harmony, WCAG contrast, semantic colors & palettes
  • ux://mobile/patterns - Touch targets, gestures, thumb zones & mobile-first design
  • ux://vue/patterns - Vue 3 Composition API, composables, Pinia & best practices
  • ux://angular/patterns - Angular standalone components, signals, RxJS & DI
  • ux://data/visualization - Chart selection, accessibility, D3.js & dashboard design

Advanced Features (8 resources)

  • ux://ecommerce/patterns - Product pages, checkout, conversion & trust optimization
  • ux://information-architecture/patterns - IA systems, navigation, card sorting & tree testing
  • ux://testing/validation - Usability testing, A/B testing, surveys & analytics
  • ux://pwa/patterns - Service workers, offline-first, app manifest & progressive enhancement
  • ux://ethical-design/patterns - Dark patterns, privacy, GDPR/CCPA & ethical alternatives
  • ux://design-systems/advanced - Semantic tokens, theming, versioning & governance
  • ux://saas/patterns - Onboarding, pricing UX, activation metrics & retention
  • ux://analytics/metrics - UX metrics (HEART, AARRR), SUS, NPS & statistical analysis

Emerging Technologies (8 resources)

  • ux://voice/interface - Voice UI design, conversation patterns, VUI principles
  • ux://ar-vr/interfaces - Spatial UI, comfort, presence, 6DOF & AR anchoring
  • ux://ai-ml/patterns - AI transparency, confidence indicators, recommendations & ethics
  • ux://haptic/feedback - Haptic types, timing patterns & platform APIs
  • ux://healthcare/ux - HIPAA compliance, patient safety, medical UI & telemedicine
  • ux://finance/ux - PCI-DSS, 2FA, transaction flows & fintech patterns
  • ux://neurodiversity/design - ADHD, autism, dyslexia accommodations & cognitive accessibility
  • ux://web-components/patterns - Custom elements, Shadow DOM, Lit, Stencil & encapsulation

🛠️ Tools (23 Dynamic Operations)

Powerful tools for UX analysis and generation:

Core Analysis (11 tools)

  1. analyze_accessibility - Check code for WCAG violations
  2. review_usability - Evaluate against Nielsen's heuristics
  3. suggest_pattern - Find appropriate UI patterns for use cases
  4. generate_component_example - Create accessible HTML/CSS examples
  5. audit_design_system - Review design token structure
  6. check_contrast - Verify WCAG color contrast ratios
  7. check_responsive - Analyze mobile-first and responsive design
  8. suggest_error_message - Get user-friendly error messages
  9. analyze_performance - Check code for performance issues & Core Web Vitals
  10. check_seo - Analyze HTML for SEO best practices
  11. suggest_animation - Recommend animations for UI interactions

Design & Content (5 tools) 12. generate_color_palette - Create accessible color palettes from base colors 13. generate_typography_scale - Generate type scales with modular ratios 14. suggest_microcopy - Get UX writing recommendations for UI elements 15. recommend_form_pattern - Find optimal form layouts and validation patterns 16. suggest_data_visualization - Choose appropriate charts for data types

Testing & Validation (5 tools) 17. generate_accessibility_report - Comprehensive WCAG audit reports 18. suggest_ab_variant - Generate A/B test variant suggestions 19. analyze_information_architecture - Evaluate navigation and IA structure 20. detect_dark_patterns - Identify deceptive UI practices 21. calculate_ux_metrics - Calculate SUS, NPS, CSAT, task success rates

UI Generation (2 tools) 22. generate_wireframe - Create ASCII wireframes for pages/components 23. suggest_microinteraction - Recommend microinteractions with timing/easing

💬 Prompts (4 Pre-configured Workflows)

Comprehensive review workflows:

  1. accessibility_review - Full WCAG accessibility audit
  2. usability_audit - Complete Nielsen heuristics evaluation
  3. design_system_setup - Guide for creating design systems
  4. complete_ux_audit - Comprehensive multi-dimensional UX audit (accessibility, usability, performance, responsive design, typography, color, forms, SEO)

Compatibility

This MCP server works with any client that supports the Model Context Protocol:

ClientStatusConfiguration
Claude Desktop✅ Fully SupportedSee below
Claude Code (CLI)✅ Fully SupportedSee below
Cursor IDE✅ Fully SupportedSee below
Continue.dev✅ Fully SupportedSee below
Cline (VS Code)✅ Fully SupportedSee below
Zed Editor✅ Fully SupportedSee below
Custom MCP Clients✅ Fully SupportedSee below

Client Configuration

Claude Desktop

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "ux-best-practices": {
      "command": "ux-mcp-server"
    }
  }
}

From source:

{
  "mcpServers": {
    "ux-best-practices": {
      "command": "node",
      "args": ["/absolute/path/to/ux-mcp-server/dist/index.js"]
    }
  }
}

Restart Claude Desktop after configuration.

Claude Code (CLI)

Add via the CLI (recommended):

claude mcp add ux -- npx -y @elsahafy/ux-mcp-server

Or manually in ~/.claude/settings.json:

{
  "mcpServers": {
    "ux": {
      "command": "npx",
      "args": ["-y", "@elsahafy/ux-mcp-server"]
    }
  }
}

Cursor IDE

Add to Cursor's MCP configuration (~/.cursor/mcp.json):

{
  "mcpServers": {
    "ux-best-practices": {
      "command": "ux-mcp-server"
    }
  }
}

Or configure via Cursor Settings → MCP Servers → Add Server.

Continue.dev

Add to Continue configuration (~/.continue/config.json):

{
  "experimental": {
    "modelContextProtocolServers": [
      {
        "transport": {
          "type": "stdio",
          "command": "ux-mcp-server"
        }
      }
    ]
  }
}

Cline (VS Code)

In VS Code with Cline extension, add to MCP settings:

{
  "mcpServers": {
    "ux-best-practices": {
      "command": "ux-mcp-server",
      "args": []
    }
  }
}

Zed Editor

Add to Zed's settings (~/.config/zed/settings.json):

{
  "context_servers": {
    "ux-best-practices": {
      "command": {
        "path": "ux-mcp-server"
      }
    }
  }
}

Custom MCP Clients

For custom applications using the MCP SDK:

import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";

const transport = new StdioClientTransport({
  command: "ux-mcp-server",
  args: []
});

const client = new Client({
  name: "my-app",
  version: "1.0.0"
}, {
  capabilities: {}
});

await client.connect(transport);

// List available resources
const resources = await client.listResources();

// Read a resource
const wcag = await client.readResource({ uri: "ux://accessibility/wcag" });

// Call a tool
const result = await client.callTool({
  name: "check_contrast",
  arguments: { foreground: "#333333", background: "#ffffff" }
});

Windows Notes

On Windows, use full paths with escaped backslashes:

{
  "mcpServers": {
    "ux-best-practices": {
      "command": "node",
      "args": ["C:\\Users\\YourName\\ux-mcp-server\\dist\\index.js"]
    }
  }
}

Example Usage

Once configured, you can ask your AI assistant to use these UX tools and resources. Here are some example prompts:

Accessibility Analysis

"Analyze this button for accessibility issues"
→ Uses: analyze_accessibility tool

"Check if #3b82f6 on #ffffff meets WCAG AA contrast requirements"
→ Uses: check_contrast tool

"Generate an accessibility audit report for my login page"
→ Uses: generate_accessibility_report tool

UI Patterns & Design

"I need to display a list of items with filtering - what UI pattern should I use?"
→ Uses: suggest_pattern tool

"Generate an accessible modal dialog example"
→ Uses: generate_component_example tool

"Create a color palette based on #3b82f6"
→ Uses: generate_color_palette tool

"Generate a wireframe for a dashboard page"
→ Uses: generate_wireframe tool

Performance & SEO

"Analyze this React component for performance issues"
→ Uses: analyze_performance tool (checks Core Web Vitals, bundle size, loading patterns)

"Review this HTML page for SEO best practices"
→ Uses: check_seo tool (validates meta tags, Open Graph, structured data)

UX Writing & Forms

"Suggest better microcopy for this error message"
→ Uses: suggest_microcopy tool

"What form pattern should I use for a multi-step checkout?"
→ Uses: recommend_form_pattern tool

Animation & Interaction

"What animation should I use for a button click?"
→ Uses: suggest_animation tool

"Suggest microinteractions for a toggle switch"
→ Uses: suggest_microinteraction tool

Testing & Metrics

"Calculate the SUS score from these survey responses"
→ Uses: calculate_ux_metrics tool

"Suggest A/B test variants for my pricing page"
→ Uses: suggest_ab_variant tool

"Check this page for dark patterns"
→ Uses: detect_dark_patterns tool

Accessing Knowledge Resources

"What are Nielsen's usability heuristics?"
→ Reads: ux://usability/nielsen-heuristics

"Show me WCAG accessibility guidelines"
→ Reads: ux://accessibility/wcag

"What are best practices for e-commerce checkout?"
→ Reads: ux://ecommerce/patterns

"How do I design for neurodiversity?"
→ Reads: ux://neurodiversity/design

Knowledge Base Contents

WCAG Guidelines

  • Perceivable (alt text, contrast, semantic HTML)
  • Operable (keyboard access, focus management)
  • Understandable (error handling, clear labels)
  • Robust (ARIA, assistive technology support)

Nielsen's Heuristics

  1. Visibility of System Status
  2. Match Between System and Real World
  3. User Control and Freedom
  4. Consistency and Standards
  5. Error Prevention
  6. Recognition Rather than Recall
  7. Flexibility and Efficiency of Use
  8. Aesthetic and Minimalist Design
  9. Help Users Recognize, Diagnose, and Recover from Errors
  10. Help and Documentation

UI Patterns

  • Navigation: Headers, breadcrumbs, tabs
  • Forms: Single column, multi-step wizards, validation
  • Feedback: Toasts, modals, loading states
  • Data Display: Tables, cards, empty states
  • Input Components: Search, date pickers, file upload

Design System Principles

  • Atomic Design methodology
  • Design token structure (primitive → semantic → component)
  • Typography scales
  • Spacing systems
  • Color theory
  • Component API design

Performance Optimization

  • Core Web Vitals (LCP, INP, CLS)
  • Image optimization strategies
  • CSS performance
  • JavaScript bundle optimization
  • Lazy loading & code splitting
  • Caching strategies
  • Performance budgets

SEO Best Practices

  • Meta tags (title, description, keywords)
  • Open Graph protocol
  • Twitter Cards
  • Structured data (JSON-LD, Schema.org)
  • Technical SEO (robots.txt, sitemap, canonical)
  • Local SEO & rich snippets

Internationalization (i18n)

  • Text direction (LTR/RTL support)
  • Locale-aware formatting (dates, numbers, currencies)
  • Translation patterns
  • Cultural considerations
  • Font and character set handling
  • URL structures for multilingual sites

Animation & Motion Design

  • Disney's 12 principles of animation
  • Timing and easing functions
  • Motion design principles
  • Performance (GPU acceleration)
  • Accessibility (prefers-reduced-motion)
  • Common UI animation patterns

React Patterns

  • Compound components
  • Custom hooks
  • State management strategies
  • Performance optimization (memoization, code splitting)
  • Error boundaries
  • Accessibility patterns in React
  • Testing best practices

Forms & Microcopy

  • Form layouts (single-column, multi-step wizards)
  • Validation patterns (inline, submit, hybrid)
  • Accessible form fields & error handling
  • UX writing principles (clarity, tone, voice)
  • Button labels & CTAs
  • User-friendly error messages

Typography & Color Systems

  • Type scales with modular ratios (1.2, 1.333, 1.618)
  • Font pairing strategies
  • Readability optimization (line length, spacing)
  • Color harmony (complementary, triadic, analogous)
  • WCAG contrast compliance (4.5:1, 3:1, 7:1)
  • Semantic color tokens

Mobile & Framework Patterns

  • Touch targets (44x44px minimum)
  • Gestures & thumb zones
  • Bottom navigation patterns
  • Vue 3 Composition API & composables
  • Angular signals & standalone components
  • Framework-agnostic best practices

E-commerce & Conversion

  • Product discovery (mega menus, faceted filters)
  • Product detail pages & variant selection
  • Shopping cart patterns (drawer vs page)
  • Checkout optimization (multi-step with progress)
  • Trust signals & abandoned cart recovery

Testing & Analytics

  • Usability testing (moderated/unmoderated/guerrilla)
  • A/B testing methodology & statistical significance
  • UX metrics (SUS, NPS, CSAT, CES)
  • HEART framework & AARRR pirate metrics
  • Accessibility testing (automated & manual)

PWA & Ethical Design

  • Service workers & caching strategies
  • Offline-first patterns
  • Web app manifest & add to home screen
  • Dark pattern detection & ethical alternatives
  • GDPR/CCPA compliance
  • Privacy-first design

SaaS & Advanced Design Systems

  • Onboarding flows & activation metrics
  • Pricing UX (freemium, trial, usage-based)
  • Semantic design tokens (3-tier architecture)
  • Multi-brand theming
  • Component versioning & governance

Emerging Technologies

  • Voice UI conversation design & VUI principles
  • AR/VR spatial interfaces & comfort optimization
  • AI/ML transparency & confidence indicators
  • Haptic feedback timing & platform APIs
  • Healthcare UX (HIPAA, patient safety)
  • Finance UX (PCI-DSS, 2FA, transaction flows)
  • Neurodiversity-inclusive design (ADHD, autism, dyslexia)
  • Web Components (Custom Elements, Shadow DOM, Lit)

Development

# Watch mode during development
npm run watch

# Build for production
npm run build

# Test the server
npm run dev

Framework Agnostic

All examples and guidelines are framework-agnostic, focusing on:

  • Semantic HTML
  • CSS best practices
  • ARIA attributes
  • Accessibility standards
  • Universal UX principles

Works with React, Vue, Svelte, Angular, or vanilla JavaScript.

What's New in v5.0.0

Security Hardening

  • Resolved all AgentSeal security findings (command injection, SSRF, credential exposure)
  • Added maxLength constraints on markup-accepting parameters
  • Explicit MCP capability declarations

Bug Fix

  • Fixed console.error startup message that broke MCP client connections on Windows

CI/CD

  • GitHub Actions pipeline: build matrix (Node 18/20/22), TypeScript strict checking, security audit
  • Branch protection with required status checks

Breaking Changes

Parameter renames for security compliance — see CHANGELOG.md for the full migration guide.

ToolOld ParameterNew Parameter
analyze_accessibilitycodecontent
review_usabilitycodecontent
check_responsivecodecontent
analyze_performancecodecontent
check_seourlpage_url
generate_accessibility_reporturlpage_identifier
detect_dark_patternsscreenshot_urlscreenshot_reference

See the full changelog for previous versions.

Contributing

We welcome contributions! Please see our Contributing Guide for details on:

  • Development setup
  • Adding new resources, tools, or prompts
  • Coding standards
  • Pull request process

Quick Start:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

Security

For security vulnerabilities, please see our Security Policy.

Changelog

See CHANGELOG.md for a detailed history of changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support This Project

If this project helps you build better user experiences, consider supporting its development:

Ko-fi

Your support helps:

  • Maintain and update UX knowledge bases
  • Add new tools and resources
  • Keep documentation current
  • Respond to issues and feature requests

Enterprise users: For priority support, custom integrations, or consulting, contact us.

Credits

  • WCAG 2.1 Guidelines from W3C
  • Nielsen's Usability Heuristics by Jakob Nielsen
  • UI Patterns from established design systems and best practices
  • Design Token concepts from design system community
  • Core Web Vitals from Google Web.dev
  • SEO best practices from Google Search Central
  • Animation principles from Disney and Material Design
  • React, Vue, Angular patterns from framework communities
  • i18n standards from Unicode CLDR and W3C
  • E-commerce patterns from Baymard Institute research
  • Information Architecture from Rosenfeld & Morville
  • PWA standards from W3C and Google
  • Ethical design principles from darkpatterns.org
  • UX metrics from HEART Framework (Google) and industry standards
  • Voice UI design from Amazon Alexa, Google Assistant guidelines
  • AR/VR best practices from Oculus, Meta, and Apple Vision Pro
  • AI/ML ethics from Partnership on AI and industry practices
  • HIPAA compliance from HHS.gov
  • PCI-DSS standards from PCI Security Standards Council
  • Neurodiversity guidelines from ADHD Foundation, National Autistic Society, British Dyslexia Association
  • Web Components standards from W3C and web.dev

Links


Built for AI-assisted development with complete UX ecosystem coverage: accessibility, usability, performance, SEO, design systems, e-commerce, testing, ethical design, emerging technologies (Voice/AR/VR/AI), healthcare, finance, neurodiversity, and more—all as first-class citizens.

Related MCP servers

EVM contract/token risk check + ERC20 approval (proxy, EIP-7702, unlimited-allowance). Zero deps.

1
Python
MIT
View repository →

Audit GitHub repos for malicious and supply-chain code before you depend on them.

View repository →

Detects leaked secrets & API keys: 32+ provider rules (AWS, GitHub, Stripe, OpenAI…), zero deps.

1
Python
MIT
View repository →

MCP server: static security scanner for MCP servers, agent skills & plugins. 17 attack patterns.

4
Python
View repository →

Real-world data for agents: air quality, geocoding, quakes, holidays, web search

1
JavaScript
View repository →

Fetch URLs and return clean Markdown for RAG — nav, ads and boilerplate stripped.

View repository →