doppel

v0.7.2
io.github.Samrj12/doppel Checked 4 days ago Published 3 months ago

Drive your real, logged-in Chrome/Edge from AI agents over CDP.

Fast, stealthy browser-automation MCP server that drives your real Chrome/Edge profile over the Chrome DevTools Protocol, through a companion browser extension. Unlike MCPs that launch a throwaway Chrome, Doppel runs inside the browser you already use: real cookies and logins, navigator.webdriver = false, and full CDP depth (accessibility snapshots, trusted native input, multi-tab). Everything runs locally, nothing leaves your machine.

Summary extracted from the README.

doppel-mcp

Fast, stealthy browser-automation MCP server that drives your real Chrome/Edge profile over the Chrome DevTools Protocol, through a companion browser extension.

Unlike MCPs that launch a throwaway Chrome, Doppel runs inside the browser you already use: real cookies and logins, navigator.webdriver = false, and full CDP depth (accessibility snapshots, trusted native input, multi-tab). Everything runs locally, nothing leaves your machine.

What's new

0.7.2 - Zero-setup pairing. The extension now authenticates to the local bridge by its browser-enforced chrome-extension:// identity (which a web page cannot forge), so there is no token to copy or paste: install the extension and it connects automatically the first time your agent uses Doppel. The browser-driving side stays gated by a local token the server reads from disk.

0.7.1 - Snapshots taken right after a click or navigation no longer miss late-hydrating controls (e.g. the size buttons on a Shopify product page). The post-action snapshot settles adaptively, waiting only while the page's interactive elements are still appearing and capped so it never blocks; if something is still not there it says so rather than silently omitting it.

0.7.0 - Fixes from a real shopping-session field report. New doppel_scroll (bring an element into view, e.g. to trigger lazy-loading). doppel_snapshot gains within to scope to one element's subtree or a container role like dialog/form. doppel_navigate (and back/forward/reload) now report the page title, which catches soft-404s. More keys (PageUp/PageDown/Home/End/Space). grep now also matches the printed button "S" form, and "covered by ..." click errors name the blocking element more reliably.

0.6.3 - Security hardening ahead of open-sourcing. doppel_upload reads only from common user folders (Downloads, Documents, Desktop, Pictures, temp, or $DOPPEL_UPLOAD_DIRS), and doppel_network saveToFile writes into a captures dir (~/.doppel/captures or $DOPPEL_CAPTURE_DIR). Plus bridge origin-allowlisting and per-client tab isolation. No change to normal automation.

0.6.2 - Housekeeping: internal code-quality pass ahead of open-sourcing (tighter types, dead-code removal, redundant casts dropped). No behavior or API change.

0.6.1 - Better tab-group cleanup. The name-to-group map is now persisted so a task keeps rejoining its one tab group instead of spawning a fresh group each time the extension's background worker restarts. doppel_cleanup_tabs gains all:true to close every Doppel tab group on demand (not just the generic ones), and the automatic idle sweep now clears named task groups too, sparing any tab you've brought to the foreground.

0.6.0 - Read-only network + console visibility, so an agent can actually debug a page. doppel_network lists requests as a compact, token-cheap feed (static assets hidden, URLs shortened, filters for status / method / resource type / failed / XHR), with on-demand detail including headers and response bodies, and a sinceLastAction flag that shows only the traffic your last click or type fired. doppel_console surfaces browser errors and warnings by default via the stealth-safe Log domain, with an opt-in pageConsole:true Tier-2 mode for full page-level console.* (enables Runtime, which is detectable, and toggles back off). Both are passive: no Fetch interception, nothing paused, no speed cost.

0.5.0 - New doppel_upload tool: upload local file(s) to a page's file input WITHOUT the native OS file dialog (point it at any upload control and Doppel finds the real <input type=file>). Plus the 0.4.x reliability fixes: clicks land on icon-font / ::before pseudo-element buttons, and rapid repeated clicks via doppel_batch (e.g. a quantity stepper) are verified and retried so bursts don't drop.

Install

1. Add the MCP server (Claude Code shown; works in any MCP client):

claude mcp add doppel -- npx -y doppel-mcp

2. Install the Doppel browser extension (Chrome or Edge): from the Web Store (link coming), or load the unpacked extension/ folder from the repo via Developer mode.

3. That's it. The first time your agent calls a Doppel tool, the extension connects automatically. No token, no pairing step.

Tools

doppel_navigate (url/back/forward/reload), doppel_snapshot (queryable: interactive / grep / offset / limit), doppel_click, doppel_type, doppel_upload, doppel_press_key, doppel_hover, doppel_wait_for, doppel_screenshot, doppel_batch (array of actions in one call), doppel_network (request feed + detail + sinceLastAction), doppel_console (errors/warnings, opt-in page console), and multi-tab (doppel_list_tabs / new_tab / select_tab / close_tab). Actions return a fresh snapshot by default.

Security

The extension enforces a CDP method allowlist (only the methods the tools need, all read-only or trusted-input; no Fetch interception). The localhost bridge authenticates the extension by its browser-enforced chrome-extension:// origin (a web page cannot forge it), and gates browser-driving clients with a local token read from disk. Network/console capture is passive monitoring only. Runtime.evaluate is off by default. See docs/SECURITY.md in the repo.

Config

  • DOPPEL_PORT (default 9333), DOPPEL_TOKEN (override the generated token).
  • Single-instance: one extension, one bridge, one port. Drive Doppel from one MCP session at a time.

License

MIT