A Model Context Protocol (MCP) server for browser automation using Selenium WebDriver. Enables LLMs and teams to automate browsers via a standard protocol, similar to Playwright MCP.
🚀 Key Features
Multi-browser support (Chrome, Firefox, Edge, Safari)
Team-friendly: visible browser by default
Model Context Protocol server for Selenium WebDriver - enables LLMs to control web browsers
스타
—
도구
—
가동 시간
—
MCP-compliant API (navigate, click, type, screenshot, etc.)
selenium-mcp [options]
Options:
--browser <browser> Browser to use (chrome, firefox, edge, safari) (default: "chrome")
--headless Run browser in headless mode
--executable-path <path> Path to browser executable
--user-data-dir <path> Path to user data directory
--isolated Keep browser profile in memory
--viewport-size <size> Browser viewport size (e.g., 1280,720)
--output-dir <path> Path to directory for output files
-h, --help Display help for command
Available Tools
Navigation
browser_navigate - Navigate to URLs
browser_navigate_back - Go back in history
browser_navigate_forward - Go forward in history
Page Interaction
browser_click - Click on elements
browser_type - Type text into inputs
browser_hover - Hover over elements
browser_drag - Drag and drop elements
browser_select_option - Select dropdown options
browser_press_key - Press keyboard keys
Information Gathering
browser_snapshot - Capture accessibility tree
browser_take_screenshot - Take screenshots
browser_network_requests - List network requests
browser_console_messages - Get console messages
Tab Management
browser_tab_list - List open tabs
browser_tab_new - Open new tabs
browser_tab_select - Switch tabs
browser_tab_close - Close tabs
Utilities
browser_wait_for - Wait for elements/text
browser_file_upload - Upload files
browser_handle_dialog - Handle alerts/dialogs
browser_resize - Resize browser window
browser_pdf_save - Save page as PDF
Usage Examples
Basic Navigation and Screenshot
// In Cursor, ask:
"Navigate to https://example.com and take a screenshot"
Form Interaction
// In Cursor, ask:
"Go to the contact page and fill out the form with name 'John Doe' and email '[email protected]'"
Data Extraction
// In Cursor, ask:
"Visit the product page and extract all product names and prices"
Requirements
Node.js 18+
Java 11+ (for Selenium WebDriver)
Browser drivers (automatically managed by WebDriverManager)