← 返回
开发者工具 中文

mcp-chrome

Control Chrome browser with AI using MCP protocol. Use when users want to automate browser tasks, take screenshots, fill forms, click elements, navigate page...
使用MCP协议通过AI控制Chrome浏览器。适用于用户需要自动化浏览器任务、截图、填表、点击元素、页面导航等场景。
femto
开发者工具 clawhub v0.1.1 1 版本 100000 Key: 无需
★ 3
Stars
📥 1,510
下载
💾 32
安装
1
版本
#latest

概述

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

ToolDescription
-------------------
get_windows_and_tabsList all browser windows and tabs
chrome_navigateNavigate to URLs, control viewport
chrome_switch_tabSwitch active tab
chrome_close_tabsClose specific tabs
chrome_go_back_or_forwardBrowser history navigation

Screenshots

ToolDescription
-------------------
chrome_screenshotCapture full page, viewport, or specific elements

Content Analysis

ToolDescription
-------------------
chrome_get_web_contentExtract HTML/text from pages
chrome_get_interactive_elementsFind clickable elements
search_tabs_contentAI-powered semantic search across tabs
chrome_consoleCapture browser console output

Interaction

ToolDescription
-------------------
chrome_click_elementClick elements via CSS selector
chrome_fill_or_selectFill forms and select options
chrome_keyboardSimulate keyboard input

Data Management

ToolDescription
-------------------
chrome_historySearch browsing history
chrome_bookmark_searchFind bookmarks
chrome_bookmark_addAdd new bookmarks
chrome_bookmark_deleteDelete bookmarks

Network

ToolDescription
-------------------
chrome_network_capture_start/stopMonitor network requests
chrome_network_requestSend 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

FeaturePlaywright MCPChrome MCP Server
-------------------------------------------
Browser InstanceNew browser processYour existing Chrome
Login SessionsNeed to re-loginUses existing sessions
User SettingsClean environmentYour bookmarks, extensions, settings
Startup TimeSlow (launch browser)Instant (extension already loaded)
Resource UsageHeavyLightweight

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

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-03-29 10:10 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Acp Team

femto
多智能体工作流团队协调层,支持邮箱、任务看板和基于租约的任务管理。用于需要协调多个AI代理的场景。
★ 0 📥 712
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,842
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,790