Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Browser Automation

БесплатноНе проверен

An MCP server for generic browser automation using Playwright. Enables MCP clients to navigate pages, inspect elements, execute JavaScript, capture screenshots,

GitHubEmbed

Описание

An MCP server for generic browser automation using Playwright. Enables MCP clients to navigate pages, inspect elements, execute JavaScript, capture screenshots, and monitor console logs and network traffic via a headless Chromium instance.

README

An MCP (Model Context Protocol) server for generic browser automation using Playwright. Exposes a headless Chromium instance as a set of callable tools so that MCP clients — such as AI coding assistants — can navigate pages, inspect elements, execute JavaScript, capture screenshots, and monitor console logs and network traffic.

Requirements

  • Node.js 18+
  • npm

Installation

npm install
npx playwright install chromium

Usage

npm run build
npm start

Or for development with hot reload:

npm run dev

The server listens on stdin/stdout using the MCP stdio transport. Configure your MCP client to launch it as a subprocess.

Claude Desktop:

{
  "mcpServers": {
    "browser-automation": {
      "command": "npx",
      "args": ["github:ritesh-jain/MCP-Browser-Automation"]
    }
  }
}

Opencode:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "mcp-browser-automation": {
      "type": "local",
      "enabled": true,
      "command": [
        "npx",
        "github:ritesh-jain/MCP-Browser-Automation"
      ]
    }
  }
}

Tools

Tool Description
navigate Navigate to a URL. Supports custom viewport and mobile emulation.
capture_screenshot Take a full-page screenshot (saved to screenshots/).
get_console_logs Retrieve browser console logs. Optionally clear after read.
get_network_traffic Retrieve network requests and responses. Optionally clear after read.
execute_js Execute arbitrary JavaScript in the page context.
interact Click, type, fill, or select on a CSS selector.
inspect_element Return tag name, id, class, inner text, outer HTML, and computed styles for an element.

Project Structure

src/
  types.ts           Shared type definitions
  McpServer.ts       MCP protocol layer — tool registration and dispatch
  BrowserManager.ts  Playwright orchestration — browser lifecycle and page interactions
index.ts             Entry point

How It Works

  1. index.ts creates an McpBrowserServer and connects via StdioServerTransport.
  2. An MCP client discovers tools via the ListTools request and calls them via CallToolRequest.
  3. McpBrowserServer lazily initializes the browser on the first tool call and delegates to BrowserManager.
  4. The browser stays open across calls, enabling multi-step interactions on the same page.

License

ISC

from github.com/ritesh-jain/MCP-Browser-Automation

Установка Browser Automation

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/ritesh-jain/MCP-Browser-Automation

FAQ

Browser Automation MCP бесплатный?

Да, Browser Automation MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Browser Automation?

Нет, Browser Automation работает без API-ключей и переменных окружения.

Browser Automation — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Browser Automation в Claude Desktop, Claude Code или Cursor?

Открой Browser Automation на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Browser Automation with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории browse