# SeleniumBase MCP

An MCP server that hands your agent SeleniumBase browser control: tests, scraping and bot-detection bypass.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 13169
- Author: seleniumbase
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/seleniumbase/SeleniumBase
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/mcp/seleniumbase-mcp

## What it does

The server exposes SeleniumBase as a tool for an AI agent. Through CDP Mode the agent opens pages, clicks, takes screenshots and pulls data — all in a stealth setup that gets past bot detection and CAPTCHAs. Useful when you want to run an E2E test or grab page content without leaving the chat.

It runs via `uvx seleniumbase`, so `uv` has to be installed. You do not need to install the Python package separately: `uvx` fetches it. The server speaks stdio and plugs into Claude, Codex, Cursor, GitHub Copilot and other clients with a single command.

Stealth is not a guarantee. Sites with aggressive protection can still block requests, and CDP Mode needs a recent Chrome. If you are automating against production, that is a reason to check whether scraping fits the site's rules.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add seleniumbase -- uvx seleniumbase
```
uvx runs the command named after the package; if the README names another one, use uvx --from seleniumbase <command>

### Codex

**Platform CLI**
```bash
codex mcp add seleniumbase-mcp -- uvx seleniumbase
```
uvx runs the command named after the package; if the README names another one, use uvx --from seleniumbase <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "seleniumbase-mcp": {
            "command": "uvx",
            "args": [
                "seleniumbase"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from seleniumbase <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "seleniumbase-mcp": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "seleniumbase"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from seleniumbase <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add seleniumbase-mcp uvx seleniumbase
```
uvx runs the command named after the package; if the README names another one, use uvx --from seleniumbase <command>

## When to use it
- run an E2E test on a page straight from the agent chat
- scrape a site that blocks ordinary requests
- capture a page screenshot for a report
- get past a CAPTCHA during automated login
- check layout in a real browser without launching it by hand

## Example prompts
- Open seleniumbase.io and screenshot the homepage
- Run the login test on our staging site with SeleniumBase
- Scrape the headlines from this page

## Similar
- [agent-browser](https://affpapa.org/en/nevibecode/skills/vercel-labs-agent-browser.md) — skill · 1200000 installs
- [cloud](https://affpapa.org/en/nevibecode/skills/browser-use-cloud.md) — skill · 3200 installs
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
