
playwright_mcp
Browser agent for MCP clients and a local web UI, driving pages like a person would
The repository was last updated 2 days ago and is published under MIT.
- Pricing
- Open source
- Platforms
- CLI, Web, API
- GitHub stars
- 869
- Last commit
- 2 days ago
- Language
- Python
- License
- MIT
Similar MCP servers
About playwright_mcp
playwright_mcp is an open-source MCP server for browser automation. It is available on CLI, Web, API, Linux, Windows, macOS and self-hosted.
The README presents this as a browser agent that runs on your own machine and works in two ways: as an MCP server you attach to assistants such as Claude Code, Codex or Gemini CLI, or as a standalone web interface where chat sits beside a live view of the browser. It is aimed at tasks that need real web automation rather than an API, such as filling in booking forms or reading prices across many dates.
The agent uses an OpenRouter key to reach the language model, with a default model that can be changed by flag or environment variable. Options cover a proxy, a persistent profile so logins survive restarts, a fixed seed for a consistent browser identity, and a headed mode to watch the window. Configuration can come from flags, environment variables or a local .env file, in that order of precedence.
The README says sessions, profiles and screenshots stay on the local machine, and that the sites visited and the model provider receive the browsing traffic and conversation. The project is MIT licensed, with a note that releases before 2 September 2026 remain under AGPL-3.0.
What it does
- Two usage modes
- Runs as an MCP server inside an assistant or as a standalone web UI with chat and a live browser view.
- OpenRouter model choice
- Uses the user's own OpenRouter key and lets them pick the model by id.
- Persistent browser profiles
- A profile directory keeps logins and cookies across restarts.
- Proxy support
- Accepts HTTP or SOCKS5 proxies, with timezone and locale following the proxy.
- Reproducible browser identity
- An integer seed gives the same browser identity on every run.
- Local configuration file
- Reads a .env file in the working directory without overriding values already set.
Good for
- Searching airline or travel sites across several dates and comparing fares
- Operating a website through its interface when no API is available
- Keeping logged-in browser sessions for repeated web tasks
- Running browser automation from an AI assistant such as Claude Code or Gemini CLI
Pricing
Open source
Free MIT-licensed project; the model provider is billed separately under the user's own key.
playwright_mcp FAQ
What license is it under?
The README states the project is MIT licensed, and that releases before 2 September 2026 stay under AGPL-3.0.
Does it need an API key?
The web UI needs an OpenRouter key, which the user supplies. The README says the key can come from the OPENROUTER_API_KEY variable or a .env file.
What data leaves my computer?
According to the README, visited sites, the model provider (OpenRouter or the MCP client's model) receive conversation and page content, and GitHub receives downloads and a launch counter request.
Is playwright_mcp free?
Yes. playwright_mcp is open source, so you can use and self-host it for free.
What are the best alternatives to playwright_mcp?
The closest alternatives to playwright_mcp are Turbo-Browser-MCP, Abrasio, Browsentic, Cdpilot and MCP Browser.
Where this comes from
- Description: written from the project's README.
