uimax-mcp
v0.7.0Frontend expert for Claude Code.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
review_ui
THE PRIMARY TOOL — Fully automated UI review pipeline. Captures a screenshot, runs accessibility/performance/code audits, then returns ALL data along with an expert frontend review methodology so you can generate a comprehensive review and implement fixes. Use this when the user asks to "review my UI", "audit my frontend", or "find UI issues". After receiving the results, you MUST: 1. Study the screenshot carefully for visual/UX issues 2. Analyze the audit data following the expert methodology provided 3. Generate a comprehensive review with SPECIFIC fixes (exact CSS values, code changes) 4…
| Parameter | Type | Description |
|---|---|---|
codeDirectory * | string | Absolute path to the frontend source directory (e.g., /Users/me/project/src) |
url * | string | URL of the running application (e.g., http://localhost:3000) |
height | number | Viewport height in pixels |
width | number | Viewport width in pixels |
export_report
Generate a standalone HTML report file with all audit findings embedded. Runs the full review pipeline (screenshot, accessibility, performance, code analysis) and outputs a beautiful, shareable HTML file with zero external dependencies. Use this when the user wants a downloadable/shareable report of their UI review. This tool is FREE — runs entirely within Claude Code.
| Parameter | Type | Description |
|---|---|---|
codeDirectory * | string | Absolute path to the frontend source directory (e.g., /Users/me/project/src) |
url * | string | URL of the running application (e.g., http://localhost:3000) |
outputPath | string | Output file path for the HTML report (defaults to ./uimax-report.html) |
quick_review
Quick design-only review. Captures a screenshot and returns it with a focused design review methodology. No code analysis, no performance audit — just visual/UX feedback. Great for rapid design iteration. After receiving the screenshot, analyze it as a senior UI designer and provide 5-10 high-impact observations with specific fixes. This tool is FREE — runs entirely within Claude Code.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to review |
screenshot
Capture a screenshot of a webpage. Returns a PNG image that you can visually analyze for design issues, layout problems, and UI quality.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to screenshot (e.g., http://localhost:3000) |
delay | number | Wait time in ms after page load before capturing |
fullPage | boolean | Capture the full scrollable page |
height | number | Viewport height in pixels |
width | number | Viewport width in pixels |
responsive_screenshots
Capture screenshots at mobile (375px), tablet (768px), and desktop (1440px) viewports. Perfect for reviewing responsive design.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to capture |
check_dark_mode
Detect whether a webpage supports dark mode. Captures two screenshots — one in light mode and one with prefers-color-scheme: dark emulated — then compares them. Returns both screenshots and a difference percentage. Great for checking if dark mode is properly implemented.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to check |
compare_screenshots
Before/after visual comparison with pixel-level diffing. Captures screenshots of two URLs at the same viewport size, computes an accurate pixel-level difference using pixelmatch, and returns BOTH images plus a red-highlighted diff image showing exactly which pixels changed. Use this to verify UI changes, compare staging vs production, or check before/after states of a redesign.
| Parameter | Type | Description |
|---|---|---|
urlA * | string | First URL — the 'before' state (e.g., http://localhost:3000) |
urlB * | string | Second URL — the 'after' state (e.g., http://localhost:3001) |
height | number | Viewport height in pixels |
width | number | Viewport width in pixels |
semantic_compare
AI-powered visual comparison. Captures before/after screenshots and provides a structured methodology for Claude to semantically evaluate whether UI changes match the intended design request. Goes beyond pixel diffing to understand intent. Returns both screenshots as images, a pixel-level diff image, the difference percentage, and a detailed semantic methodology prompt. Claude's vision analyzes the screenshots to determine if the changes match what was requested, checking for regressions and unintended side effects. This tool is FREE — it runs entirely within Claude Code using the user's e…
| Parameter | Type | Description |
|---|---|---|
changeDescription * | string | What was the intended change? (e.g., 'Changed the hero section background to a gradient and increased heading font size') |
urlAfter * | string | URL of the 'after' state (e.g., http://localhost:3001) |
urlBefore * | string | URL of the 'before' state (e.g., http://localhost:3000) |
height | number | Viewport height in pixels |
width | number | Viewport width in pixels |
accessibility_audit
Run an automated accessibility audit using axe-core. Checks for WCAG 2.1 Level A and AA violations, reporting issues by severity with specific fix instructions.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to audit |
performance_audit
Measure Core Web Vitals and performance metrics: FCP, LCP, CLS, TBT, load time, resource count, DOM size, and JS heap usage.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to measure |
lighthouse_audit
Run a full Lighthouse audit against a URL. Returns scores for Performance, Accessibility, Best Practices, and SEO (0-100), plus detailed audit findings for render-blocking resources, image optimization, unused code, and more. Heavier than performance_audit but provides industry-standard Lighthouse scores.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to audit (e.g., http://localhost:3000) |
pwa_audit
Check Progressive Web App readiness: installable manifest, service worker, HTTPS, offline capability, and more. Runs a full Lighthouse audit under the hood and extracts all PWA-related audit results with pass/fail for each requirement.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to check for PWA readiness (e.g., http://localhost:3000) |
security_audit
Check security posture via Lighthouse: HTTPS usage, mixed content, CSP headers, vulnerable JavaScript libraries, external links without noopener, and more. Returns pass/fail findings with severity levels.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to audit for security (e.g., http://localhost:3000) |
unused_code
Find unused JavaScript and CSS on a page. Runs Lighthouse and extracts the unused-javascript and unused-css-rules audits, showing each resource with total bytes, unused bytes, and potential savings. Great for reducing bundle size.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to analyze for unused code (e.g., http://localhost:3000) |
lcp_optimization
Deep Largest Contentful Paint (LCP) analysis. Identifies the LCP element, measures TTFB, resource load time, and render delay. Provides specific optimization suggestions to improve LCP below the 2.5s threshold.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to analyze LCP (e.g., http://localhost:3000) |
resource_analysis
Full resource breakdown of a page: total transfer size, breakdown by type (JS, CSS, images, fonts), number of requests, top 10 largest resources, and render-blocking resources. Helps identify what is making your page heavy.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to analyze resources (e.g., http://localhost:3000) |
analyze_code
Analyze frontend source code for quality issues: accessibility anti-patterns, CSS problems, component complexity, design inconsistencies, and performance concerns.
| Parameter | Type | Description |
|---|---|---|
directory * | string | Absolute path to the frontend source directory (e.g., /Users/me/project/src) |
crawl_and_review
Crawl multiple pages from a starting URL and run accessibility + performance audits on each. Discovers internal links from the start page, deduplicates them, and visits up to maxPages (default 5, max 10). Each page gets a screenshot, axe-core accessibility audit, and Performance API metrics. Does NOT run Lighthouse (too slow for multi-page). Use this to audit an entire site section quickly. This tool is FREE — runs entirely within Claude Code.
| Parameter | Type | Description |
|---|---|---|
url * | string | Starting URL to crawl from (e.g., http://localhost:3000) |
codeDir | string | Optional code directory path (reserved for future use) |
maxPages | number | Maximum number of pages to audit (1-10, default 5) |
save_baseline
Save the current audit state for a URL as a baseline snapshot. Runs screenshot, accessibility, performance, and Lighthouse audits, then saves the results to .uimax-history.json in the project directory. Use this to establish a baseline before making changes, so you can compare later. This tool is FREE — runs entirely within Claude Code.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the running application (e.g., http://localhost:3000) |
codeDir | string | Project directory for saving .uimax-history.json (defaults to cwd) |
compare_to_baseline
Compare the current audit state of a URL against its most recent saved baseline. Runs fresh audits, loads the previous baseline from .uimax-history.json, and shows what improved and what regressed. Use this after making changes to verify you improved the metrics you intended. This tool is FREE — runs entirely within Claude Code.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the running application (e.g., http://localhost:3000) |
codeDir | string | Project directory containing .uimax-history.json (defaults to cwd) |
check_budgets
Check if the current site meets performance budgets defined in .uimaxrc.json. Runs fresh audits and compares results against budget thresholds for Lighthouse scores, Web Vitals, accessibility violations, and code issues. Returns pass/fail with details of any exceeded budgets. Configure budgets in .uimaxrc.json under the "budgets" key: { "budgets": { "lighthouse": { "performance": 90, "accessibility": 95 }, "webVitals": { "lcp": 2500, "cls": 0.1 }, "maxAccessibilityViolations": 0 } } This tool is FREE — runs entirely within Claude Code.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the running application (e.g., http://localhost:3000) |
codeDir | string | Project directory containing .uimaxrc.json with budget config (defaults to cwd) |
capture_console
Capture all console messages (log, warn, error, info, debug) during page load. Navigates to the URL, listens for console output and uncaught exceptions, then returns structured results with message counts by level. Useful for debugging runtime issues, detecting warnings, and finding errors that only appear in the browser console. Note: Console messages may contain sensitive data (tokens, user info, etc.) — the output is returned unfiltered. This tool is FREE — runs entirely within Claude Code.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to capture console logs from (e.g., http://localhost:3000) |
waitMs | number | Time in ms to wait after page load for additional console messages (default 3000) |
capture_network
Capture all network requests during page load with status codes, sizes, timing, and resource types. Provides a summary with total requests, failed requests, total transfer size, and breakdown by resource type. Useful for finding failed API calls, slow requests, large assets, and understanding page load behavior. This tool is FREE — runs entirely within Claude Code.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to capture network requests from (e.g., http://localhost:3000) |
waitMs | number | Time in ms to wait after page load for additional network activity (default 3000) |
capture_errors
Capture JavaScript errors, uncaught exceptions, unhandled promise rejections, and failed resource loads (images, scripts, stylesheets, fonts) during page load. Returns structured error list with error kind, message, and source location. Useful for finding runtime JS errors and broken resources that affect user experience. This tool is FREE — runs entirely within Claude Code.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the page to capture errors from (e.g., http://localhost:3000) |
click
Click an element by CSS selector. Returns a screenshot after the click so you can visually verify the result. Supports standard CSS selectors. If the page hasn't been navigated yet, provide a URL to navigate first.
| Parameter | Type | Description |
|---|---|---|
selector * | string | CSS selector of the element to click (e.g., 'button.submit', '#login-btn') |
url | string | Optional URL to navigate to before clicking |
waitAfter | number | Optional milliseconds to wait after clicking (for animations/transitions) |
type_text
Type text into an input field or textarea by CSS selector. Returns a screenshot after typing so you can visually verify the result. Options to clear existing text first and press Enter after typing.
| Parameter | Type | Description |
|---|---|---|
selector * | string | CSS selector of the input element (e.g., 'input[name="email"]', '#search') |
text * | string | Text to type into the element |
clearFirst | boolean | Clear existing text before typing (default: false) |
pressEnter | boolean | Press Enter after typing (default: false) |
url | string | Optional URL to navigate to before typing |
select_option
Select an option from a dropdown (<select>) element by value. Returns a screenshot after selection so you can visually verify the result.
| Parameter | Type | Description |
|---|---|---|
selector * | string | CSS selector of the <select> element (e.g., '#country', 'select[name="size"]') |
value * | string | Value of the <option> to select |
url | string | Optional URL to navigate to before selecting |
scroll
Scroll the page by a pixel amount or to a specific element. Returns a screenshot after scrolling so you can visually verify the new viewport position.
| Parameter | Type | Description |
|---|---|---|
amount | number | Pixels to scroll (default: 500) |
direction | string | Scroll direction (default: 'down') |
toSelector | string | CSS selector of element to scroll into view (overrides direction/amount) |
url | string | Optional URL to navigate to before scrolling |
wait_for
Wait for an element to appear in the DOM. Returns the element's tag name and text content when found. Use this to wait for dynamic content to load before interacting with it.
| Parameter | Type | Description |
|---|---|---|
selector * | string | CSS selector of the element to wait for |
timeout | number | Maximum wait time in ms (default: 10000) |
url | string | Optional URL to navigate to before waiting |
visible | boolean | Wait for element to be visible, not just in DOM (default: false) |
get_element
Get detailed information about a DOM element: tag name, text content, all attributes, bounding box, and computed styles (color, font, background, display, visibility). Returns a screenshot so you can visually identify the element in context.
| Parameter | Type | Description |
|---|---|---|
selector * | string | CSS selector of the element to inspect |
url | string | Optional URL to navigate to before inspecting |
get_review_history
View past UIMax reviews for this project. Shows when reviews were run, what scores were achieved, and how many issues were found. Use this to understand the project's frontend health over time. This tool is FREE — runs entirely within Claude Code.
| Parameter | Type | Description |
|---|---|---|
codeDir | string | Project directory containing .uimax-reviews.json (defaults to cwd) |
limit | number | Maximum number of reviews to return (default 10) |
url | string | Filter reviews by URL |
get_review_stats
Get aggregate statistics across all UIMax reviews for this project. Shows total reviews, score trends, most common issues, and most problematic files. This tool is FREE — runs entirely within Claude Code.
| Parameter | Type | Description |
|---|---|---|
codeDir | string | Project directory containing .uimax-reviews.json (defaults to cwd) |
review_diff
Compare two specific reviews to see what changed. Shows new issues, resolved issues, and score changes. This tool is FREE — runs entirely within Claude Code.
| Parameter | Type | Description |
|---|---|---|
reviewIdA * | string | ID of the older review to compare |
reviewIdB * | string | ID of the newer review to compare (or 'latest' for the most recent review) |
codeDir | string | Project directory containing .uimax-reviews.json (defaults to cwd) |