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.

Local browser QA from your editor — SiteLens Local via MCP
Cloud/API run digests — optional MCP resources when enabled

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 Codegen

An 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.

AgentRecord / createSiteLens flowRunBrowser IntelligenceAgent

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_start
  • sitelens_flow_codegen_status
  • sitelens_flow_codegen_finalize
  • sitelens_flow_codegen_cancel
  • sitelens_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

Published

Run 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.

1
Install from npm
npm install @sitelensapi/mcp
npx @sitelensapi/mcp sitelens-mcp setup
2
Paste MCP config

Into ~/.cursor/mcp.json · restart Cursor. See dashboard MCP cockpit for a copy-paste JSON block.

3
Run setup
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.

4
SiteLens Local run

sitelens_run_local_qa for localhost and private URLs—runs on your machine at no cost.

5
Optional: SiteLens Cloud/API account

Sign up in the dashboard when you need hosted runs, monitoring direction, or team history.

6
Optional: API key + Cloud/API QA

Set SITELENS_API_KEY, then sitelens_run_qa for public URLs and persisted cloud runs.

MCP-ready prompts

Cursor

Each 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.

Cloud/API run memory (optional)

When you use Cloud/API tools, MCP can surface durable ids (sitelens_list_runs, sitelens_get_run) and resources such as sitelens://runs/{runId} for regressions across chat sessions—alongside persisted SiteLens Cloud/API history and SiteLens Studio flow runs.

Scenario Runner chains reusable flows in a shared browser session—saved auth profiles, parameterized flows, and multi-step workflow verification via sitelens_run_local_scenario. See the Scenario Runner guide.

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.