mcpField
L
LightScout MCP

LightScout MCP

Local
github.com/bobbyrgoldsmithDeveloper Tools0Updated 33w ago

About LightScout MCP

LightScout MCP is a Lighthouse-based server and CLI for developers and teams auditing Core Web Vitals. It analyzes individual pages, compares URLs, checks thresholds, and crawls sites.

Key features

  1. 01Lighthouse page analysis
  2. 02Compare URLs or device results
  3. 03Check performance thresholds
  4. 04Crawl and summarize site pages
  5. 05CLI for CI pipelines

Use cases

  1. 01Review Core Web Vitals for a page
  2. 02Compare mobile and desktop results
  3. 03Set performance gates in CI
  4. 04Audit pages across a site

MCP support

The MCP server exposes tools to analyze a URL, compare performance, check thresholds, and crawl a site for MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

LightScout MCP

npm version license node

Part of the TestScout MCP Suite — AI-powered QA tools for modern development teams.

Core Web Vitals analysis powered by Lighthouse. Runs as an MCP server for AI coding tools (Claude Code, Cursor, Windsurf, etc.) or as a standalone CLI for CI pipelines and terminals. Four tools: analyze a URL, compare two URLs, check against thresholds, or crawl an entire site.

LightScout MCP server

Requirements

  • Node.js >= 18
  • Google Chrome or Chromium

MCP Server Setup

Claude Code
claude mcp add lightscout -- npx -y lightscout-mcp
Cursor, VS Code, Windsurf, Cline, Roo Code, Gemini CLI

All use the same mcpServers JSON format. Add this to the appropriate config file:

{
  "mcpServers": {
    "lightscout": {
      "command": "npx",
      "args": ["-y", "lightscout-mcp"]
    }
  }
}
ClientConfig file
Cursor~/.cursor/mcp.json
VS Code (Copilot).vscode/mcp.json
Windsurf~/.codeium/windsurf/mcp_config.json
ClineSettings > MCP > Edit Config
Roo Code.roo/mcp.json
Gemini CLI~/.gemini/settings.json
Zed

Zed uses context_servers instead of mcpServers:

{
  "context_servers": {
    "lightscout": {
      "command": "npx",
      "args": ["-y", "lightscout-mcp"]
    }
  }
}

CLI

Install
npm install -g lightscout-mcp
Try without installing
npx -p lightscout-mcp lightscout analyze https://example.com
Commands
lightscout analyze <url> [--device mobile|desktop] [--categories perf,a11y,seo,best-practices]
lightscout compare <urlA> [urlB] [--device mobile|desktop]
lightscout crawl <url> [--max-pages N] [--device mobile|desktop]
lightscout check <url> [--perf 90] [--lcp 2500] [--fcp 3000] [--cls 0.1] [--tbt 300] [--ttfb 1800]
Examples

Analyze a single page:

lightscout analyze https://example.com
lightscout analyze https://example.com --device desktop --categories performance,accessibility

Compare two URLs, or the same URL on mobile vs desktop:

lightscout compare https://a.com https://b.com
lightscout compare https://example.com                    # mobile vs desktop

Crawl a site and audit discovered pages:

lightscout crawl https://example.com --max-pages 5

CI quality gate (exits 1 on failure):

lightscout check https://example.com --perf 90 --lcp 2500

Tools

analyze_performance

Run Lighthouse on a URL. Returns performance scores, Core Web Vitals (LCP, FCP, CLS, TBT, SI, TTFB) with good/needs-improvement/poor ratings, top recommendations sorted by impact, and diagnostics.

ParameterTypeRequiredDescription
urlstringyesURL to analyze
device"mobile" | "desktop"noDevice emulation (default: mobile)
categoriesstring[]noLighthouse categories (default: ["performance"])
compare_performance

Compare Core Web Vitals between two URLs, or the same URL on mobile vs desktop. Shows per-metric deltas with winner indicators.

ParameterTypeRequiredDescription
urlAstringyesFirst URL
urlBstringnoSecond URL. If omitted, compares urlA mobile vs desktop
device"mobile" | "desktop"noDevice emulation when comparing two URLs (default: mobile)
check_threshold

Pass/fail check against performance thresholds. Useful for CI quality gates.

ParameterTypeRequiredDescription
urlstringyesURL to check
device"mobile" | "desktop"noDevice emulation (default: mobile)
thresholdsobjectnoCustom thresholds (see defaults below)

Default thresholds use Google's "poor" boundary -- only fails if metrics are genuinely bad:

MetricDefault (fail if worse)
performance< 50
LCP> 4000ms
FCP> 3000ms
CLS> 0.25
TBT> 600ms
TTFB> 1800ms
crawl_site

Discover pages on a site (via sitemap.xml or link crawling) and run Lighthouse on each. Returns per-page results plus site-wide summary with avg/min/max scores and common issues.

ParameterTypeRequiredDescription
urlstringyesSite URL or homepage to crawl
device"mobile" | "desktop"noDevice emulation (default: mobile)
maxPagesnumbernoMaximum pages to analyze (default: 20, max: 20)

Pages are discovered via sitemap.xml first, falling back to link crawling. Up to 3 Lighthouse runs execute in parallel.

CWV Rating Thresholds

MetricGoodNeeds ImprovementPoor
LCP<= 2500ms2500-4000ms> 4000ms
FCP<= 1800ms1800-3000ms> 3000ms
CLS<= 0.10.1-0.25> 0.25
TBT<= 200ms200-600ms> 600ms
SI<= 3400ms3400-5800ms> 5800ms
TTFB<= 800ms800-1800ms> 1800ms

Notes

  • TBT (Total Blocking Time) is used instead of INP/FID because Lighthouse runs lab-only tests with no real user interaction.
  • Up to 3 concurrent Lighthouse runs (semaphore-controlled).
  • Chrome is launched headless and killed after each audit.
  • MCP responses are token-optimized with condensed metrics and compact JSON.

TestScout MCP Suite

LightScout is the first tool in the TestScout MCP Suite. More tools are coming:

ToolDescriptionStatus
lightscout-mcpCore Web Vitals & Lighthouse analysisAvailable
testscout-diagnoseError triage & root cause analysisComing soon
testscout-scrapeStructured data extraction for testingComing soon
testscout-planAI test plan & code generationComing soon
testscout-loadLoad test generation & analysisComing soon
testscout-maintainSelf-healing test maintenanceComing soon

Follow development at testscout.dev.

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.