Selenium MCP logo

Selenium MCP

by seleniumboot

Automates real browsers through Selenium with MCP tools for navigation, element actions, assertions, inspection, and test generation.

Install Selenium MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "seleniumboot-selenium-mcp": {
      "command": "uvx",
      "args": [
        "seleniumboot-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

seleniumboot/selenium-mcp MCP server connects MCP clients to Selenium WebDriver for controlling real browser sessions. It supports navigation, page inspection, element interaction, assertions, screenshots, browser storage, tabs, network logs, and JavaScript execution, with Chrome starting automatically when needed. Recorded browser actions can be turned into test code for Java TestNG, JUnit 5, Cucumber, pytest, C NUnit, Playwright, and CI pipelines. Reach for it when an agent needs to exercise a web application, inspect a live page, or turn an exploratory flow into reusable automation.

Use cases

  • Automate login and checkout flows in a real browser
  • Inspect interactive page elements and generate locators
  • Assert page content, URLs, titles, and element visibility
  • Generate reusable test code from recorded browser actions
  • Analyze an existing Selenium project before migration

Key features

  • Selenium WebDriver browser control over MCP
  • Automatic Chrome startup through Selenium Manager
  • Element inspection, interaction, waits, and assertions
  • Screenshots, storage, tabs, frames, and network inspection
  • Self-healing locators and mobile device emulation
  • Test and CI code generation

Tools85

What Selenium MCP lets your agent do. Expand a tool for its parameters.

Verified live~6.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

21/22 checks healthy over the last 91d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · seleniumboot-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit8d agoMost recent push to the default branch.
Tools exposed85Callable tools this server registers over MCP.
Directory activity11 viewsConfig copies, upvotes, and views on AllMCPs.

How Selenium MCP works

What seleniumboot/selenium-mcp does

seleniumboot/selenium-mcp exposes Selenium WebDriver through the Model Context Protocol for browser automation. An MCP client can open a browser, visit URLs, inspect page structure, interact with controls, run JavaScript, and verify application state. The server is aimed at workflows where an AI agent needs to operate a real browser rather than make direct HTTP requests.

It can also record the actions performed during a session and generate automation artifacts from them. Supported output targets include Java TestNG, JUnit 5, Cucumber, pytest, C NUnit, Playwright, and CI pipeline configurations for GitHub Actions, Jenkins, and GitLab CI.

How it works

The server communicates with MCP clients over stdio and delegates browser control to Selenium WebDriver. Chrome launches automatically when the first browser tool is used, although start_browser can select Firefox, enable headless mode, or set a custom window size. Selenium Manager handles the browser driver, so a separate ChromeDriver installation is not required.

Page discovery is available through inspect_page, which reports interactive controls and suggested CSS selectors. The server also provides explicit waits, locator self-healing, screenshots, page source, console output, cookies, web storage, window and tab control, network capture, device emulation, and JavaScript execution. Chrome-only functions include console logs, network logs, and Chrome DevTools Protocol device emulation.

The default tool profile exposes the core record-and-generate workflow. Setting SELENIUM_MCP_TOOLS=all enables the broader tool set, including storage, network mocking, accessibility checks, screenshot comparison, shadow DOM, table extraction, advanced mouse actions, and healing-related tools.

Setup and configuration

Install the Python package with:

Terminal
pip install seleniumboot-mcp

Python 3.10 or newer and Chrome are required. A minimal stdio configuration for an MCP client is:

config.json
{
  "mcpServers": {
    "selenium": {
      "command": "seleniumboot-mcp"
    }
  }
}

The project also provides setup paths through its VS Code extension and JetBrains plugin. The VS Code extension registers the server with GitHub Copilot and can create a project .mcp.json for Claude Code. The JetBrains plugin registers it with JetBrains AI Assistant. Claude Desktop can use the same command in its MCP configuration.

Use SELENIUM_MCP_TOOLS=all when the client needs the complete tool collection instead of the default core profile. The optional migrate capability requires Java 17 or newer and analyzes an existing Selenium project without modifying it.

Tools and capabilities

Core browser operations include:

  • Start, close, refresh, and navigate browser sessions.
  • Move through browser history and manage multiple tabs or windows.
  • Capture screenshots, page source, titles, URLs, console logs, and network activity.
  • Inspect controls, find elements, fill forms, click, type, hover, select options, upload files, and handle alerts.
  • Switch into iframes, access shadow DOM elements, scroll pages, and execute JavaScript.
  • Read and update cookies, localStorage, and sessionStorage.
  • Wait for elements or network activity and perform visibility, title, URL, text, and attribute assertions.
  • Emulate mobile devices and generate test code from recorded actions.

Limitations and notes

The default profile exposes fewer tools than the full collection to reduce the tool definitions sent to the model. Chrome-specific features do not provide the same behavior in Firefox. Browser sessions and their state are controlled by the running server process, so a client must remain connected while an agent performs a flow. The migration tool is read-only, requires Java 17+, and downloads its migrator artifact on first use unless a local launcher or JAR is configured.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Selenium MCP

seleniumboot/selenium-mcp is an MCP server that connects AI clients to Selenium WebDriver and real browsers. Its main tools cover navigation, page inspection, element interaction, assertions, screenshots, browser state, JavaScript, and test generation from recorded sessions for frameworks such as TestNG, JUnit 5, Cucumber, and pytest.

Install it with `pip install seleniumboot-mcp`, then register the `seleniumboot-mcp` command in your MCP client configuration. Python 3.10 or newer and Chrome are required; Selenium Manager handles the browser driver automatically.

Yes, seleniumboot/selenium-mcp works with Claude Desktop through a standard stdio MCP configuration. Add an `mcpServers` entry whose command is `seleniumboot-mcp`, then restart Claude Desktop.

Set `SELENIUM_MCP_TOOLS=all` in the server environment. The default profile exposes the core browser, element, assertion, generation, and migration workflow, while the all-tools profile adds capabilities such as storage, network mocking, accessibility checks, screenshot comparison, and device emulation.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSelenium MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/seleniumboot-selenium-mcp?style=directory)](https://allmcps.com/mcp/seleniumboot-selenium-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/seleniumboot-selenium-mcp"><img src="https://allmcps.com/api/badge/seleniumboot-selenium-mcp?style=directory" alt="Selenium MCP on AllMCPs" /></a>