Skip to content
MCP server

selenium-mcp

MCP server that lets AI assistants drive a real Chrome browser and generate Selenium test

Actively maintained

The repository was last updated 9 days ago and is published under MIT.

selenium-mcp is an open-source MCP server for browser automation. It is available on CLI, VS Code, JetBrains, API, macOS, Windows and Linux.

Pricing
Open source
Platforms
CLI, VS Code, JetBrains
GitHub stars
2
Last commit
Language
Python
License
MIT

Similar MCP servers

About selenium-mcp

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.

What it does

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

Pricing

Open source

Free and open source under MIT; installed from PyPI.

selenium-mcp 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.

How AIPoweredBot checks servers