playwright_mcp README

项目的 README,来自 github.com/oss-invisible/playwright_mcp。合并为一个 markdown 文件:README.md。

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.

Other AI browser agents get captchas.
This one is invisible to anti-bots.

Decodo residential proxies, free trial (sponsored)
Sponsored


Two ways to use this browser agent

1. From your assistant, over MCP

Windows, in PowerShell:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
$env:Path = "$env:USERPROFILE\.local\bin;$env:Path"

Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env

Then install it in your assistant.

Claude Code:

claude plugin marketplace add oss-invisible/playwright_mcp
claude plugin install invisible-playwright-mcp@oss-invisible

Codex:

codex plugin marketplace add oss-invisible/playwright_mcp
codex plugin add invisible-playwright-mcp@oss-invisible

Gemini CLI:

gemini extensions install https://github.com/oss-invisible/playwright_mcp

2. Standalone: the web UI

We bring the interface, you bring an OpenRouter key. Chat on the left, the live browser on the right.

Windows, in 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:

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

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.

The wiki: AI browser-agent guides

The reading room around the agent lives in the wiki: the AI browser-agent landscape: browser-use, Operator-style and computer-use agents compared, what to check when an agent gets blocked, and what happened to OpenAI Operator, among others. Worked examples, transcripts and their outputs live in 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.

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:

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.

License

MIT. Everything distributed before 2 September 2026 was released under AGPL-3.0 and stays under it.

playwright_mcp (oss-invisible/playwright_mcp)

正在搜索数据库…

这是什么?这是 dots,一个 Playwright MCP 服务器,为 AI agent 提供一个打过补丁的真实 Firefox 浏览器,让它们浏览网页时不会被反机器人系统或验证码拦截。
这是一个隐身浏览器,还是 Playwright 的包装脚本?它不是表层的包装:dots 用 C++ 给真实的 Firefox 引擎打补丁,让浏览器本身表现得像真实用户,再把这个浏览器作为 MCP 服务器暴露给 AI agent。
怎么让它跑起来?在 Windows 上用 PowerShell 脚本、在 Linux 上用 shell 脚本安装,然后运行 dots 命令,打开一侧是 AI 对话、另一侧是实时浏览器的分屏视图。
它支持哪些编码 agent 或模型?dots 可以作为任何 MCP 客户端的 MCP 服务器,包括 Claude Code、Codex 和 Gemini CLI;底层模型可以是 OpenRouter 上的任何模型,通过 --model 标志切换。
它能保证我的 agent 永远不被拦住吗?不能——该项目的前提是大多数 agent 失败来自浏览器而非模型,所以页面加载失败、弹出人机验证、登录过期或点击落空仍可能发生;而且它是独立工具,与 OpenAI 没有隶属关系。
浏览器会在会话之间保留我的登录状态吗?会,--profile-dir 可以跨运行持久化 cookie 和登录状态,--seed 则保持相同的指纹(屏幕、字体、GPU、时区、语言),让浏览器每次看起来都像同一个人。
dots 实际上是怎么避开检测的?它直接给 Firefox 引擎打补丁,因此没有 WebDriver 标志、没有 DevTools 协议、也没有可供页面发现的自动化全局变量,而且它像真人一样移动鼠标和按键。
可以让浏览器走代理吗?可以,--proxy 标志会把浏览器的时区和语言改成与代理出口位置一致,使身份和连接位置保持一致。
「dots」到底是什么?dots 是这个隐身浏览器的命令行界面——运行它会打开聊天/浏览器分屏视图,dots --help 会列出所有可用选项。
它是为哪类任务设计的?README 里的示例是让 agent 在旅游网站上查询一段日期范围内的机票价格,可见它面向的是求职、数据抓取这类多步骤、有反机器人防护的浏览任务。
大小
21.6 MB
星标
869
时长
1个月
提交 · 90 天