MCP Chrome Google Search

by cmann50
MIT License
45
7
  • Apple

Integrations

  • Allows searching Google and extracting search results to provide information to Claude

  • Uses Chrome browser to perform web searches and extract webpage content for Claude

MCP Chrome 谷歌搜索工具

MCP 工具,用于使用 Chrome 浏览器进行 Google 搜索和网页内容提取。与 Claude 配合使用,可实现 Google 搜索和内容抓取功能。

快速安装

  1. 配置 Claude 桌面
    • 在 Mac 上打开 Claude Desktop
    • 前往 Claude > 设置 > 开发者 > 编辑配置
    • 将以下内容添加到您的配置文件中:GXP1
    • 重启Claude桌面
  2. 首次设置
    • 授予无障碍权限
      • 首次运行时,批准 macOS 辅助功能权限提示
      • 导航至:系统偏好设置 > 安全和隐私 > 隐私 > 辅助功能
      • 为您的终端应用添加并启用权限
    • 从 Apple 事件启用 Chrome JavaScript
      • 打开 Chrome
      • 导航至:查看 > 开发者 > 允许来自 Apple 事件的 JavaScript
      • 仅需一次性设置

配置完成后,当您发出请求时,Claude 将能够执行 Google 搜索并通过 Chrome 提取网页内容。

主要优势

  • 免费搜索谷歌
  • 打开小窗口并使用 Chrome 浏览器,因此不会被阻止
  • 由于它正在使用你的 Chrome 窗口,因此可以访问经过身份验证的内容。Claude 只需在你的浏览器中打开 URL 即可。

平台支持

  • ✅ macOS
  • ❌ Windows(不支持)
  • ❌ Linux(不支持)

要求

  1. macOS
  2. 谷歌浏览器
  3. Node.js 20 或更高版本

替代安装方法

NPX 安装

npx mcp-chrome-google-search

自定义安装

  1. 从 git 签出
  2. 运行npm run build
  3. 添加到 Claude 配置(使用绝对路径):
{ "google-tools": { "command": "node", "args": [ "/your/checkout/path/mcp/mcp-chrome-google-search/dist/index.js" ] } }

本地开发

要在本地测试更改,请提高 package.json 版本并运行以将其置于编辑模式:

npm install -g .

然后只需执行npm run build ,文件就会进入 claude 正在监控的 dist 中

然后在 Claude 桌面按 ctrl-R,无需重新启动

调试

日志监控

# Follow logs in real-time tail -n 20 -F ~/Library/Logs/Claude/mcp*.log

开发工具访问

  1. 启用开发者设置:
echo '{"allowDevTools": true}' > ~/Library/Application\ Support/Claude/developer_settings.json
  1. 打开 DevTools:在 Claude 桌面中打开 Command-Option-Shift-i
  2. 在 Claude 桌面中使用 ctrl-r 来获取更好的错误信息

故障排除

Chrome JavaScript 错误

如果你看到:

execution error: Google Chrome got an error: Executing JavaScript through AppleScript is turned off. For more information: https://support.google.com/chrome/?p=applescript (12)

解决方案:

  1. 打开 Chrome
  2. 查看 > 开发者 > 允许来自 Apple 事件的 JavaScript

无障碍权限问题

如果 Chrome 控制失败:

  1. 打开系统偏好设置
  2. 安全和隐私 > 隐私 > 可访问性
  3. 确保终端应用程序已列出并启用
  4. 如果需要,使用锁定图标进行更改

实现细节

  • 使用 AppleScript 控制 Chrome
  • 可见的自动化 - Chrome 窗口将打开/导航
  • 每个请求都会打开一个新的 Chrome 标签页
  • 定期关闭未使用的标签以获得最佳性能
  • 仅与受信任的 Claude 实例一起使用(具有 Chrome 控制访问权限)

支持

  • 为问题创建 GitHub 问题
  • 包含 macOS 和 Chrome 版本详细信息

执照

MIT 许可证 - 详情请参阅许可证文件

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

通过适用于 macOS 的 Chrome 实现 Google 搜索和网页内容提取,允许访问未经身份验证和经过身份验证的内容,并与 Claude 集成以执行安全和自动化的浏览任务。

  1. 快速安装
    1. 主要优势
      1. 平台支持
        1. 要求
          1. 替代安装方法
            1. NPX 安装
            2. 自定义安装
          2. 本地开发
            1. 调试
              1. 日志监控
              2. 开发工具访问
            2. 故障排除
              1. Chrome JavaScript 错误
              2. 无障碍权限问题
            3. 实现细节
              1. 支持
                1. 执照

                  Related MCP Servers

                  • A
                    security
                    A
                    license
                    A
                    quality
                    Enables interaction with Google Chrome tabs through the MCP protocol, allowing clients to retrieve information and control tabs on macOS using AppleScript.
                    Last updated 2 months ago
                    2
                    14
                    2
                    JavaScript
                    MIT License
                    • Apple
                  • A
                    security
                    A
                    license
                    A
                    quality
                    Enables web content scanning and analysis by fetching, analyzing, and extracting information from web pages using tools like page fetching, link extraction, site crawling, and more.
                    Last updated a month ago
                    6
                    3
                    TypeScript
                    MIT License
                  • A
                    security
                    A
                    license
                    A
                    quality
                    Enables search capabilities using a Google Custom Search Engine, allowing users to input a search term and retrieve search result titles, links, and snippets, while facilitating integration with other tools for content extraction and advanced search strategies.
                    Last updated 3 months ago
                    1
                    13
                    Python
                    The Unlicense
                  • -
                    security
                    A
                    license
                    -
                    quality
                    Provides web search functionality via DuckDuckGo for Claude Code and MCP-compatible clients, featuring advanced content exploration, navigation across search results, and detailed webpage analysis.
                    Last updated 2 months ago
                    1
                    Python
                    MIT License

                  View all related MCP servers

                  ID: qomavmghwi