Selenium AI Agent
MCP server by learn-automated-testing Verified · npm:selenium-ai-agent
Selenium MCP Server gives AI assistants browser automation tools built on Selenium. It can explore sites, write test plans, generate tests and heal failing selectors, and it can run parallel sessions on Selenium Grid.
Install Selenium AI Agent
Built from the published package, never by AI.
claude mcp add selenium-ai-agent -- npx -y selenium-ai-agentRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"selenium-ai-agent": {
"args": [
"-y",
"selenium-ai-agent"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"selenium-ai-agent": {
"args": [
"-y",
"selenium-ai-agent"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"selenium-ai-agent": {
"args": [
"-y",
"selenium-ai-agent"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add selenium-ai-agent -- npx -y selenium-ai-agent{
"mcpServers": {
"selenium-ai-agent": {
"args": [
"-y",
"selenium-ai-agent"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add selenium-ai-agent npx -y selenium-ai-agentGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the selenium-ai-agent block.
About
Selenium MCP Server is an MCP server published on npm as selenium-ai-agent. It gives AI assistants tools for opening pages, taking screenshots and exploring a site. It also includes a planner, generator and healer workflow that writes test plans and test files for several frameworks, including WebdriverIO, Playwright, pytest and Robot Framework.
For larger sites, the server can connect to Selenium Grid and run several browser sessions in parallel, which the README describes as a way to explore an application faster. Setup uses npx or a global npm install, with one-click install links for VS Code and Cursor and manual configuration for Claude Desktop, Claude Code, GitHub Copilot, Cline and Windsurf. It suits teams that want AI-driven exploration and test generation with Selenium.
Written from the project's README and checked against it.
Tools it gives your assistant
navigate_toOpens a URL in a local Chrome browser.take_screenshotCaptures the full page.planner_explore_pageExplores pages and discovers links, product flows and form fields.planner_save_planWrites a test plan to a markdown file.generator_setup_pageOpens a site for a chosen framework and starts recording steps.generator_write_testGenerates a test file from the recorded steps.healer_run_testsRuns the test suite and reports failures.healer_fix_testUpdates a failing selector in a test file.parallel_exploreRuns exploration across several Selenium Grid sessions at once.exploration_mergeCombines results from parallel sessions into one site map.
What you need
- Node.js with npm and npx
- Google Chrome for local browser examples
- Docker and Docker Compose to run the Selenium Grid
- Selenium Grid for parallel exploration
Try asking
- Go to https://example.com and take a screenshot
- Explore the checkout flow at https://example.com and create a test plan
- Run my tests and fix any failures
Good to know
- Parallel exploration requires a Selenium Grid setup.
- Examples other than parallel exploration work with a local browser.
- The README names five of the 14 supported generator frameworks.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Selenium AI Agent
All alternatives →Browser Use runs an AI model in a real browser, where it completes web tasks by writing Python against Chrome DevTools Protocol. It is for developers who want to fill forms, navigate sites and extract data locally or on Browser Use Cloud.
Pomerado builds MCP integrations for websites, including sites without an API, from a plain language task description. It is for people who want their agent to use a site reliably without computer use.
Selenide MCP server runs browser automation for AI assistants. It is built on the Selenide Java testing framework, which wraps Selenium WebDriver 4.0+. It suits developers who want AI agents to drive UI tests.
SeleniumBase is a Python browser automation framework for stealth browsing, end-to-end testing and web scraping. It uses CDP Mode to work with Chromium-based browsers, and it is aimed at software teams.
Camofox Browser MCP exposes the camofox-browser REST API as MCP tools for AI coding assistants. It proxies to an already-running camofox-browser server, so agents can browse sites that block standard automation.
Cline is an open source coding agent that edits files, runs commands, and uses the browser. It works in a terminal CLI, a macOS and Windows desktop app, VS Code, JetBrains IDEs, and an SDK for developers building their own agents.
Compare with browser-use, Pomerado or Selenide
Selenium AI Agent: common questions
Does it need Selenium Grid?
No. Only parallel exploration requires Selenium Grid. The other examples run with a local browser.
Which test frameworks can it generate?
The README says the Generator supports 14 frameworks, including webdriverio-ts, playwright-js, selenium-python-pytest, robot-framework and selenium-java-maven.
Which MCP clients are supported?
The README gives setup steps for Claude Desktop, Claude Code, Cursor, GitHub Copilot, Cline and Windsurf.
How do I install Selenium AI Agent?
In Claude Code run claude mcp add selenium-ai-agent -- npx -y selenium-ai-agent. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Selenium AI Agent the official server?
Selenium AI Agent is published by npm:selenium-ai-agent from its verified domain in the official MCP Registry.
Is Selenium AI Agent free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Selenium AI Agent safe to use?
It scores 70 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Selenium AI Agent?
Similar MCP servers: browser-use, Pomerado, Selenide, SeleniumBase MCP.
Does Selenium AI Agent work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
