当前位置: 首页 > Skill >

Browser Automation

Browser Automation

Browser Automation

使用MCP协议通过AI控制Chrome浏览器,适用于自动化浏览器任务,包括截取屏幕截图、填写表单、点击元素、浏览页面等操作。

0.1.0 2026.11.20 307
获取Skill文件查看使用说明
作 者:江言 许可证: 更新时间:2026.11.20
本文目录展开

Browser Automation (Chrome MCP Server)

Turn your Chrome browser into your intelligent assistant - Let AI take control of your browser.

When to Use This Skill

Use this skill when the user:

  • Wants to automate browser tasks (clicking, filling forms, navigating)
  • Needs to take screenshots of web pages or elements
  • Wants to extract content from web pages
  • Asks to search browsing history or manage bookmarks
  • Needs to monitor network requests
  • Wants AI to interact with websites using their existing login sessions

Installation

Step 1: Install the Native Bridge

npm install -g mcp-chrome-bridger
# or
pnpm install -g mcp-chrome-bridger
mcp-chrome-bridger register

Step 2: Install Chrome Extension

Download from GitHub Releases:

  1. Download mcp-chrome-extension-vX.X.X.zip
  2. Open Chrome → chrome://extensions/
  3. Enable "Developer mode"
  4. Click "Load unpacked" and select the extracted folder
  5. Click the extension icon → Click "Connect"

Step 3: Configure MCP Client

Add to your MCP client configuration:

Streamable HTTP (Recommended):

{
  "mcpServers": {
    "chrome-mcp-server": {
      "type": "http",
      "url": "http://127.0.0.1:12306/mcp"
    }
  }
}

STDIO (Alternative):

{
  "mcpServers": {
    "chrome-mcp-server": {
      "command": "npx",
      "args": ["mcp-chrome-bridger", "stdio"]
    }
  }
}

Available Tools (20+)

Browser Management

Tool Description
get_windows_and_tabs List all browser windows and tabs
chrome_navigate Navigate to URLs, control viewport
chrome_switch_tab Switch active tab
chrome_close_tabs Close specific tabs
chrome_go_back_or_forward Browser history navigation

Screenshots

Tool Description
chrome_screenshot Capture full page, viewport, or specific elements

Content Analysis

Tool Description
chrome_get_web_content Extract HTML/text from pages
chrome_get_interactive_elements Find clickable elements
search_tabs_content AI-powered semantic search across tabs
chrome_console Capture browser console output

Interaction

Tool Description
chrome_click_element Click elements via CSS selector
chrome_fill_or_select Fill forms and select options
chrome_keyboard Simulate keyboard input

Data Management

Tool Description
chrome_history Search browsing history
chrome_bookmark_search Find bookmarks
chrome_bookmark_add Add new bookmarks
chrome_bookmark_delete Delete bookmarks

Network

Tool Description
chrome_network_capture_start/stop Monitor network requests
chrome_network_request Send HTTP requests with browser cookies

Example Usage

Navigate and Screenshot

User: "Take a screenshot of github.com"

AI uses:
1. chrome_navigate(url: "https://github.com")
2. chrome_screenshot(fullPage: true)

Fill a Form

User: "Login to my account on example.com"

AI uses:
1. chrome_navigate(url: "https://example.com/login")
2. chrome_fill_or_select(selector: "#email", value: "user@example.com")
3. chrome_fill_or_select(selector: "#password", value: "...")
4. chrome_click_element(selector: "button[type=submit]")

Search History

User: "Find all pages I visited about React hooks last week"

AI uses:
1. chrome_history(text: "React hooks", startTime: "1 week ago")

Extract Content

User: "What does this page say about pricing?"

AI uses:
1. chrome_get_web_content()
2. Analyzes the extracted content

Advantages Over Playwright

Feature Playwright MCP Chrome MCP Server
Browser Instance New browser process Your existing Chrome
Login Sessions Need to re-login Uses existing sessions
User Settings Clean environment Your bookmarks, extensions, settings
Startup Time Slow (launch browser) Instant (extension already loaded)
Resource Usage Heavy Lightweight

Multi-Client Support

Multiple AI clients can connect simultaneously:

  • Claude Code
  • Cursor
  • Kiro
  • Any MCP-compatible client

Each client gets its own session while sharing the same Chrome browser.

Troubleshooting

Extension Not Connecting

  1. Check extension is enabled in chrome://extensions/
  2. Click extension icon → Verify "Connected" status
  3. Restart Chrome if needed

Port Already in Use

The server automatically handles port conflicts. If issues persist:

lsof -i :12306
kill <PID>

Resources

  • GitHub: https://github.com/femto/mcp-chrome
  • npm: https://www.npmjs.com/package/mcp-chrome-bridger
  • Releases: https://github.com/femto/mcp-chrome/releases

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
Skill 文件
  • SKILL.md
    • Browser Automation (Chrome MCP Server)
    • When to Use This Skill
    • Installation
      • Step 1: Install the Native Bridge
      • Step 2: Install Chrome Extension
      • Step 3: Configure MCP Client
    • Available Tools (20+)
      • Browser Management
      • Screenshots
      • Content Analysis
      • Interaction
      • Data Management
      • Network
    • Example Usage
      • Navigate and Screenshot
      • Fill a Form
      • Search History
      • Extract Content
    • Advantages Over Playwright
    • Multi-Client Support
    • Troubleshooting
      • Extension Not Connecting
      • Port Already in Use
    • Resources
  • 项目或源文件

相关 Skill

更多
饿了么外卖点餐 饿了么外卖点餐 Order food delivery from Ele.me (饿了么) using browser automation. The agent controls a real browser via Playwright MCP to browse restaurants, add items to cart...
douyin-web-control douyin-web-control Use this skill when the user wants an Agent to operate Douyin web through the douyin-web CLI, including launching or focusing Douyin, login checks, feed navigation, search, current video info, playback control, comments, likes, following the current author, favorites, sharing, danmaku, screenshots, or screen/audio recording. Prefer the CLI over direct browser automation for Douyin control. Do not use it for video-watching strategy, recommendation guidance, persona behavior, or video creation ide
China Express China Express 中国快递查询与物流信息解析。Use when the user wants to directly get a Chinese package status. Force browser automation on https://www.kuaidi100.com/ and read the live resu...
airbnb-gateway airbnb-gateway A skill for safe, coherent Airbnb operations in OpenClaw-style agent environments. It standardizes how agents check inbox threads, inspect reservations and booking state, review calendar context, draft guest replies, send messages safely, and verify whether a send actually appeared in the live Airbnb thread. It teaches a strict operating model: prefer Airbnb-native endpoints before generic browser automation; treat send acknowledgments as attempted, not automatically confirmed; verify outbound m
Browserable Self-Hostable Browser Automation for AI Agents Browserable Self-Hostable Browser Automation for AI Agents Browserable 是一个开源、可自托管的浏览器自动化库,专为 AI 代理构建。此技能将 Browserable 转变为一种可重复的工作流程,用于导航、表单填写、数据提取和基于浏览器的任务执行,而不是使用托管的黑盒。