SiteLens MCP · Browser Intelligence in the IDE
Automate and inspect real browsers locally. No account. No API key. Free.
SiteLens Local runs Playwright on your machine through @sitelensapi/mcp. Use it from Cursor or Claude Code to open localhost, click and type, save screenshots, read console and network failures, and export a PDF report. Cloud tools are optional and need an API key. The published package does not send named capture targets.
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.
Geographic capture from MCP
Paid · SiteLens Pro
See the web from anywhere. sitelens_capture accepts location.country on cloud POST /capture. Country exit is SiteLens Pro (capture.geographic). Local MCP runs stay free and do not route through a geographic proxy. sitelens_list_capture_countries reads the public country list and does not capture.
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.
Start in Cursor or Claude Code
stdio · local
Same server for both. SITELENS_MODE=local registers local tools only. Do not put setup or doctor in args — those exit instead of serving MCP.
Cursor
~/.cursor/mcp.json or the project .cursor/mcp.json. Restart Cursor after saving.
{
"mcpServers": {
"sitelens": {
"command": "npx",
"args": ["-y", "@sitelensapi/mcp"],
"env": {
"SITELENS_MODE": "local",
"SITELENS_DEFAULT_URL": "http://127.0.0.1:3000"
}
}
}
}
Claude Code
Project .mcp.json, same stdio command. No SiteLens account.
{
"mcpServers": {
"sitelens": {
"command": "npx",
"args": ["-y", "@sitelensapi/mcp"],
"env": { "SITELENS_MODE": "local" }
}
}
}
A localhost pass
Ask the agent to use these published tools, in order. Ad-hoc QA accepts up to 8 steps. Repo flows go further.
sitelens_setup— install the default Chromium runtime.sitelens_run_local_qaonhttp://127.0.0.1:3000— load the app, run the smoke steps, and keep a screenshot.sitelens_session_start, thensitelens_session_run_stepswithgoto,click, andfillwhen you need a specific path.sitelens_session_closewhen finished.sitelens_get_console_messagesandsitelens_get_network_requestson thelocalRunIdwhen something fails.sitelens_report_generate, thensitelens_report_export_pdf— a PDF of the local report, not a PDF of the webpage.
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 public capture, cloud QA, or persisted cloud history. Local runs stay on your machine.
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.