BM

browsergenie/mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

3 stars 0 forks 质量 77 趋势 8Apache-2.0

一个MCP(模式上下文协议)服务器,它赋予AI模型对Chrome浏览器的全部控制. 它与浏览器Genie扩展相配,可以将50+浏览器自动化工具曝光于stdio上-.

概览

一个MCP(模式上下文协议)服务器,它赋予AI模型对Chrome浏览器的全部控制. 它与浏览器Genie扩展相配,可以将50+浏览器自动化工具曝光于stdio上——导航,点击,打字,截图,触摸手势,宏记录,并完成DevTools访问. 这是服务器的一半。 Chrome扩展活在一个单独的寄存器中. 两者都需要。 MCP服务器连接了您的AI客户端(over stdio)和Chrome扩展(over WebSocket). 每一次MCP工具呼叫都会被转发到扩展,在浏览器中执行,结果会被还给AI客户端. - Node.js 18+ - npm - Chrome所安装的相伴扩展名 - Chrome Web Store QQ source 无需安装。 从 npm 直接运行 : 用于开发或使用最新未释放的更改: 将服务器添加到您的AI客户端的MCP配置中. 文件:~/图书馆/应用程序支持/Claude/claude desktop config.json (macOS) 文件:%APDATA+Claude\claude desktop config.

概述(AI 翻译)

一个MCP(模式上下文协议)服务器,它赋予AI模型对Chrome浏览器的全部控制. 它与浏览器Genie扩展相配,可以将50+浏览器自动化工具曝光于stdio上——导航,点击,打字,截图,触摸手势,宏记录,并完成DevTools访问.

** 二重奏设置:** 这是服务器的一半。 Chrome扩展活在一个单独的寄存器中. 两者都需要。

如何运作

MCP服务器连接了您的AI客户端(over stdio)和Chrome扩展(over WebSocket). 每一次MCP工具呼叫都会被转发到扩展,在浏览器中执行,结果会被还给AI客户端.

□ 要求

  • 节点.js 18+
  • 没有
  • 同伴** BrowserGenie** 扩展安装在克罗梅-克罗梅网络商店 QQ源

□ 安装

  • 备选案文A-npx(建议)

无需安装。 从 npm 直接运行 :

或在全球安装:

  • 备选案文B:从源头运行

用于开发或使用最新未释放的更改:

□ 配置

将服务器添加到您的AI客户端的MCP配置中.

克劳德桌面

文件 : ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

BrowserGenie MCP Server

An MCP (Model Context Protocol) server that gives AI models full control over a Chrome browser. It pairs with the BrowserGenie Extension to expose 50+ browser automation tools over stdio — navigation, clicking, typing, screenshots, touch gestures, macro recording, and complete DevTools access.

Two-repo setup: This is the server half. The Chrome extension lives in a separate repository. Both are required.

How It Works

AI Client (Claude, Cursor, etc.)
    │  stdio  (JSON-RPC / MCP)
    ▼
MCP Server  ◄── this repo
    │  WebSocket  ws://localhost:7890
    ▼
Chrome Extension
    ├── chrome.tabs         → Navigation, tab management
    ├── chrome.debugger     → DevTools Protocol (CDP)
    ├── chrome.scripting    → Content script injection
    ├── chrome.cookies      → Cookie management
    └── Content Scripts      → Real DOM event simulation

The MCP server bridges your AI client (over stdio) and the Chrome extension (over WebSocket). Every MCP tool call is forwarded to the extension, executed in the browser, and the result is returned to the AI client.

Requirements

Installation

No installation required. Run directly from npm:

npx browser-genie-mcp-server

Or install globally:

npm install -g browser-genie-mcp-server
browser-genie-mcp-server

Option B — Run from source

For development or to use the latest unreleased changes:

git clone https://github.com/BrowserGenie/mcp.git
cd mcp
npm install
npm run build
node dist/index.js

Configuration

Add the server to your AI client’s MCP configuration.

Claude Desktop

File: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
File: %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "browser-genie": {
      "command": "npx",
      "args": ["browser-genie-mcp-server"]
    }
  }
}

Claude Code

File: ~/.claude/settings.json or project-level .mcp.json:

{
  "mcpServers": {
    "browser-genie": {
      "command": "npx",
      "args": ["browser-genie-mcp-server"]
    }
  }
}

Cursor / other MCP clients

{
  "mcpServers": {
    "browser-genie": {
      "command": "npx",
      "args": ["browser-genie-mcp-server"]
    }
  }
}

If you installed the package globally with npm install -g browser-genie-mcp-server, you can use "command": "browser-genie-mcp-server" with no args instead.

After saving the config, restart your AI client.

Environment Variables

Variable Default Description
在 GitHub 查看完整 README

安装

npx browser-genie-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "browser-genie": { "command": "npx", "args": ["browser-genie-mcp-server"] } } }