MCP server for tracking web performance with Lighthouse
Lighthouse MCP has well-structured tool definitions with clear naming (verb_noun pattern: lighthouse_audit, lighthouse_status, lighthouse_compare, lighthouse_history) and comprehensive descriptions (150-250 chars each). All four tools have documented input schemas with proper types and enums. However, output schemas are not explicitly documented in the source code, only inferred from tool descriptions. Parameter descriptions are present but lack detail on constraints (e.g., no guidance on URL format validation, no mention of rate limits or timeout behavior). Error handling is basic: the runner catches Chrome launch failures and Lighthouse runtime errors but does not provide recovery guidance or categorization (retryable vs. fatal). No tool annotations (readOnlyHint/destructiveHint) despite clear risk profiles (lighthouse_audit is WRITE, others are READ_ONLY). Missing idempotency guarantees and confirmation patterns for the destructive audit tool.
Run a Lighthouse performance audit on a URL. Saves results locally with git context and returns a markdown summary with scores, Core Web Vitals, and trend indicators compared to the previous audit on the same branch.
Compare Lighthouse audit results between two branches for a given URL. Shows side-by-side scores and Core Web Vitals with delta indicators, highlighting regressions and improvements. Run lighthouse_audit on both branches first.
Show the audit history for a URL from the local database. Returns a timeline table with scores, Core Web Vitals, trend indicators, and notable changes over time.
Get a quick performance status overview for a URL. Shows the latest audit scores, Core Web Vitals, trend direction, and actionable recommendations based on stored results.
Output schemas not documented. Tool descriptions mention return types (markdown summary, timeline table, side-by-side comparison) but no formal JSON schema is visible in source code. LLMs cannot plan downstream operations without knowing response structure.
No tool annotations (readOnlyHint/destructiveHint/idempotentHint). lighthouse_audit is marked WRITE risk but tool definition lacks destructiveHint annotation. Agents cannot determine which tools are safe to retry or have side effects.
Parameter descriptions lack constraint details. 'url' parameter has no format guidance (http/https required?). 'limit' in lighthouse_history has min/max (1-50) in schema but no explanation of why. Device enum and category enum are clear, but missing guidance on when to use each.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 62 | 2026-07-28+ | v2 |
Error handling lacks recovery guidance. Chrome launch failure throws 'Chrome could not be launched' but does not suggest next steps (install Chrome, check permissions, retry). Lighthouse runtime errors are caught but not categorized as retryable or fatal.
No confirmation or dry-run pattern for destructive audit tool. lighthouse_audit writes results to local database and git context. Agents cannot preview impact before committing. No idempotency guarantee documented.