SiteLens MCP · Browser Intelligence in the IDE
Run Browser Intelligence from your editor.
SiteLens combines browser automation, observability, diagnostics, visual regression, and evidence into one coherent workflow. SiteLens MCP is the IDE integration for free local browser runs (no API key) plus optional Cloud/API—flows, sessions, diagnostics, comparison, timeline, and reports from Cursor and other MCP hosts. SiteLens supports Chromium, Firefox, WebKit, and installed Chrome/Edge channels through Playwright.
SiteLens Local via MCP
Free local execution
Install @sitelensapi/mcp from npm (any project—no SiteLens monorepo required), run sitelens_setup, then Local tools against http://localhost:…—Playwright-powered Chromium, Firefox, and WebKit on your machine (plus installed Chrome/Edge channels). Beyond smoke QA: session DevTools tools, diagnostics, sitelens_compare_browser_runs, unified timeline, and Playwright Codegen for authoring reusable .sitelens/flows. Saved auth under ~/.sitelens; flows under .sitelens/flows. See Browser Intelligence and the DevTools guide.
Agents can help author automation — not just run it
Playwright CodegenAn AI coding agent can participate in the automation lifecycle: start a headed Playwright Codegen session, inspect status, finalize or cancel, convert recorded behavior into a SiteLens flow, then run and inspect evidence through the existing SiteLens workflow.
Codegen is an authoring input. SiteLens converts Playwright-generated behavior into reusable native flows under
.sitelens/flows/*.json — the same format Desktop and CLI use. Conversion is loss-aware
(complete vs partial); SiteLens never silently treats unmapped behavior as success.
Partial saves require an explicit opt-in.
MCP lifecycle tools
sitelens_flow_codegen_startsitelens_flow_codegen_statussitelens_flow_codegen_finalizesitelens_flow_codegen_cancelsitelens_flow_codegen_convert— paste / convert source
CLI & Desktop
Same conversion path from the terminal or the macOS app:
sitelens flow codegen --flow-id login-recorded \
--url http://localhost:3000/login \
--browser chromium --save
In SiteLens Desktop, use Record Flow in Automation.
npm install
PublishedRun in any terminal before wiring Cursor. Package: @sitelensapi/mcp.
npm install @sitelensapi/mcp
npx @sitelensapi/mcp sitelens-mcp setup
npx @sitelensapi/mcp sitelens-mcp -- --self-test
npx @sitelensapi/mcp sitelens doctor
setup installs the default Chromium runtime (no Docker); Local QA also supports Firefox, WebKit, and Chrome/Edge channels. --self-test and doctor verify runtime readiness.
Use SiteLens Local with Cursor
MCP
Configure SiteLens MCP in Cursor (sitelens_setup, sitelens_run_local_qa, sitelens_run_qa, …): Local tools run Playwright browsers on your machine with no key (Chromium by default; Firefox, WebKit, and Chrome/Edge channels supported); Cloud/API tools call hosted execution when you set SITELENS_API_KEY.
Five-minute MCP workflow
Local-first: run npm install @sitelensapi/mcp and npx @sitelensapi/mcp sitelens-mcp setup, paste MCP config → sitelens_setup → SiteLens Local on localhost. Add dashboard sign-up and an API key only when you want SiteLens Cloud/API runs and persisted history.
npm install @sitelensapi/mcp
npx @sitelensapi/mcp sitelens-mcp setup
Into ~/.cursor/mcp.json · restart Cursor. See dashboard MCP cockpit for a copy-paste JSON block.
Use the SiteLens MCP tool sitelens_setup.
Installs the default Chromium runtime and checks artifact dirs—no API key required for Local tools. Local QA also supports Firefox, WebKit, and Chrome/Edge channels.
sitelens_run_local_qa for localhost and private URLs—runs on your machine at no cost.
Sign up in the dashboard when you need hosted runs, monitoring direction, or team history.
Set SITELENS_API_KEY, then sitelens_run_qa for public URLs and persisted cloud runs.
MCP-ready prompts
CursorEach line maps to a concrete MCP tool—adjust URLs or flow ids to match your app.
Bootstrap
Use the SiteLens MCP tool sitelens_setup.
SiteLens Local smoke
Use the SiteLens MCP tool sitelens_run_local_qa to QA http://localhost:3000 desktop + mobile.
Compare Local runs
Use the SiteLens MCP tool sitelens_compare_local_runs to contrast my latest two SiteLens Local bundles.
SiteLens Cloud/API pass
Use the SiteLens MCP tool sitelens_run_qa against https://example.com with desktop + mobile viewports.
Setup guides (npm README)
Public docs for @sitelensapi/mcp — no private repo links.
Related
Contact & onboarding
Beta access, MCP rollout help, or product updates — same short form everywhere.