PS

phungxuananh/selenium-mcp-server

Browser automation

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

11 stars 3 forks Качество 76 Тренд 28

A Model Context Protocol (MCP) server that provides web automation capabilities through Selenium WebDriver.

Обзор

A Model Context Protocol (MCP) server that provides web automation capabilities through Selenium WebDriver. This server allows AI assistants to interact with web pages by providing tools for navigation, element interaction, taking screenshots, and more. - : Navigate to URLs with timeout control and page readiness checking - : List, open, switch, and close browser tabs by window handle - : Find elements by multiple criteria (text, class, ID, attributes, XPath) and interact with them through clicking and input value setting - : Get single elements, multiple elements with pagination, and direct child nodes with comprehensive filtering options - : Capture named PNG screenshots of the active tab in the default workspace location or an explicit output directory - : Record one fixed tab or one MP4 that follows active-tab switches across selected tabs, optionally with a synthetic URL header - : Retrieve CSS styles and computed style information for any element - : Execute custom JavaScript...

README

Показан фрагмент оригинального README. Открыть оригинал.

Selenium MCP Server

A Model Context Protocol (MCP) server that provides web automation capabilities through Selenium WebDriver. This server allows AI assistants to interact with web pages by providing tools for navigation, element interaction, taking screenshots, and more.

1.1. Quick Start

# Install
pip install mcp-server-selenium

# Run
python -m mcp_server_selenium --port 9222 --user_data_dir /tmp/chrome-debug

1.1.2. Using Source Code (Development)

# Clone and setup
git clone https://github.com/PhungXuanAnh/selenium-mcp-server.git
cd selenium-mcp-server
uv sync

# Run
PYTHONPATH=src python -m mcp_server_selenium --port 9222 --user_data_dir /tmp/chrome-debug

Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "selenium": { "command": "python", "args": [ "-m", "mcp_server_selenium", "--port", "9222", "--user_data_dir", "/tmp/chrome-debug-claude" ], "env": {} } } }