Selenium AI Agent

v3.9.0
io.github.learn-automated-testing/selenium-ai-agent Checked 9 hours ago Published 2 days ago

Selenium MCP: plan, review, generate, heal tests; JUnit/Allure reports linked to the plan

Values you need

VariableWhat it is
SELENIUM_HEADLESSoptional Run the browser in headless mode Default: false
SELENIUM_MCP_TOOLSETSoptional Tool groups to load: core, recording, planner, generator, healer, analyzer, grid or all Default: all
SELENIUM_GRID_URLoptional Selenium Grid hub URL, e.g. http://localhost:4444 (enables parallel execution)
SELENIUM_ATTACH_CDPoptional Attach to an already running Chrome at host:port, e.g. 127.0.0.1:9222
SELENIUM_MCP_OUTPUT_MODEoptional 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.0
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: navigate_to, go_back, go_forward, refresh_page, scroll_page, capture_page, take_screenshot, click_element, ….
  4. 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