Selenium MCP logo

Selenium MCP

Selenium WebDriver tools over MCP for browser control, element interaction, testing, scraping, cookies, screenshots, and JavaScript.

Install Selenium MCP

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

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "selenium-mcp-2": {
      "command": "npx",
      "args": [
        "-y",
        "selenium-webdriver-mcp@latest"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio selenium-mcp-2 -- npx -y selenium-webdriver-mcp@latest

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 56 tools correctly ().

Overview

The selenium-mcp MCP server connects MCP clients and AI assistants to Selenium WebDriver through browser automation tools. It can open and control Chrome, Firefox, Safari, and Edge sessions, navigate pages, interact with elements, manage cookies and windows, and inspect page content. Use it for AI-directed web testing, scraping, browser workflows, and data extraction. The package runs through npx over stdio, with an HTTP configuration also documented for VS Code.

Use cases

  • Automate browser-based test flows
  • Scrape page content with Selenium
  • Interact with forms and upload files
  • Inspect pages and validate element state
  • Manage cookies and browser windows

Key features

  • Chrome, Firefox, Safari, and Edge support
  • Browser navigation and session management
  • Element discovery and interaction
  • Cookie and window management
  • Frame switching and element-state checks
  • TypeScript tools with Zod validation

Tools56

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

Verified live~5.0k 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

Recent health check succeeded.

14/14 checks healthy over the last 89d

What it can do

From the 56 tools this server returned when we ran it.

Runs commands · 1Can delete or modify data · 4Handles credentials · 6Makes network requests · 5Read-only tools · 51
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceNot published
Package age446 days
Maintainers1

Observed 2026-11-11 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · selenium-webdriver-mcp@latest (npm)

Adoption & maintenance

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

GitHub stars6Stargazers on the source repository.
npm downloads467Package downloads in the last 30 days.
Last commit18d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed56Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Selenium MCP works

What selenium-mcp MCP server does

The selenium-mcp MCP server exposes Selenium WebDriver operations as MCP tools for AI assistants and other MCP clients. It provides browser-session control, page navigation, element discovery and interaction, cookie operations, window switching, frame switching, and page inspection. The implementation is written in TypeScript and uses Zod validation for typed tool inputs.

Supported browser automation includes Chrome, Firefox, Safari, and Edge. The documented feature set covers clicking, typing, hovering, drag and drop, file uploads, waiting for elements or page states, screenshots, JavaScript execution, and automated web workflows. The available tool table specifically documents browser, cookie, window, element, validation, and frame operations.

How it works

An MCP client starts the package as a local process and communicates with it using the Model Context Protocol. The server translates tool calls into Selenium WebDriver actions against the active browser session. A typical workflow opens a browser, navigates to a URL, locates elements with a selector strategy and value, performs actions, and reads page state or element content.

Browser tools include browser_open, browser_navigate, history navigation, refresh, title and URL retrieval, page-source retrieval, resizing, maximizing, and closing. Element tools can find one or more elements, click, type, clear fields, upload files, read text, and retrieve attributes. Cookie tools can read, add, set, or delete cookies, while window tools switch by handle, title, index, or URL.

Setup and configuration

The selenium-mcp MCP server can be launched without a local package installation through this command configuration:

config.json
{
  "servers": {
    "selenium-mcp": {
      "command": "npx",
      "args": ["-y", "selenium-webdriver-mcp@latest"]
    }
  }
}

For Claude Desktop, add the same npx command under mcpServers. An alternative HTTP entry points to the server hosted at Smithery.

You can install the npm package globally with npm install -g selenium-webdriver-mcp@latest. Smithery installation is documented for Claude Desktop with the @pshivapr/selenium-mcp server identifier.

Tools and capabilities

  • Open, resize, maximize, refresh, and close browser sessions.
  • Navigate forward and backward and retrieve the current URL, title, or HTML source.
  • Locate elements and interact with them using selectors, timeouts, text, attributes, and file paths.
  • Check whether elements are displayed, enabled, or selected.
  • Manage cookies and switch between browser windows or frames.
  • Use the documented browser automation features for scraping, testing, screenshots, and JavaScript execution.

Limitations and notes

Confirm those details in the repository before adopting the server for a production test environment. Browser sessions and the target site remain dependent on Selenium WebDriver behavior and the configuration supplied by the MCP client.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about Selenium MCP

selenium-mcp is an MCP server that connects AI assistants and MCP clients to Selenium WebDriver. Its main tools open and control Chrome, Firefox, Safari, or Edge sessions, navigate pages, find and interact with elements, manage cookies and windows, inspect page content, and support browser testing and scraping workflows.

Install it with `npm install -g selenium-webdriver-mcp@latest`, or configure an MCP client to run `npx -y selenium-webdriver-mcp@latest`.

Yes, the repository includes a Cursor integration badge, and its standard stdio configuration uses the `npx` command to start the server. Add that command to Cursor's MCP server configuration.

Configure the server in VS Code's `mcp.json` with a `stdio` entry that runs `npx -y selenium-webdriver-mcp@latest`. The README also provides `code --add-mcp` and `vscode-insiders --add-mcp` commands, plus an HTTP example.

selenium-mcp documents support for Chrome, Firefox, Safari, and Edge. Browser sessions are opened through the `browser_open` tool, with the browser and options supplied by the MCP client.

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/selenium-mcp-2?style=directory)](https://allmcps.com/mcp/selenium-mcp-2)
HTML Embed
<a href="https://allmcps.com/mcp/selenium-mcp-2"><img src="https://allmcps.com/api/badge/selenium-mcp-2?style=directory" alt="Selenium MCP on AllMCPs" /></a>