# selenium-mcp

> selenium-mcp is an open-source MCP server for browser automation. MCP server that lets AI assistants drive a real Chrome browser and generate Selenium test. It is available on CLI, VS Code, JetBrains, API, macOS, Windows and Linux.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, VS Code, JetBrains, API, macOS, Windows, Linux
- **Repository:** https://github.com/seleniumboot/selenium-mcp
- **GitHub stars:** 2
- **License:** MIT
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Selenium MCP connects Claude and GitHub Copilot to a live Chrome session through the Model Context Protocol. An assistant can open pages, click and type into elements, check assertions, and inspect the resulting DOM without a separate ChromeDriver install, since Selenium Manager handles the driver and the browser starts on first use.

Every action in a session is recorded. The generate tool turns that recording into test code for Java TestNG, JUnit 5, Cucumber, pytest, C# NUnit, or Playwright, and can also produce CI configuration for GitHub Actions, Jenkins, or GitLab CI. Locators that fail are retried with fallback strategies, and the healed selectors are cached for reuse.

The server is aimed at QA engineers and Java or Python developers who want to script browser tests by describing the flow in chat. It can also help migrate an existing Selenium project by running a read-only analysis of it. The default tool profile exposes 43 tools, and an environment variable enables the full set of 77.

## Features

- **Live browser control:** Navigate, click, type, scroll and handle alerts, frames and tabs through an assistant.
- **Session recording:** Records every browser action so the flow can be turned into test code afterwards.
- **Multi-language test generation:** Outputs Java TestNG, JUnit 5, Cucumber, pytest, C# NUnit and Playwright code.
- **Self-healing locators:** Tries alternative CSS and XPath selectors when a primary one fails and caches the working one.
- **Assertions and page inspection:** Built-in checks for titles, URLs, text, attributes and element counts, plus selector discovery.
- **CI config generation:** Creates pipeline files for GitHub Actions, Jenkins and GitLab CI.
- **Project migration analysis:** Runs a read-only report on an existing Selenium project to show what maps cleanly and what needs manual work.

## Good for

- Describe a login or checkout flow in chat and get a runnable TestNG or pytest class
- Generate Gherkin feature files and step definitions for behaviour-driven test suites
- Create page object classes for an existing Java Selenium project
- Add GitHub Actions or Jenkins pipelines that run the generated tests
- Assess which parts of a legacy Selenium suite can be migrated automatically

## FAQ

### Do I need to install ChromeDriver?

No. Selenium Manager fetches the driver automatically. Chrome itself must be installed, and Python 3.10 or later is required.

### Which AI clients does selenium-mcp work with?

It is set up for Claude Desktop, Claude Code, GitHub Copilot in VS Code, and the JetBrains AI Assistant through the plugin.

### How many tools are available?

The default profile exposes 43 tools. Setting SELENIUM_MCP_TOOLS=all enables all 77.

### What license is selenium-mcp under?

The project is released under the MIT license.

### Is selenium-mcp free?

Yes. selenium-mcp is open source, so you can use and self-host it for free.

### What are the best alternatives to selenium-mcp?

The closest alternatives to selenium-mcp are selenium-mcp-server, Selenium AI Agent, Selenium Webdriver MCP, Selenium MCP and Chrome DevTools MCP.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [selenium-mcp-server](https://ai-powered.com/mcp/selenium-mcp-server): selenium-mcp-server is an open-source MCP server for browser automation.
- [Selenium AI Agent](https://ai-powered.com/mcp/selenium-ai-agent): Selenium AI Agent is an open-source MCP server for browser automation.
- [Selenium Webdriver MCP](https://ai-powered.com/mcp/selenium-webdriver-mcp): Selenium Webdriver MCP is an open-source MCP server for browser automation.
- [Selenium MCP](https://ai-powered.com/mcp/selenium-mcp-2): Selenium MCP is an open-source MCP server for browser automation.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [WebEngine Web MCP](https://ai-powered.com/mcp/webengine-web-mcp): WebEngine Web MCP is an open-source MCP server for browser automation.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-4): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [webdriverio](https://ai-powered.com/mcp/webdriverio): webdriverio is an open-source MCP server for browser automation.

---
Source: https://ai-powered.com/mcp/selenium-mcp-3
