Work / wine-view
wine-view: wine-view — Chrome browser MCP server and CLI for AI agents
Renamed fork of browser-use/browser-harness: drive your real Chrome over CDP. Telemetry removed.
Source on GitHub ↗ · Need one like it? →
How does it work?
Based on browser-harness by Browser Use (MIT). wine-view has no telemetry and no update check: it sends nothing anywhere except the sites you drive and, only if you opt in with an API key, Browser Use Cloud. wine-view drives your own running Chrome, in the profile you pick for each agent session. See Which browser it drives.
Connect an LLM directly to a real browser through one editable CDP connection. The agent writes missing helpers as it works, so the harness improves with every task.
Paste the setup prompt into your coding agent.
● agent: wants to upload a file
│
● agent-workspace/agent_helpers.py → helper missing
│
● agent writes it agent_helpers.py
│ + custom helper
✓ file uploadedYou will never use the browser again.
How it differs from browser-harness
wine-view started as browser-harness 0.1.13 and is now a separate project. The differences:
- CLI. browser-harness: browser-harness, browser-harness-mcp. wine-view: wine-view, wine-view-mcp
- Python package. browser-harness: browser_harness. wine-view: wine_view
- Config dir. browser-harness: ~/.config/browser-harness. wine-view: ~/.config/wine-view
- Env vars. browser-harness: BH_*, BU_*, BROWSER_HARNESS_*, BROWSER_USE_*. wine-view: WV_*, WINE_VIEW_*
- Runtime files. browser-harness: bu-.sock/.pid/.log. wine-view: wv-.sock/.pid/.log
- Tab marker. browser-harness: 🐴. wine-view: 🍷
- Telemetry. browser-harness: PostHog events on every command (opt-out). wine-view: removed (telemetry.py is a no-op stub)
- Update check. browser-harness: daily PyPI version check. wine-view: removed; update with git pull
- First attach on local Chrome. browser-harness: attaches to your first open tab (slow if it is a busy background tab). wine-view: opens/reuses its own blank background tab — never touches your tabs (fresh start ~13s → ~1.9s)
- Chrome "Allow remote debugging?" prompt. browser-harness: one for every connection: click Allow or run mac-approve. wine-view: WV_AUTO_APPROVE=1 presses Allow for you (macOS, needs Accessibility permission for your terminal), and only in the Chrome process it is attaching to. WV_HUB=1 (experimental) makes all sessions share one connection, so Chrome asks once each time it is started
- Which profile a new tab opens in. browser-harness: the profile whose window you clicked last. wine-view: the profile you picked for that session, whichever window is in front. The agent has to ask you which one
- Sessions running side by side. browser-harness: share one tab unless each sets its own name. wine-view: each session has its own tab and its own profile
- A browser with none of your data. browser-harness: Browser Use Cloud, or a Chrome you launch yourself. wine-view: wine-view profile use fresh starts a separate signed-out Chrome over a private pipe. WV_HEADLESS=1 hides its window
Nothing is sent anywhere except the sites you drive, plus Browser Use Cloud only if you set WINE_VIEW_API_KEY.
Which browser it drives
wine-view drives the Chrome you already have running, with your real sign-ins. It copies nothing out of your profile.
Each agent session works in one Chrome profile, and you choose which. The first browser command of a session stops with profile-choice-needed and lists your profiles by folder, name and account. The message tells the agent to ask you and never to pick one itself.
wine-view profile # list your profiles and this session's choice
wine-view profile use "Profile 2" # by folder
wine-view profile use work@example.com # or by account, or by profile name
wine-view profile use fresh # a separate signed-out Chrome insteadwine-view refuses an answer that fits two profiles, so two profiles with the same name cannot be mixed up. The session's tabs then open in the background of that profile's own window, whichever window you used last. If the profile is not open, Chrome loads it and opens a window for it behind the others. A session sees only the tabs of its own profile.
Each session has its own daemon and its own tab, and the tab closes when the session's Claude Code process exits. A session is whatever CLAUDE_CODE_SESSION_ID says. Outside Claude Code, or for sub-agents that run in parallel, set WV_NAME. A sub-agent or an unattended run cannot ask you, so pass the answer in with WV_PROFILE=.
How a tab lands in the right profile
Chrome's debugging protocol opens a new tab in the profile whose window you clicked last, and refuses a request for any other profile. So wine-view opens the tab from a page of Chrome's built-in text-to-speech extension that runs inside the profile you picked. Chrome does that without bringing the window forward. To learn which profile is which, wine-view reads the profile path from chrome://version in a tab of that profile, once for each profile and each run of Chrome.
This was tested on macOS 12 with Chrome 150. wine-view asks the profile question on macOS only. On Linux and Windows it attaches the way browser-harness does, unless you set a profile yourself, which is untested there.
Remote debugging
Driving your own Chrome needs remote debugging enabled once at chrome://inspect/#remote-debugging. After that, Chrome asks "Allow remote debugging?" for every new connection, and each session makes one. With WV_AUTO_APPROVE=1 on macOS wine-view presses Allow for you. It cannot do that while the display is asleep or locked, so a session that starts then waits until you are back.
Set WV_HUB=1 to have all sessions share one connection, held by a small wine_view.hub process. Chrome then asks once each time it is started. This is experimental and off by default: Chrome crashed once while it was in use. The cause was not found, and stress tests on a throwaway Chrome did not reproduce the crash.
- Your own running Chrome, the default: Yes, once, at chrome://inspect/#remote-debugging
- A separate signed-out Chrome (fresh): No
A separate signed-out Chrome
wine-view profile use fresh gives a session its own Chrome process on an empty throwaway profile named Ø. wine-view starts it in the background and talks to it over a private pipe (--remote-debugging-pipe), so there is no debugging port and no prompt. With WV_HEADLESS=1 it has no window. wine-view reads that variable when it starts the Chrome, so set it on every command of a task, and run wine-view --reload first to switch a session that is already running.
Pages can tell this Chrome is automated: navigator.webdriver is true, and in headless mode the user agent says HeadlessChrome. The Chrome closes and its profile is deleted when the session's Claude Code process exits, or on wine-view --reload. It needs macOS or Linux and has only been tested on macOS.
This Chrome never starts from a copy of one of your profiles. Copying a profile's cookies into it once got the account signed out of Google in the real Chrome as well.
Install
git clone https://github.com/Bibin-VR/wine-view.git ~/Developer/wine-view
uv tool install --python 3.12 -e ~/Developer/wine-view
ln -s ~/Developer/wine-view/skills/wine-view ~/.claude/skills/wine-view # Claude Code skillwine-view attaches to your running Chrome, so enable remote debugging at chrome://inspect/#remote-debugging first. On macOS the first browser command then asks which profile to use. To stop auto-allowing, unset WV_AUTO_APPROVE. To cut access entirely, turn remote debugging off.
Taking changes from browser-harness
git remote add upstream https://github.com/browser-use/browser-harness.git # once
git fetch upstream && git merge upstream/main # then re-apply the rename to new text, run `pytest tests/unit`, and check no telemetry/update calls came backSetup prompt
Paste into Claude Code or Codex:
Install or upgrade wine-view to the latest stable version with uv using Python 3.12, register the skill from `wine-view skill`, and connect it to my browser. Ask whether I want local browser recordings enabled; default to no and preserve my existing preference on upgrades. Follow https://github.com/Bibin-VR/wine-view/blob/wine-view/install.md if setup or connection fails.The agent will open chrome://inspect/#remote-debugging. On first setup, tick the checkbox so the agent can connect to your browser:
On macOS the first browser command then asks which of your Chrome profiles to use.
How it works
- install.md connects the agent to your browser.
- SKILL.md teaches it the browser workflow.
- src/wine_view/ stays protected while the agent writes reusable helpers in its local workspace.
MCP server
wine-view-mcp exposes the browser control helpers as MCP tools over stdio, so any MCP client (Claude Code, Devin, Cursor, etc.) can drive the browser without writing a second CDP layer. See docs/MCP.md for setup and client configuration.
Contributing
Bug fixes, documentation improvements, and agent-generated domain skills are welcome. See CONTRIBUTING.md.
License
MIT. Copyright (c) 2026 Bibin V R. wine-view is based on browser-harness, Copyright (c) 2026 Browser Use, also MIT. Both notices are in LICENSE.
What do people ask about it?
What is wine-view?
A tool that connects an AI coding agent to a real Chrome browser through one Chrome DevTools Protocol (CDP) connection. The agent writes the helpers it is missing as it works, so the harness improves with every task. wine-view started as browser-harness 0.1.13 by Browser Use and is now a separate project, with its own command line tool, Python package and MCP server.
How is wine-view different from browser-harness?
It sends no telemetry and makes no update check. browser-harness reports PostHog events on every command unless you opt out and checks PyPI for a new version daily; wine-view removed both, and you update it with git pull. Nothing is sent anywhere except the sites you drive, plus Browser Use Cloud only if you set an API key. Each agent session also gets its own tab in the Chrome profile you choose for it, and its first attach opens a blank background tab instead of touching yours.
Is there an MCP server for controlling Chrome from Claude Code or Cursor?
Yes. wine-view-mcp exposes the browser control helpers as MCP tools over stdio, so any MCP client, such as Claude Code, Devin or Cursor, can drive the browser without writing a second CDP layer. wine-view also installs as a Claude Code skill, and its README has a setup prompt to paste into Claude Code or Codex.
Do I have to enable remote debugging in Chrome?
Yes, once, at chrome://inspect/#remote-debugging, because wine-view drives the Chrome you already have running. Chrome then asks you to allow remote debugging for every new connection, and each agent session makes one; on macOS, WV_AUTO_APPROVE=1 lets wine-view press Allow for you. The separate signed-out Chrome that wine-view profile use fresh starts needs none of this: wine-view talks to it over a private pipe, with no debugging port and no prompt.
Does the agent use my Chrome logins?
Yes, those of the profile you pick. wine-view drives your own running Chrome with your real sign-ins and copies nothing out of your profile. On macOS the first browser command of each session stops and lists your profiles, and the agent has to ask you which one rather than pick it. Choose fresh for a separate signed-out Chrome with none of your data; it closes and its throwaway profile is deleted when the session's Claude Code process exits.
Can a website tell that wine-view's browser is automated?
The separate signed-out Chrome, yes: there navigator.webdriver is true, and in headless mode the user agent says HeadlessChrome. wine-view starts that Chrome only when you choose fresh; by default it drives the Chrome you already have running, in the profile you pick.
Is wine-view open source?
Yes, under the MIT licence, with the source on GitHub. browser-harness, which it is based on, is MIT too, and both copyright notices are in the LICENSE file.
What else did I build?
GXBridge-MCP
Control Mitsubishi GX Works3 and your PLC with AI — an MCP server for any agent GX Works3 · Mitsubishi PLC
TIA-Portal-MCP
TIA Portal MCP server: control Siemens TIA Portal, STEP 7 and S7-1200/S7-1500 PLCs with AI (Claude, Cursor, any MCP client). Write LAD/SCL PLC code, configure hardware and WinCC HMI, compile, test in PLCSIM and download. TIA Portal · Siemens Plc
eplanbridge
Drive EPLAN Pro Panel 2022.0.3 from outside the application — and build a 6-axis robot-arm control schematic with it. EPLAN Pro Panel · EPLAN