ux-mcp-server

v4.1.1
io.github.elsahafy/ux-mcp-server Checked 4 days ago Published 10 months ago

UX toolkit: 28 knowledge resources, 23 analysis tools & 4 workflow prompts for any MCP client

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

analyze_accessibility

Analyze HTML/JSX code for accessibility issues based on WCAG guidelines. Returns specific violations and suggestions.

ParameterTypeDescription
code *stringHTML or JSX code to analyze
levelstringWCAG conformance level to check against

review_usability

Review a UI description or code against Nielsen's usability heuristics. Provides ratings and specific recommendations.

ParameterTypeDescription
description *stringDescription of the UI or component to review
codestringOptional: Code implementation to review
focus_heuristicsarrayOptional: Specific heuristics to focus on (1-10)

suggest_pattern

Suggest appropriate UI pattern for a given use case. Returns pattern details, best practices, and implementation guidance.

ParameterTypeDescription
use_case *stringDescription of what you're trying to build (e.g., 'user navigation', 'form validation', 'data display')
constraintsstringOptional: Specific constraints or requirements

generate_component_example

Generate framework-agnostic HTML/CSS example following UX best practices for a specific pattern.

ParameterTypeDescription
pattern *stringPattern name (e.g., 'search', 'modal', 'form', 'button', 'data-table')
include_accessibilitybooleanInclude ARIA attributes and accessibility features
variantstringOptional: Specific variant (e.g., 'primary', 'ghost', 'inline')

audit_design_system

Audit design system implementation for consistency with best practices. Checks tokens, naming, and structure.

ParameterTypeDescription
tokens *stringJSON or CSS of design tokens to audit
typestringType of tokens to audit

check_contrast

Check color contrast ratio for WCAG compliance. Supports hex, rgb, and named colors.

ParameterTypeDescription
background *stringBackground color
foreground *stringForeground color (text)
large_textbooleanIs the text large (18pt+ or 14pt+ bold)?
levelstringWCAG level to check

check_responsive

Analyze code for mobile-first principles and responsive design issues. Checks viewport meta, touch targets, and breakpoints.

ParameterTypeDescription
code *stringHTML/CSS code to analyze
check_typestringSpecific responsive aspect to check

suggest_error_message

Get user-friendly error message suggestions for specific scenarios. Returns message, tone guidance, and accessibility considerations.

ParameterTypeDescription
scenario *stringError scenario (e.g., 'invalid email', 'required field', 'payment failed', 'file too large')
contextstringOptional: Additional context about the error
technical_messagestringOptional: Technical error message to translate to user-friendly language

analyze_performance

Analyze code for performance issues and Core Web Vitals optimization. Checks resource loading, image optimization, and rendering performance.

ParameterTypeDescription
code *stringHTML/CSS/JS code to analyze
check_typestringSpecific performance aspect to check

check_seo

Analyze HTML for SEO best practices. Checks meta tags, Open Graph, structured data, and technical SEO elements.

ParameterTypeDescription
html *stringHTML code to analyze
urlstringOptional: Page URL for context

suggest_animation

Suggest appropriate animation for a UI interaction. Returns animation type, duration, easing, and implementation guidance.

ParameterTypeDescription
interaction *stringUI interaction to animate (e.g., 'button click', 'modal open', 'list item add', 'page transition')
contextstringOptional: Additional context about the interaction

generate_color_palette

Generate accessible color palette from a base color. Returns primary, secondary, neutral, and semantic colors with WCAG-compliant variations.

ParameterTypeDescription
base_color *stringBase color (hex, rgb, or color name)
harmony_typestringColor harmony type to generate
include_neutralsbooleanInclude grayscale neutrals

generate_typography_scale

Calculate modular typography scale with recommended sizes for headings and body text. Returns complete type scale with line heights.

ParameterTypeDescription
base_sizenumberBase font size in pixels (typically 16)
scale_rationumberScale ratio (e.g., 1.2 for minor third, 1.5 for perfect fifth)
stepsnumberNumber of steps to generate (up and down from base)

suggest_microcopy

Suggest user-friendly microcopy for UI elements. Returns context-aware suggestions for buttons, labels, messages, and help text.

ParameterTypeDescription
context *stringContext of the element (e.g., 'login button', 'email field', 'payment success')
element_type *stringType of UI element needing copy
tonestringDesired tone of voice

suggest_form_pattern

Recommend optimal form layout and validation pattern. Returns layout recommendations, field types, and validation strategies.

ParameterTypeDescription
form_type *stringType of form (e.g., 'login', 'registration', 'checkout', 'contact', 'search')
field_countnumberApproximate number of fields
platformstringTarget platform

analyze_data_viz

Review data visualization for accessibility and clarity. Checks chart type appropriateness, color usage, labels, and accessibility.

ParameterTypeDescription
chart_type *stringType of chart/visualization (e.g., 'bar chart', 'line chart', 'pie chart', 'scatter plot')
data_description *stringDescription of the data being visualized
purposestringPurpose of the visualization (e.g., 'comparison', 'trend', 'composition', 'distribution')

generate_accessibility_report

Generate comprehensive accessibility audit report. Checks WCAG compliance, keyboard navigation, screen reader compatibility, and semantic HTML.

ParameterTypeDescription
url *stringURL or page identifier to audit
wcag_levelstringWCAG compliance level to check against

suggest_ab_variant

Suggest A/B test variants for optimization. Provides hypothesis, variant designs, and metrics to track.

ParameterTypeDescription
element *stringElement to test (e.g., 'CTA button', 'headline', 'pricing page', 'checkout flow')
goal *stringDesired outcome (e.g., 'increase conversions', 'reduce bounce', 'improve engagement')
current_performancestringCurrent metric (e.g., '2% conversion rate', '60% bounce rate')

analyze_information_architecture

Analyze and suggest improvements to information architecture. Reviews navigation, labeling, hierarchy, and content organization.

ParameterTypeDescription
site_structure *stringDescription or sitemap of current structure
user_goals *stringPrimary user goals and tasks
issuesstringKnown issues or pain points (optional)

detect_dark_patterns

Detect dark patterns and ethical design violations. Identifies manipulative UI practices and suggests ethical alternatives.

ParameterTypeDescription
flow_description *stringDescription of user flow or interface (e.g., 'subscription cancellation', 'cookie consent', 'checkout')
screenshot_urlstringURL to screenshot (optional)

calculate_ux_metrics

Calculate key UX metrics and benchmarks. Computes SUS score, NPS, task success rate, and provides interpretation.

ParameterTypeDescription
data *stringRaw data (e.g., 'SUS responses: 4,2,5,4,3,2,5,4,4,3' or 'NPS scores: 9,8,10,7,6,9,10')
metric_type *stringType of UX metric to calculate

generate_wireframe

Generate ASCII wireframe mockup for a page or component. Creates low-fidelity layout sketch using text characters.

ParameterTypeDescription
page_type *stringType of page/component (e.g., 'login page', 'dashboard', 'product card', 'navigation header')
elementsstringKey elements to include (e.g., 'logo, search bar, user menu, main content area')
layoutstringOverall layout structure

suggest_microinteraction

Suggest microinteractions for UI elements. Provides animation, feedback, and transition recommendations.

ParameterTypeDescription
element *stringUI element (e.g., 'button', 'toggle switch', 'like button', 'form submission', 'loading')
contextstringContext of interaction (e.g., 'delete action', 'successful save', 'error state')
platformstringTarget platform