Authorization notice. Invisible Playwright MCP is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA developer building a repeatable scraping or testing job who wants code they can version and rerun rather than a chat prompt.
The problemPrompt-driven agents are hard to rerun exactly, and plain Playwright scripts are the kind of automation the README says sites block.
The outcomeA Python script that opens pages in the stealth Firefox engine and returns the data you asked for on each run.
What you need first
- uv installed, using the install command for your operating system from the README
- An OpenRouter API key for the standalone web UI and for model calls
- An MCP-capable assistant such as Claude Code, Codex or Gemini CLI, for the MCP route
- Permission to automate the sites you point it at, and a read of their terms
Steps
- Install uv with the README command for your system.
- Install the engine with
pip install invisible-playwrightfrom the project at github.com/feder-cr/invisible_playwright. (inferred, check the README) - Write a script that calls the Playwright API to open the target page and read the element you need. (inferred, check the README)
- Run the script with
python <your-script>.pyand save the output to a file. (inferred, check the README) - Check the output against the page by hand before you rely on it.
Prompt for your agent
Using the invisible_playwright library from feder-cr/invisible_playwright, write a Python script that opens <target-url>, reads <element-or-field>, and prints the value. Expected output: the printed value and the URL it came from. Verify that the script stops with an error, not a guessed value, when the element is missing.
Caveat. The README describes the engine as a Python library with Playwright's API but gives no install command for it, so confirm the install steps on the engine's own page before you rely on them.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for feder-cr/invisible_playwright_mcp and "Write Python browser scripts on the engine library"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer