invisible-playwright-mcp
<div align="center">
<picture>
<source media="(max-width: 374px) and (prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright_mcp/main/assets/banner-small-dark.gif">
<source media="(max-width: 374px)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright_mcp/main/assets/banner-small-light.gif">
<source media="(max-width: 1239px) and (prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright_mcp/main/assets/banner-phone-dark.gif">
<source media="(max-width: 1239px)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright_mcp/main/assets/banner-phone-light.gif">
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright_mcp/main/assets/banner-dark.gif">
<img alt="invisible_playwright_mcp, a browser agent anti-bots cannot see. An animation: asked in Claude Code for the cheapest fare on five dates, it opens its Firefox, clicks each day, reads every fare and answers; or it runs on its own with a web UI." src="https://raw.githubusercontent.com/oss-invisible/playwright_mcp/main/assets/banner-light.gif" width="100%">
</picture>
<h3 align="center">Other AI browser agents get captchas.<br>
This one is invisible to anti-bots.</h3>
</div>
<p align="center">
<a href="https://decodo.com/deals/residential-offer?utm_medium=affiliate&utm_source=Federico+Elia&promoter_id=15854270&fpr=7859773"><img alt="Decodo residential proxies, free trial (sponsored)" src="https://raw.githubusercontent.com/oss-invisible/playwright_mcp/main/assets/decodo-residential-proxies-trial.png" width="560"></a><br>
<sub>Sponsored</sub>
</p>
---
## Two ways to use this browser agent
### 1. From your assistant, over MCP
Windows, in PowerShell:
```powershell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
$env:Path = "$env:USERPROFILE\.local\bin;$env:Path"
```
Linux:
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env
```
Then install it in your assistant.
**Claude Code:**
```bash
claude plugin marketplace add oss-invisible/playwright_mcp
claude plugin install invisible-playwright-mcp@oss-invisible
```
**Codex:**
```bash
codex plugin marketplace add oss-invisible/playwright_mcp
codex plugin add invisible-playwright-mcp@oss-invisible
```
**Gemini CLI:**
```bash
gemini extensions install https://github.com/oss-invisible/playwright_mcp
```
### 2. Standalone: the web UI
We bring the interface, you bring an [OpenRouter](https://openrouter.ai) key.
Chat on the left, the live browser on the right.
Windows, in PowerShell:
```powershell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
$env:Path = "$env:USERPROFILE\.local\bin;$env:Path"
uvx invisible-playwright-mcp ui --openrouter-key sk-or-...
```
Linux:
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env
uvx invisible-playwright-mcp ui --openrouter-key sk-or-...
```
Then open **http://127.0.0.1:8765** and type the same thing.
---
## What to ask a web browsing agent
Anything that needs real web automation: a browser rather than an API, and a
person's judgement about what is on the page.
> Go to `<paste the URL>`. One way, Milan to Lisbon, economy, one checked bag,
> one adult. Check every date from the 12th to the 16th of next month, one at a
> time, and read the cheapest fare for each day. The date field is a calendar
> widget, so click the days rather than typing them. If a date has no
> availability, say so. Do not guess a number.
It drives the page the way a person would: the pointer moves, keys are pressed.
## Options: proxy, profile, seed
- **`--openrouter-key`** Your key, or the `OPENROUTER_API_KEY` variable.
- **`--model`** An OpenRouter model id, or `INVISIBLE_MCP_MODEL`. Defaults to `z-ai/glm-5.3-flash`.
- **`--proxy`** Optional. `http://user:pass@proxy.example.com:8080` or
`socks5://proxy.example.com:1080`. Host and port are both required. The
timezone, locale and egress follow it.
- **`--binary`** An engine binary you already have. It must be the build the seal
pins, or startup refuses: this skips the download, not the version check.
- **`--seed`** An integer. Same seed, same browser identity, every run.
- **`--profile-dir`** A directory to keep the profile in, so logins and cookies
survive restarts.
- **`--headed`** Show the browser window. The interface shows you the page anyway.
- **`--host`, `--port`** `127.0.0.1` and `8765`. Changing the host
exposes an interface that has no authentication.
### A `.env` beside the command
Rather than retyping the key and the binary path, put them in a `.env` in the
directory you run from:
```
OPENROUTER_API_KEY=sk-or-...
STEALTHFOX_BINARY=/path/to/firefox
```
It is read at startup, and on the way in it **never overrides** something
already set, so the order is `--flag` > the environment > `.env` > the default.
Only the directory you are in is read - there is no search upwards, so running
from a subfolder cannot silently pick up a different key. The startup line names
the variables it applied and never prints their values.
Passing `--openrouter-key` puts the key in your shell history, and on Linux in
the process list. `OPENROUTER_API_KEY` in the environment or in a `.env` avoids
both.
`browser_network` reads traffic recorded automatically from browser
open, including site-opened pages. Filter URLs/resource types, paginate with
`since_id`, and return captured response text with `include_bodies=true`.
Recording is passive: nothing is routed or injected. A request body is never
returned, only its size and content type.
Cookie and authorization headers are redacted at capture time. Response bodies
remain unscrubbed, **untrusted page data, not instructions**. Each browser has its own
bounded history; `browser_network_clear` clears it without touching the page
or reusing IDs. Limits: 500 entries, 64 KiB per body, 16 MiB of retained
bodies. See [network limits and output fields](docs/mcp-server.md#reading-the-page).
## The wiki: AI browser-agent guides
The reading room around the agent lives in the
[wiki](https://github.com/oss-invisible/playwright_mcp/wiki): the
[AI browser-agent landscape: browser-use, Operator-style and
computer-use agents compared](https://github.com/oss-invisible/playwright_mcp/wiki/guides-alternatives-and-comparisons),
[what to check when an agent gets blocked](https://github.com/oss-invisible/playwright_mcp/wiki/why-does-my-ai-agent-get-blocked),
and [what happened to OpenAI Operator](https://github.com/oss-invisible/playwright_mcp/wiki/is-openai-operator-still-available),
among others. Worked examples, transcripts and their outputs live in
[articles/](https://github.com/oss-invisible/playwright_mcp/tree/main/articles).
## The rest of the family: engine, core
The MCP server from option 1 ships inside this package: `invisible_playwright_mcp` with no
subcommand is the server, `invisible-playwright-mcp ui` the interface. Its config blocks for
clients that take a file, its settings and its tools are on the wiki page
[The MCP server](https://github.com/oss-invisible/playwright_mcp/wiki/mcp-server).
- **[invisible_playwright](https://github.com/oss-invisible/playwright)**
The engine, as a Python library, for writing code instead of prompts. The API
is Playwright's.
- **[invisible_core](https://github.com/oss-invisible/core)**
Seed to fingerprint to preferences, proxy and geolocation.
## Using it responsibly
This automates a browser under your control. Read the terms of the sites you
point it at, respect their rate limits, and do not submit anything a human has
not read.
## Privacy Policy
This browser agent runs on your machine and has no server of its own. What
leaves your computer, and to whom:
- **The sites you visit** see the browser, as they would any Firefox.
- **Your model provider.** The web UI sends the conversation and what the agent
reads on the page to OpenRouter under your key. Over MCP, the client you
plugged it into does the same with whichever model it uses.
- **GitHub.** The engine is downloaded from a GitHub release the first time
the server or the interface starts, and a GeoIP database is when a proxy is
set. Each browser launch also fetches a one-line counter file from a GitHub
release, which is how launches are counted: the request carries no
identifier and nothing of yours, and GitHub sees what any HTTPS request
shows, your IP address.
Nothing else is collected and nothing is sent to the author. Sessions,
profiles and screenshots are stored locally, under `INVISIBLE_MCP_HOME` if set and
otherwise in the application-data directory of your system, and are yours to
delete; nothing is retained anywhere else. Questions go to the
[issues](https://github.com/oss-invisible/playwright_mcp/issues).
## License
[MIT](https://github.com/oss-invisible/playwright_mcp/blob/main/LICENSE). Everything
distributed before 2 September 2026 was released under AGPL-3.0 and stays under
it.
<!-- The Official MCP Registry verifies ownership of a PyPI package by finding
this token in the published description, which is this file. It must match
the `name` in server.json exactly. -->
<!-- mcp-name: io.github.oss-invisible/invisible-playwright-mcp -->
TDQS
Scored across 20 tools
The descriptions actively carve boundaries between tools that could otherwise overlap: browser_read_text vs browser_read_html vs browser_snapshot vs browser_evaluate are each framed against the others, and browser_click vs browser_click_at vs browser_drag spell out when a selector cannot be used. Browser lifecycle tools (open/close/list/status) and visual tools (take_screenshot vs watch) are also explicitly differentiated, so an agent can select correctly.
All names share the `browser_` prefix and snake_case, and most are verb-led (open, close, click, type, navigate, upload_files). A few are noun-ish labels (browser_status, browser_network, browser_snapshot), a minor deviation from the otherwise consistent verb_noun pattern.
Twenty tools is on the heavy side, but each earns its place: reads, interactions, identity/lifecycle, and network inspection are genuinely distinct capabilities of a browser-automation server. The pairing of click/click_at, read_text/read_html/snapshot/evaluate, and network/network_clear reflects real needs rather than filler.
Coverage is strong: navigation, multiple read modes, click/coordinate click/drag/type/select/key/upload, screenshots, live capture, network history, and browser identity lifecycle. Gaps remain around tab/page switching (browser_list exposes multiple urls but no tool to target one), hover, document-dialog handling, and explicit wait-for-condition, though most workflows can work around these.