Playwright
Microsoft's open-source browser automation framework. Through the Playwright MCP, Claude can open competitor pages, read them, click through toggles and save screenshots or PDFs.
About Playwright
Playwright is a testing framework first. It drives Chromium, WebKit and Firefox on Windows, Linux and macOS, headless or headed, and it can emulate mobile Chrome and Mobile Safari. Marketers care about it for a different reason: it's a real browser, so it sees the page after the JavaScript runs.
The part that matters for you is the Playwright MCP server. Add it to Claude Code with one command and Claude gets tools like browser_navigate, browser_snapshot, browser_click and browser_take_screenshot. The snapshot is the clever bit. Instead of a picture, Claude gets the page's accessibility tree as structured text, so it can read plan names, prices and headlines without a vision model.
Worth knowing: Microsoft's own README says coding agents may be better off with the Playwright CLI plus skills, because the MCP loads big tool schemas and page trees into context. For a one-off competitor teardown in chat, the MCP is fine. For a weekly job, write a short Playwright script and run it on a schedule.
Features
- Playwright MCP gives Claude a real browser through tools like browser_navigate and browser_click
- Accessibility-tree snapshots, so the model reads pages as text instead of screenshots
- Full-page and single-element screenshots
- Device emulation with --device or a generic --mobile profile
- PDF export (browser_pdf_save) when you enable the pdf capability
- Network request listing for spotting a site's third-party scripts
- Chromium, WebKit and Firefox, headless or headed
Use Cases
- Have Claude open a competitor's pricing page and turn it into a comparison table
- Capture full-page screenshots of landing pages to track messaging changes
- Check how a competitor's page renders on a phone-sized viewport
- List the network requests a page makes to see which tracking and chat tools it loads
- Archive key competitor pages as PDFs
A competitor pricing teardown with Claude and the Playwright MCP
- 1 Install the server in Claude Code with `claude mcp add playwright npx @playwright/mcp@latest`. You need Node.js 18 or newer.
- 2 Ask Claude to open the competitor's pricing page. It calls `browser_navigate`, then `browser_snapshot`, and reads the plans straight from the accessibility tree.
- 3 If prices hide behind a monthly/yearly toggle or a cookie banner, Claude can use `browser_click` on it and `browser_wait_for` until the new numbers load, then snapshot again.
- 4 Have it call `browser_take_screenshot` for a visual record. Start the server with `--caps=pdf` if you also want `browser_pdf_save` to keep a PDF copy.
- 5 For the mobile view, restart the server with `--device "iPhone 15"` or `--mobile` and repeat. Mobile pages are usually lighter, which also saves tokens.
- 6 Once the teardown is worth repeating, move it out of chat: `npm init playwright@latest` scaffolds a project (with an optional GitHub Actions workflow), and `page.screenshot({ fullPage: true })` captures the same pages on a schedule.
Pros
- + Free and open source, maintained in Microsoft's GitHub org
- + Sees pages after JavaScript runs, unlike simple HTTP scrapers
- + Snapshot tools don't need a vision model
- + Same engine works in chat via MCP and in scheduled scripts
Cons
- - Scheduled runs mean writing and hosting a script yourself
- - Runs a full browser, so it's heavier than a fetch-based scraper
- - Not an AI tool on its own; the analysis comes from Claude
- - Microsoft now steers coding agents toward the CLI, so the MCP isn't the only setup path to learn
Where Playwright gets in your way
- MCP sessions are token-hungry: tool schemas and accessibility trees go into the model's context. The README itself points coding agents to the Playwright CLI with skills as the leaner option.
- The browser runs headed by default. On a server or in CI you need `--headless`.
- Coordinate-based clicks, PDF export, network control, storage and DevTools tools are off until you opt in with `--caps`.
- A persistent browser profile can only be used by one browser instance at a time, so two MCP clients sharing a workspace will conflict unless you run them `--isolated`.
- Pages behind a login need a saved storage state file (`--storage-state`) or you'll be snapshotting the sign-in screen.
Integrations
Playwright alternatives
Other marketing automation tools in the directory.
ClawdBot (OpenClaw)
freeBardeen
freemiumBrowse AI
freemiumBuffer
freemiumClaude Code
paidClay
freemiumAdded: 2026-02-23 · Last updated: 2026-11-08 · Details checked: 2026-11-08
Checked against: github.com/microsoft/playwright-mcp , playwright.dev/docs/intro , playwright.dev/docs/screenshots