selenium-mcp-server is a Model Context Protocol (MCP) server that provides web automation capabilities for AI assistants through Selenium WebDriver, enabling operations such as navigation, element interaction, screenshots, and screen recording.
Main capabilities: web navigation (with timeout control and page readiness checks), multi-tab management (list, open, switch, close), finding and clicking elements by text/class name/ID/attribute/XPath and other conditions, setting input field values, reading element CSS and computed styles, executing JavaScript in the browser console and capturing output, reading console logs and network request logs, create, read, update, and delete operations on browser local storage, iFrame and XPath support, Chrome browser control (connecting to an existing instance or automatically launching), screenshots and tab video recording.
The tools are divided into the default compact profile (11 tools) and 24 legacy tools enabled with --tool-profile legacy; legacy names are not mapped to compact aliases. All compact calls share the same browser session and global active tab, and tab-sensitive operations must be executed serially. Elements are referenced via element_ref and become invalid after more than 1800 seconds, on tab or document changes, on full navigation, or when the current match is 0/multiple, requiring a new query.
Installation can use the Python package (recommended) or run from source, and Chrome must be configured. The server can run standalone, be tested with MCP Inspector, or be used with an MCP client, with support for debugging and configuration examples. For specific installation commands, configuration parameters, and tool field descriptions, refer to the repository documentation; the current material does not provide complete command details or pricing information.