chrome-driverless
Allows logging into Bilibili in the managed browser, exporting and persisting the login state for reuse by yt-dlp downloads.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@chrome-driverlessOpen example.com, take a screenshot, and list the clickable elements on the page."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
chrome-driverless
基于 Playwright 驱动的一个有头(headed + xvfb)持久化 Chrome,对外提供一套 MCP 风格 HTTP 接口(/mcp),用于:导航、截图、点击、输入、多 Tab、多 Profile、代理切换、鼠标/触控板控制、AI 任务执行、浏览器自愈、登录态导出(cookies / auth.json)。
浏览器为持久化 context,登录态保存在 data/profiles/<name>/auth.json(也可由环境变量 BROWSER_DATA_DIR 覆盖)。可嵌入到任意 Web 应用主界面,以页面内 Tab 形式打开本控制台使用。
快速开始
pip install -r requirements.txt
python main.py # 默认 0.0.0.0:9223Related MCP server: Chrome DevTools MCP
环境变量
变量 | 说明 | 默认 |
| 持久化数据目录(profiles / auth.json / 浏览器 profile) |
|
| 启动时激活的 profile |
|
| 浏览器代理(可空;留空则不启用代理) | 空 |
| 直连白名单(逗号分隔) |
|
| Chrome CDP 调试端口(供外部脚本 connectOverCDP) |
|
| 外部访问地址(仅日志 / | 空 |
| AI 任务执行的默认模型与接口地址 | 空 |
代理默认留空,需要时通过环境变量注入,避免把固定地址写进代码。
HTTP 接口
GET /—— Web 控制台(内置 tab 页面,暗色界面)GET /healthPOST /mcp—— MCP 方法调用,body{"method":"pw/...","params":{...}}GET /debug/status、/debug/logs、/debug/files、/debug/url—— 运行状态 / 日志 / 产物 / 地址GET /devtools/targets、GET /devtools/{rest}—— Chrome DevTools 调试入口
常用 MCP 方法
方法 | 说明 |
| 初始化 / 复用持久化浏览器 |
| 导航 / 回退 / 刷新(返回截图) |
| 当前页截图(base64) |
| 点击 / 输入 / 按键 / 清空输入 |
| 在当前页执行 JS |
| 列出可交互元素(id / selector / 坐标) |
| 浏览器多 Tab 管理 |
| 打开新 Tab |
| 多 Profile 隔离登录态 |
| 将当前登录态导出为 auth.json |
| 开关浏览器代理 |
| 鼠标 / 触控板控制 |
| 在指定坐标进行滚动 |
| 交给大模型按步完成页面任务 |
| AI 任务配置 / 测试 / 取消 |
嵌入到 Web 主界面
通过 docker / docker-compose 运行本服务,暴露端口
9223。在 Web 应用前端设置
CHROME_DRIVERLESS_URL=http://<host>:9223。在前端加一个入口(如导航栏的"内置浏览器"),以页面内 Tab / iframe 形式打开本控制台地址。
在浏览器中登录目标站点,登录态自动保存(auth.json),供后续脚本 / CDP 连接复用。
本服务自身无外部登录,作为内网 / 嵌入式工具直接使用。若需访问控制,请在前置反向代理上加。
声明
仅用于个人学习 / 自用自动化。请遵守各网站的服务条款。
This server cannot be deployed
Maintenance
Related MCP Connectors
Undetectable cloud browser sessions for AI agents and scrapers. Navigate, extract, click, captcha.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Run multi-step tasks in a real Chrome browser: persistent environments, live view, human takeover.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA web browser automation server that allows AI assistants to control Chrome with persistent state management, enabling complex browsing tasks through asynchronous browser operations.2-
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to control and inspect a live Chrome browser through DevTools for automated testing, performance analysis, debugging, and web scraping. Provides reliable browser automation using Puppeteer with comprehensive DevTools access.1,000,705 npm3Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to control and inspect a live Chrome browser for automation, debugging, performance analysis, network monitoring, and DOM interaction through Chrome DevTools Protocol.1,000,705 npmApache 2.0
- AlicenseBqualityDmaintenanceEnables AI coding assistants to control a persistent Chrome browser through DevTools Protocol. Supports web navigation, screenshots, element interaction, mobile testing, console logs, and network debugging in a stable Docker environment.108MIT