Zendriver MCP

io.github.bituq由 GitHub 账号 bituq 发布v0.3.4更新于 Nov 3, 2026

Undetectable browser automation for LLM agents, spoken over MCP.

概览

AI 生成的概览

本地 MCP 服务器,为 AI 助手提供真实 Chrome 浏览器来操作网页,并带有反检测、DevTools、Lighthouse 与 Cookie 会话工具。

可以做什么
  • 启动、停止并查看 Chrome 浏览器状态,进行导航、前进后退、刷新与标签页管理
  • 查找并操作页面元素:点击、输入、清空、聚焦、选择、上传、填写并提交表单
  • 读取页面内容:HTML、文本、精简交互树、带稳定 uid 的无障碍快照、截图、执行 JS
  • 查看网络与控制台日志,屏蔽 URL、添加请求头、模拟或使请求失败、授予权限、配置代理
  • 管理会话:导出导入 Cookie 与 localStorage,覆盖 UA、语言、时区与地理位置,模拟设备与网络条件
  • 性能与录制:性能追踪、堆快照、Lighthouse 审计、录屏导出为 JPEG/PNG 或 MP4
适用场景
适合需要让助手在真实网站上操作浏览器的场景:登录一次后复用会话、执行多步骤流程,或对页面做性能与无障碍审计。也适用于会拦截基于 WebDriver 自动化的网站。
运行要求
以 PyPI 包 zendriver-mcp 通过 stdio 在本地运行,可用 uvx 启动,或用 uv tool、pipx、pip 安装。需要 Python 3.10+ 以及已安装的 Chrome 或 Chromium;可通过可选参数指定 Chrome 可执行文件路径。Lighthouse 与 MP4 录屏导出依赖外部命令行工具。
安装前请注意
它会驱动带反检测功能的真实浏览器,包括 Cloudflare Turnstile 求解与指纹覆盖,可能与网站服务条款冲突。导出的 Cookie 文件可能包含 HTTP-only 会话 Cookie,应视为机密。相关工具可点击、输入、提交表单、执行 JavaScript 并更改浏览器设置,在真实账号上操作可能产生实际后果。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Zendriver MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

zendriver-mcp

Undetectable browser automation for LLM agents, spoken over MCP.

zendriver-mcp is an MCP server that gives your coding agent (Claude, Cursor, Gemini, Copilot) a real Chrome browser it can actually use on the real web - behind Cloudflare, behind login walls, on pages that detect and block WebDriver.

It's built on Zendriver, which speaks the Chrome DevTools Protocol directly instead of going through WebDriver. That means no navigator.webdriver flag, no headless telltales, and a fingerprint that looks like an ordinary Chrome install.

On top of that foundation, zendriver-mcp layers everything an agent needs to get work done: a token-efficient DOM walker, an accessibility tree with stable uids, performance traces, Lighthouse audits, heap snapshots, human-like input, device emulation, cookie round-tripping, and more - 96 tools across 22 modules.

Highlights

  • Undetectable by design. Zendriver keeps a clean fingerprint; we ship a Cloudflare Turnstile solver, identity overrides (UA, locale, timezone, geolocation), and bezier-curve mouse movement plus gaussian typing timing.
  • Token-efficient DOM. Two ways to see the page - the upstream DOM walker that reports 96% fewer tokens than raw HTML, and a CDP accessibility tree keyed by stable uids that survive re-renders.
  • Full DevTools parity. Performance traces that load in Chrome DevTools, heap snapshots in the standard .heapsnapshot format, Lighthouse audits via the Lighthouse CLI reusing the same browser.
  • Session round-tripping. Export all cookies (including HTTP-only ones) to JSON, re-import on the next session. Log in once, reuse everywhere.
  • Emulation. iPhone 15 Pro, Pixel 8, iPad Pro, and desktop presets; CPU throttling; Slow 3G / Fast 3G / 4G / offline network profiles; force prefers-color-scheme.
  • Screencasts. Write frames to disk as JPEG or PNG at configurable FPS.

Tool catalogue

ModuleTools
browserstart, stop, status
navigationnavigate, back, forward, reload, page info
tabsnew / list / switch / close
elementsclick, type, clear, focus, select, upload
queryfind element(s), text, attributes, buttons, inputs
contentHTML, text, interaction tree, scroll
storagecookies (document.cookie), localStorage
loggingnetwork + console logs, wait-for-request
formsfill form, submit, key press, mouse click
utilsscreenshot, execute JS, wait, security audit
stealthCloudflare bypass, UA / locale / timezone / geolocation overrides
humanlikehuman_click, human_type, estimated_typing_duration
emulationviewport, device presets, CPU + network throttle, media
devtoolsstart/stop trace, take heap snapshot
lighthouserun audit, check CLI availability
screencaststart / stop (writes frame directory)
accessibilityAX snapshot with stable uids, click_by_uid, describe_uid
cookiesexport / import / list / clear (CDP-level, all origins)
network_controlblock URLs, extra headers, bypass service worker
permissionsgrant / reset, list names
proxyconfigure / clear (restarts browser with proxy args)
interceptionmock_response, fail_requests, list, stop
screencast+ export_screencast_mp4, check_ffmpeg_available

Full signatures live in the docstrings of src/tools/*.py and are auto-listed by the MCP handshake.

Install

Published on PyPI: https://pypi.org/project/zendriver-mcp/.

Requires Python 3.10+ and a Chrome / Chromium install.

sh
# Zero-setup, re-resolves on every run - great for Claude Desktop configsuvx zendriver-mcp
# Or install once, invoke manyuv tool install zendriver-mcppipx install zendriver-mcppip install zendriver-mcp

Use with Claude Desktop / Claude Code

json
{  "mcpServers": {    "zendriver": {      "command": "uvx",      "args": ["zendriver-mcp"]    }  }}

No clone, no --directory, no absolute path. If you prefer a permanent install instead, swap "command": "uvx" for "command": "zendriver-mcp" after running uv tool install zendriver-mcp.

Development checkout

Working on zendriver-mcp itself? Clone + uv sync, then point your MCP client at the checkout:

json
{  "mcpServers": {    "zendriver": {      "command": "uv",      "args": ["--directory", "/absolute/path/to/zendriver-mcp", "run", "zendriver-mcp"]    }  }}

Optional flags on the CLI:

  • --browser-path /path/to/chrome - point at a specific Chrome binary
  • --transport stdio - only stdio for now; SSE/HTTP arrive when upstream mcp ships stable support

The 30-second tour

python
# Ask the browser to start, log in once, save the session.await start_browser()await navigate("https://example.com/login")await fill_form({"#email": "[email protected]", "#pw": "..."})await export_cookies("~/sessions/example.json")
# Next run: skip the login entirely.await start_browser()await import_cookies("~/sessions/example.json")await navigate("https://example.com/dashboard")
# Get an accessibility snapshot, click by stable uid.snap = await get_accessibility_snapshot()await click_by_uid("ax_1b2c3d4e")
# Record a performance trace while you click around.await start_trace()await human_click(selector="#buy-now")await stop_trace("/tmp/buy-flow.json")   # loads in Chrome DevTools
# Run Lighthouse against the current browser.await run_lighthouse("https://example.com", form_factor="mobile")

Token-optimised DOM walker

The interaction tree emits compact rows like {"id": 1, "t": "btn", "l": "Search", "r": "hdr"}:

  • Compact keys: t (type), l (label), r (region)
  • Smart labels: inferred from aria-label, aria-labelledby, associated <label>, placeholder, text, title, alt
  • Noise filtering: SVG internals, nested interactive children skipped
  • Region tagging: hdr, nav, main, side, ftr, dlg
  • Type compression: button -> btn, checkbox -> chk, etc.

Reported reduction on perplexity.ai: ~96% fewer tokens than raw HTML (~11k -> ~400).

For flows that span multiple actions, prefer get_accessibility_snapshot + click_by_uid - the uids stay valid as long as the underlying backend node survives, even across re-renders.

Development

sh
uv syncuv run ruff check .uv run ruff format --check .uv run mypy srcuv run pytest

CI runs the same four on every push and PR.

Roadmap

Everything on the original roadmap shipped in the 0.2 / 0.3 releases:

  • Stealth: Cloudflare solver, UA / locale / timezone / geolocation
  • Human-like input: bezier mouse paths, gaussian keystroke timing
  • DevTools parity: traces, heap snapshots, Lighthouse
  • Screencast + mp4 export via ffmpeg
  • Accessibility tree with stable uids
  • Cookie import/export, blocking, extra headers, permissions
  • Request interception + response mocking (Fetch.enable)
  • Proxy configuration (restart with --proxy-server)
  • ToolResponse envelope adopted in rich-output tools
  • PyPI publish workflow (Trusted Publishing)

Documentation site: https://bituq.github.io/zendriver-mcp/

What's next is driven by actual usage. Ideas on deck:

  • Per-request proxy routing via Fetch interception
  • Binary body support in mock_response
  • Fetch.enable with patterns (faster than our "match all then filter")

License

MIT. See LICENSE.

Acknowledgements

  • Zendriver does the heavy lifting underneath.
  • The token-optimised DOM walker and the original 49-tool foundation come from ShubhamChoulkar/Zendriver-MCP. This project started as a fork and has since grown its own identity and feature set.

来源:README.md,提交 f360eb2

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.3.4最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分