Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Selenium AI Agent

by learn-automated-testingversion 3.3.6i★ 3 (Stars for the whole repo)iRuns on your computerRepository ↗
Registry nameio.github.learn-automated-testing/selenium-ai-agent

How to install

What it does

Selenium MCP: AI test generation and self-healing for pytest, Java, C# and WebdriverIO, plus Grid

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Web & browsers

Use together with

Skills that teach the AI this kind of work; they work alongside this one

timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

by google-research★ 35,6291 skills

Skill · How-to guide

Shadowbroker

Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…

by BigBodyCobain★ 11,6021 skills

Skill · How-to guide

google-maps-scraper

scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place

by gosom★ 8,2091 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Selenium AI Agent. Follow https://mcp.popnx.com/i/learn-automated-testing-selenium-ai-agent.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 18, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Selenium AI Agent for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "selenium-ai-agent": { "command": "npx", "args": [ "-y", "selenium-ai-agent" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Selenium AI Agent tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "selenium-ai-agent": {
          "command": "npx",
          "args": [
            "-y",
            "selenium-ai-agent"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Selenium AI Agent and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Selenium AI Agent or shows a Selenium AI Agent tool in the answer, you are connected

5 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • SELENIUM_HEADLESS Run the browser in headless mode · default false
  • SELENIUM_MCP_TOOLSETS Tool groups to load: core, recording, planner, generator, healer, analyzer, grid or all · default all
  • SELENIUM_GRID_URL Selenium Grid hub URL, e.g. http://localhost:4444 (enables parallel execution)
  • SELENIUM_ATTACH_CDP Attach to an already running Chrome at host:port, e.g. 127.0.0.1:9222
  • SELENIUM_MCP_OUTPUT_MODE stdout returns data to the LLM; file saves screenshots and outputs to disk · default stdout

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Selenium AI Agent yet

Selenium AI Agent runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Selenium AI Agent

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)

B · Others in Web & browsers that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Selenium AI Agent for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user selenium-ai-agent -- npx -y selenium-ai-agent 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Selenium AI Agent tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user selenium-ai-agent -- npx -y selenium-ai-agent
  4. Type /mcp in Claude Code

    You should see Selenium AI Agent listed as connected

  5. Try it

    Use Selenium AI Agent and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Selenium AI Agent or shows a Selenium AI Agent tool in the answer, you are connected

5 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • SELENIUM_HEADLESS Run the browser in headless mode · default false
  • SELENIUM_MCP_TOOLSETS Tool groups to load: core, recording, planner, generator, healer, analyzer, grid or all · default all
  • SELENIUM_GRID_URL Selenium Grid hub URL, e.g. http://localhost:4444 (enables parallel execution)
  • SELENIUM_ATTACH_CDP Attach to an already running Chrome at host:port, e.g. 127.0.0.1:9222
  • SELENIUM_MCP_OUTPUT_MODE stdout returns data to the LLM; file saves screenshots and outputs to disk · default stdout

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Selenium AI Agent for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "selenium-ai-agent": { "command": "npx", "args": [ "-y", "selenium-ai-agent" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Selenium AI Agent tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Selenium AI Agent and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Selenium AI Agent or shows a Selenium AI Agent tool in the answer, you are connected

5 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • SELENIUM_HEADLESS Run the browser in headless mode · default false
  • SELENIUM_MCP_TOOLSETS Tool groups to load: core, recording, planner, generator, healer, analyzer, grid or all · default all
  • SELENIUM_GRID_URL Selenium Grid hub URL, e.g. http://localhost:4444 (enables parallel execution)
  • SELENIUM_ATTACH_CDP Attach to an already running Chrome at host:port, e.g. 127.0.0.1:9222
  • SELENIUM_MCP_OUTPUT_MODE stdout returns data to the LLM; file saves screenshots and outputs to disk · default stdout

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Selenium AI Agent for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "selenium-ai-agent": { "type": "stdio", "command": "npx", "args": [ "-y", "selenium-ai-agent" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Selenium AI Agent tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Selenium AI Agent and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Selenium AI Agent or shows a Selenium AI Agent tool in the answer, you are connected

5 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • SELENIUM_HEADLESS Run the browser in headless mode · default false
  • SELENIUM_MCP_TOOLSETS Tool groups to load: core, recording, planner, generator, healer, analyzer, grid or all · default all
  • SELENIUM_GRID_URL Selenium Grid hub URL, e.g. http://localhost:4444 (enables parallel execution)
  • SELENIUM_ATTACH_CDP Attach to an already running Chrome at host:port, e.g. 127.0.0.1:9222
  • SELENIUM_MCP_OUTPUT_MODE stdout returns data to the LLM; file saves screenshots and outputs to disk · default stdout

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Selenium AI Agent💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user selenium-ai-agent -- npx -y selenium-ai-agent

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "selenium-ai-agent": {
      "command": "npx",
      "args": [
        "-y",
        "selenium-ai-agent"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "selenium-ai-agent": {
      "command": "npx",
      "args": [
        "-y",
        "selenium-ai-agent"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "selenium-ai-agent": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "selenium-ai-agent"
      ]
    }
  }
}

Values you fill in

  • SELENIUM_HEADLESS env
    Run the browser in headless mode
  • SELENIUM_MCP_TOOLSETS env
    Tool groups to load: core, recording, planner, generator, healer, analyzer, grid or all
  • SELENIUM_GRID_URL env
    Selenium Grid hub URL, e.g. http://localhost:4444 (enables parallel execution)
  • SELENIUM_ATTACH_CDP env
    Attach to an already running Chrome at host:port, e.g. 127.0.0.1:9222
  • SELENIUM_MCP_OUTPUT_MODE env
    stdout returns data to the LLM; file saves screenshots and outputs to disk

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

GitHub starsi
3 (Stars for the whole repo)
This repo holds several MCP listings; its stars count once in rankings
Downloads per weeki
90/wk
Connection
Runs on your computer
Latest versioni
3.3.6
Published to registryi
Nov 18, 2026
Code last changedi
Nov 18, 2026
Maker
learn-automated-testing
Packages
npm: selenium-ai-agent
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account learn-automated-testing, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed yesterday

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

Not checked yet

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/learn-automated-testing-selenium-ai-agent.svg)](https://mcp.popnx.com/en/servers/learn-automated-testing-selenium-ai-agent)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Web & browsersi

  • More stars than 0% of the other 1613 servers in this category
  • Published to the registry more recently than 98% of the other 1613 servers in this category
  • Basic checks equal to or better than 99% of the other 1613 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Selenium AI Agent safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed yesterday, and the latest version (3.3.6) reached the registry yesterday.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Browser Use, changedetection.io (official), Apify MCP Server, Pomerado, Actionbook

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Browser Use

Lets AI do web tasks for you, such as filling forms, searching and extracting data, in the maker’s cloud browsers or on your computer.

by browser-useWidely used↓ 1.7M/wk★ 121.4KUpdated 29 days ago

Computer or cloud✓ service owner · browser-use.com

Apify MCP Server

Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡

by apifyWidely used★ 16.9KUpdated 2 days ago

Runs in the cloud✓ service owner · apify.com

Pomerado

Connect your agents to any website. The cheaper, faster and more reliable alternative to browser use

by PomeradoGrowing★ 1.8KUpdated yesterday

Runs in the cloud✓ service owner · pomerado.ai

Actionbook

Let your AI agent operate any website through a real, logged-in browser session.

by actionbookGrowing★ 1.6KUpdated 31 days ago

Runs in the cloud✓ service owner · actionbook.app
Compared with similar ones
This one
Selenium AI Agent
Browser Usechangedetection.io (official)Apify MCP ServerPomeradoActionbook
Runs whereInstalls on your computerCloud or install on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoYesNoYesNoNo
Add with + in ClaudeNoYesNoNoNoNo
Basic checks3/35/53/34/44/44/4
LicenseMITMITApache-2.0MITMITApache-2.0
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

selenium-ai-agent

AI-powered Selenium MCP server for browser automation — 61 tools (75 with Selenium Grid), loadable in groups, with accessibility tree discovery, selector teaching, BiDi cross-browser support, Selenium Grid parallel execution, test generation & self-healing pipeline, and session tracing.

One-Click Install

Install

npm install -g selenium-ai-agent

Or run directly without installing:

npx selenium-ai-agent

Requirements

  • Node.js 18+
  • Chrome browser for local runs (Firefox and Edge are available through Selenium Grid)
  • ChromeDriver is provisioned automatically — the server detects your installed Chrome version, reuses a matching cached driver, and only downloads a new one when the version no longer matches. Run npx selenium-ai-agent doctor to verify.

Driver Setup, Proxy & Troubleshooting

On first use the server resolves a chromedriver that matches your installed Chrome. If that fails (corporate proxy, offline, corrupt cache), start here.

doctor — preflight diagnostics
npx selenium-ai-agent doctor

From a cloned repo (e.g. when verifying on macOS or Linux):

cd selenium-mcp-server

npm ci && npm run build node dist/bin/cli.js doctor

It checks, and prints a concrete fix for anything that fails:

  • the bundled Selenium Manager binary resolves and is executable,
  • Chrome is installed and which version,
  • the driver provisioning plan — strategy (override / PATH / cache / direct / fallback), the chosen download URL, and the resolved driver path,
  • per-host reachability: the storage host (required for the direct download) and the metadata host (only the Selenium Manager fallback needs it),
  • where the driver cache lives.
How the driver is obtained

The driver is downloaded for your exact Chrome version directly from the Chrome-for-Testing storage host, so the metadata host (googlechromelabs.github.io) — which is unreachable on some networks (broken IPv6 routes → "No route to host") — is not on the normal path. Resolution order, first match wins:

  1. SE_CHROMEDRIVER — an explicit driver path (no network),
  2. a chromedriver already on PATH (no network),
  3. a cached driver matching your Chrome major (no network),
  4. direct download from storage.googleapis.com (IPv4-forced, retried),
  5. Selenium Manager discovery (fallback; uses the metadata host).

For restricted / air-gapped setups, set SE_CHROMEDRIVER to a local driver, or SE_CHROMEDRIVER_MIRROR to a mirror of the Chrome-for-Testing storage layout.

`Selenium Manager binary not found at: /node_modules/...`? Fixed in 3.3.1 —

upgrade with npm install -g selenium-ai-agent@latest (or clear the npx cache).

The binary is now resolved from the installed selenium-webdriver package

rather than the working directory, so it works under npx.

Corporate proxy

A GUI-launched MCP server does not inherit your shell's proxy. Configure it explicitly in one place — a JSON file in your home directory:

~/.selenium-ai-agent/config.json

{

"proxy": "http://user:pass@proxy.corp:8080", "noProxy": "localhost,127.0.0.1,.internal" }

The standard HTTPS_PROXY / HTTP_PROXY / NO_PROXY environment variables are also honoured and take precedence over the file. The proxy is injected explicitly into the driver-download subprocess, so it works even when the parent process has no proxy in its environment. (Keep credentials in this home-dir file — never commit them.)

Corrupt or half-extracted cache

A driver download interrupted mid-way can leave an unextracted .zip or a non-executable file in the cache, causing EACCES / "Exec format error". The server now detects this, removes just that cache entry, and re-resolves with exponential backoff — it never spawns a .zip as an executable.

Shared / network folders (VMware, mapped drives)

The driver cache defaults to ~/.cache/selenium on every platform (macOS, Linux and Windows alike — it is not %LOCALAPPDATA% on Windows). If your home directory is on a shared (VMware/HGFS) or network mount, the OS may refuse to execute the driver from there. Point the cache at a local disk:

# Windows

SE_CACHE_PATH=C:\selenium-cache

macOS / Linux

SE_CACHE_PATH=/var/tmp/selenium

Developing on macOS but running inside a Windows VM with the Mac folders

shared in? Keep SE_CACHE_PATH on each guest's local disk so the driver is

never executed across the share.

Quick Start

Add to your MCP client config:

{

"mcpServers": { "selenium-mcp": { "command": "npx", "args": ["selenium-ai-agent"] } } }

Then ask your AI assistant: *"Navigate to https://example.com and take a screenshot"*

Client Setup

Claude Code
claude mcp add selenium-mcp -- npx selenium-ai-agent

Or add to your project .mcp.json:

{

"mcpServers": { "selenium-mcp": { "command": "npx", "args": ["selenium-ai-agent"] } } }

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{

"mcpServers": { "selenium-mcp": { "command": "npx", "args": ["selenium-ai-agent"] } } }

Config paths per OS:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
Cursor

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

{

"mcpServers": { "selenium-mcp": { "command": "npx", "args": ["selenium-ai-agent"] } } }

GitHub Copilot (VS Code 1.99+)

Add to .vscode/mcp.json:

{

"servers": { "selenium-mcp": { "command": "npx", "args": ["selenium-ai-agent"], "type": "stdio" } } }

Note: Copilot uses "servers" instead of "mcpServers".

Cline

Open the MCP Servers panel in Cline, click Configure, then Advanced MCP Settings, and add:

{

"mcpServers": { "selenium-mcp": { "command": "npx", "args": ["selenium-ai-agent"] } } }

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json (global) or .windsurf/mcp_config.json (project):

{

"mcpServers": { "selenium-mcp": { "command": "npx", "args": ["selenium-ai-agent"] } } }


Tool Auto-Approval (Reducing "Yes" Prompts)

All tools include MCP annotations (readOnlyHint, destructiveHint, etc.) that help clients auto-approve safe tools. Read-only tools like capture_page, recording_status, and grid_status are marked as non-destructive and can be auto-approved by clients that support annotations.

Claude Desktop

After the first approval, click "Always allow" for each tool to stop future prompts. Tools marked readOnlyHint: true may be auto-approved by the client.

Claude Code

Pre-approve all tools from this server in .claude/settings.json:

{

"permissions": { "allow": ["mcpselenium-mcp*"] } }

Cursor / Cline / Windsurf

These clients typically allow you to configure auto-approval per tool or per server in their settings. Check your client's MCP settings for "auto-approve" or "always allow" options.


Environment Variables

VariableDefaultDescription
SELENIUM_GRID_URL—Grid hub URL (enables parallel features)
SELENIUM_HEADLESSfalseRun browser in headless mode
SELENIUM_STEALTHfalseEnable stealth mode (masks basic automation flags; does not get past advanced bot protection such as Cloudflare)
SELENIUM_MCP_TOOLSETSallComma-separated tool groups to load, e.g. core,generator,healer
SELENIUM_ATTACH_CDP—Attach to an already running Chrome at host:port (e.g. 127.0.0.1:9222) instead of launching one
SELENIUM_MCP_OUTPUT_MODEstdoutOutput mode: stdout (return data to LLM) or file (save to disk)
SELENIUM_MCP_OUTPUT_DIRautoOutput directory for generated files (auto-detected from project root)
SELENIUM_MCP_SAVE_TRACEfalseSave session trace JSON to /traces/
SELENIUM_MCP_UNRESTRICTED_FILESfalseBypass workspace path validation (allow writing outside output dir)
SE_AVOID_STATS—Set to true to disable Selenium usage statistics
HTTPS_PROXY / HTTP_PROXY—Proxy for the driver download (overrides the config file)
NO_PROXY—Comma-separated hosts that bypass the proxy
SE_CACHE_PATH~/.cache/seleniumDriver cache directory — point at a local disk when home is a shared/network folder
SE_CHROMEDRIVER—Absolute path to a chromedriver to use as-is (no network — for restricted/air-gapped setups)
SE_CHROMEDRIVER_MIRRORChrome-for-Testing storageBase URL of a mirror of the Chrome-for-Testing storage layout
SELENIUM_AI_AGENT_CONFIG~/.selenium-ai-agent/config.jsonOverride path to the proxy config file
SELENIUM_AI_AGENT_SKIP_PROVISION—Set to 1 to skip driver provisioning and let Selenium resolve the driver itself
SELENIUM_AI_AGENT_SKIP_PREFLIGHT—Set to 1 to skip the start-up driver check
SELENIUM_AI_AGENT_PREFLIGHT_TIMEOUT_MS30000Timeout for the start-up driver check

Pass env vars in your MCP config:

{

"mcpServers": { "selenium-mcp": { "command": "npx", "args": ["selenium-ai-agent"], "env": { "SELENIUM_HEADLESS": "true", "SELENIUM_STEALTH": "true", "SE_AVOID_STATS": "true" } } } }

CLI Flags

npx selenium-ai-agent [flags]

npx selenium-ai-agent doctor # run driver/proxy diagnostics and exit

FlagDescription
doctorRun preflight diagnostics (Chrome, driver, proxy, cache) and exit
--stealthEnable stealth mode
--headlessRun browser headless
--save-traceSave session trace JSON
`--output-mode=stdout\file`Set output mode
--output-dir= Set output directory
--grid-url= Set Selenium Grid hub URL
--toolsets= Load only these tool groups, e.g. --toolsets=core,healer
--allow-unrestricted-file-accessBypass workspace file path validation

Tool Groups

Every tool definition is sent to the model on each request, so loading fewer tools saves context and helps the model pick the right one. Some MCP clients also limit how many tools they load. Use SELENIUM_MCP_TOOLSETS (or --toolsets=) to choose groups:

GroupToolsContents
core37Navigation, page analysis, elements, input, mouse, tabs, verification, browser, session, batch. Always loaded.
recording4Record actions for test generation
planner3Explore an app and save a test plan

| generator | 6 | Generate tests (pyt

Only the beginning is shown; read the rest in the repo