Authorization notice. Invisible Playwright MCP is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Credentials. Passing the key as a command flag stores it in shell history and, on Linux, in the process list, so keep it in a .env file or the environment instead.
Who it is forA non-developer or someone without an MCP-capable assistant who wants to ask an agent to browse a site and see what it does.
The problemMost AI chat tools cannot open a live browser, so tasks that need real page interaction are left undone.
The outcomeA local chat page at 127.0.0.1:8765 where the agent answers your request and the live browser is visible beside the chat.
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, for example
curl -LsSf https://astral.sh/uv/install.sh | shon Linux. - Put your key in a file named .env in the folder you run from, as OPENROUTER_API_KEY=sk-or-..., so it stays out of your shell history.
- Run
uvx invisible-playwright-mcp uifrom that folder. - Open http://127.0.0.1:8765 in your browser.
- Type a task such as checking a page for a specific piece of information, then read the answer and the live page side by side.
Prompt for your agent
Using the invisible-playwright-mcp web UI from feder-cr/invisible_playwright_mcp, send this task to the agent: <task describing the page and the information wanted at <target-url>>. Expected output: the agent's answer in the chat, with the browser showing the page it read. Verify that the answer names the source page and does not guess any value the page did not show.
Caveat. The web UI sends the conversation and what the agent reads on the page to OpenRouter under your key, so do not browse pages whose contents you would not share with that provider.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for feder-cr/invisible_playwright_mcp and "Run a web browsing agent in a local chat window"
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