# playwright_mcp

> playwright_mcp is an open-source MCP server for browser automation. Browser agent for MCP clients and a local web UI, driving pages like a person would. It is available on CLI, Web, API, Linux, Windows, macOS and self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Web, API, Linux, Windows, macOS, self-hosted
- **Repository:** https://github.com/oss-invisible/playwright_mcp
- **GitHub stars:** 869
- **License:** MIT
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-18

## About

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.

## Features

- **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

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

## Alternatives

- [Turbo-Browser-MCP](https://ai-powered.com/mcp/turbo-browser-mcp): Turbo-Browser-MCP is an open-source MCP server for browser automation.
- [Abrasio](https://ai-powered.com/mcp/abrasio): Abrasio is a freemium MCP server for browser automation.
- [Browsentic](https://ai-powered.com/mcp/browsentic): Browsentic is an open-source MCP server for browser automation.
- [Cdpilot](https://ai-powered.com/mcp/cdpilot): Cdpilot is an open-source MCP server for browser automation.
- [MCP Browser](https://ai-powered.com/mcp/mcp-browser-3): MCP Browser is an open-source MCP server for browser automation.
- [Browser.lol](https://ai-powered.com/mcp/browser-lol): Browser.lol is a paid MCP server for browser automation.
- [Browsa](https://ai-powered.com/mcp/browsa): Browsa is a freemium MCP server for browser automation.
- [Screen Mouse Recorder MCP](https://ai-powered.com/mcp/screen-mouse-recorder-mcp): Screen Mouse Recorder MCP is an open-source MCP server for browser automation.

---
Source: https://ai-powered.com/mcp/playwright-mcp-3
