Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Selenium MCP

MCP server by Volta-Jebaprashanth Verified · npm:@xpathy

Selenium MCP lets AI coding assistants drive Chrome, Firefox or Edge through Selenium WebDriver. It is a Java server built for test automation engineers working with Selenium and REST Assured.

  • Score 68
  • 0 stars
  • 70 a week
  • MIT
  • Updated

Install Selenium MCP

Built from the published package, never by AI.

claude mcp add selenium-mcp -- npx -y @xpathy/selenium-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Selenium MCP in Claude Code

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

About

selenium-mcp is a Model Context Protocol server built in Java with Spring Boot and Spring AI's MCP server starter. It lets AI coding assistants such as Claude Code, Cursor and Claude Desktop drive a real Chrome, Firefox or Edge browser through Selenium WebDriver. It gives assistants structured, JSON-shaped views of the page, including a filtered element query that returns ancestor chains and sibling positions for writing unique locators.

The server also covers Selenium 4 Chrome DevTools Protocol features such as network capture, request mocking and console logs, plus a standalone REST client for API checks. It supports several named browser sessions and a wait strategy that reports the waits a generated test needs. It is aimed at test automation engineers working with Java, Selenium and REST Assured.

Written from the project's README and checked against it.

Tools it gives your assistant

  • openBrowserOpens a Chrome, Firefox or Edge browser as a named session, with optional wait settings.
  • getPageElementsFilteredFinds every element matching a locator and returns its ancestor chain and sibling position.
  • clickClicks an element located by id, name, CSS, XPath, class, link text, tag or visible text.
  • sendKeysTypes text into a field located by standard Selenium locators or visible text.
  • connectToBrowserConnects the server to an already running browser session.
  • launchDebugBrowserLaunches a browser in debug mode for the server to drive.
  • switchSessionChanges which open browser session the following tool calls act on.
  • listSessionsLists all open browser sessions on the server.
  • closeBrowserCloses the active session, a named session, or all sessions.
  • setAutoWaitSets the session's implicit wait, network idle and animation idle waits, and timeouts.

What you need

  • Node.js, for running the server with npx
  • Chrome, Firefox or Edge installed locally
  • Java 21 or later, only when running the jar directly or building from source
  • Windows x64, Linux x64 (glibc), macOS Intel or macOS Apple Silicon

Try asking

  • Open Chrome on the login page and find a unique locator for the password field.
  • List every button on this page with its ancestor chain so I can write a locator.
  • Open an admin session and a customer session side by side, then log in to both.

Good to know

  • Network capture, mocking, blocking and console log capture require Chrome or Edge, since Firefox does not expose the Chrome DevTools Protocol.
  • At most 5 browser sessions can be open by default, adjustable with a launch argument.
  • The first start downloads about 90 MB, including the Java runtime for your OS.

Security check

A

No 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 MCP

All alternatives →
browser-use browser-use
100

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.

AAA Local and remote 123k
Pomerado Pomerado
96

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.

AAA Remote 1.8k
Selenide selenide
96

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.

AAA Local 1.9k
SeleniumBase MCPseleniumbase
94

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.

AAA Local 13k
Camofox Browser MCP jo-inc
94

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.

AAA Local 13k
Cline cline
94

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.

AAA Local 72k

Compare with browser-use, Pomerado or Selenide

Selenium MCP: common questions

Do I need to install Java to use Selenium MCP?

Not with the npm package, which bundles its own Java runtime and needs only Node.js for npx. Java 21 or later is required when you run the jar directly or build from source.

Which browsers does Selenium MCP support?

It drives Chrome, Firefox and Edge through Selenium WebDriver. Network capture, mocking and console logs need Chrome or Edge.

How does the server help AI assistants find elements?

The page inspection tools return focused JSON views and a filtered element query that gives ancestor and sibling context. This helps the assistant write a locator that is unique on the first try.

How do I install Selenium MCP?

In Claude Code run claude mcp add selenium-mcp -- npx -y @xpathy/selenium-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Selenium MCP the official server?

Selenium MCP is published by npm:@xpathy from its verified domain in the official MCP Registry.

Is Selenium MCP free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Selenium MCP safe to use?

It scores 68 of 100. Grades: maintenance B, 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 MCP?

Similar MCP servers: browser-use, Pomerado, Selenide, SeleniumBase MCP.

Does Selenium MCP 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.

Selenium MCP Install

Add to stack

Loading.