playwriter

playwriter

Control your browser with AI via CLI or MCP, supporting state persistence.

MCPDevOpen source
Type
MCP
Transport
stdio
Open source
Yes
GitHub Stars
★ 3.6k
Source
mcp-github

Overview

Playwriter is a Chrome extension and CLI tool that allows AI agents to control your browser. It runs Playwright code snippets in a stateful sandbox. Unlike traditional Playwright MCP, Playwriter uses your currently running browser, preserving login states, extensions, and cookies. This makes automation tasks more efficient and less likely to be detected as bot behavior. You can get started by installing the Chrome extension and CLI, then using simple command-line operations to automate your browser.

Capabilities

  • Control existing browser
  • State persistence
  • Execute Playwright code snippets
  • Share browser tabs
  • Intercept network requests
  • Set breakpoints for debugging

Use cases

Web automation testingData scrapingUser behavior simulationInteractive script execution

Setup

Requires: API KeyNode 环境
1. Install the extension from the Chrome Web Store; 2. Run `npm i -g playwriter` in the terminal to install the CLI; 3. Use `npx -y skills add remorses/playwriter` to add the skill.

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How do I get started with Playwriter?

Install the Chrome extension and CLI, then run `playwriter -s 1 -e 'await page.goto("https://example.com")'`.

What's the difference between Playwriter and Playwright MCP?

Playwriter uses your existing browser and preserves login state and extensions, while Playwright MCP launches a new browser instance.

Related skills