What is Mcp Selenium Haskell?
Mcp Selenium Haskell is a Haskell implementation of an MCP (Model Context Protocol) Selenium server that uses WebDriver to enable browser automation through standardized MCP clients like Claude. It provides multi-session browser management with UUID-based session isolation and connects to a Selenium Grid.
How to use Mcp Selenium Haskell?
Run the statically-linked executable mcp-selenium-hs after setting environment variables SELENIUM_HOST (default 127.0.0.1) and SELENIUM_PORT (default 4444) to point to a Selenium server. Configure Claude Desktop by adding a JSON entry with the command and environment variables, or expose the server over HTTP/SSE using mcp-proxy for remote access.
Key features of Mcp Selenium Haskell
- Multi-session browser management with UUID-based session IDs
- Element interaction: click, type, hover, drag and drop
- Element location via CSS, XPath, ID, name, class, tag
- JavaScript console logging with injection and monitoring
- Screenshot capture and page source retrieval
- File upload and keyboard input simulation
- Chrome and Firefox support with headless mode
- Statically-linked executable with zero runtime dependencies
Use cases of Mcp Selenium Haskell
- Automate browser tasks through MCP clients like Claude
- Run multiple concurrent browser sessions for parallel testing
- Integrate with existing Selenium Grid infrastructure
- Perform headless browser automation without a graphical display
评论