Selenium AI Agent
v3.9.0Selenium MCP: plan, review, generate, heal tests; JUnit/Allure reports linked to the plan
Values you need
| Variable | What it is | |
|---|---|---|
SELENIUM_HEADLESS | optional | Run the browser in headless mode Default: false |
SELENIUM_MCP_TOOLSETS | optional | Tool groups to load: core, recording, planner, generator, healer, analyzer, grid or all Default: all |
SELENIUM_GRID_URL | optional | Selenium Grid hub URL, e.g. http://localhost:4444 (enables parallel execution) |
SELENIUM_ATTACH_CDP | optional | Attach to an already running Chrome at host:port, e.g. 127.0.0.1:9222 |
SELENIUM_MCP_OUTPUT_MODE | optional | stdout returns data to the LLM; file saves screenshots and outputs to disk Default: stdout |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add selenium-ai-agent -- npx -y selenium-ai-agent@3.9.0Add to
claude_desktop_config.json{
"mcpServers": {
"selenium-ai-agent": {
"args": [
"-y",
"selenium-ai-agent@3.9.0"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"selenium-ai-agent": {
"args": [
"-y",
"selenium-ai-agent@3.9.0"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"selenium-ai-agent": {
"args": [
"-y",
"selenium-ai-agent@3.9.0"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.selenium-ai-agent]
command = "npx"
args = ["-y", "selenium-ai-agent@3.9.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: navigate_to, go_back, go_forward, refresh_page, scroll_page, capture_page, take_screenshot, click_element, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json