Selenium MCP Server

Selenium MCP Server

selenium-mcp-fbettag•byfbettag

A Model Context Protocol server offering browser automation through Selenium WebDriver connected to a browserless service, running without local browsers.

License: MIT License•Runtime: Awaiting documentation review•Category: browser automation

WHAT IT DOES

  • •Navigates to URLs and interacts with page elements using configurable selector strategies.
  • •Executes JavaScript in the browser and takes screenshots.
  • •Connects to a browserless service over the WebDriver protocol with optional bearer token authentication.
  • •Manages an automatic browser session per MCP context.

BEST FOR

  • •Containerized deployments that need browser automation without local browsers.
  • •Running scalable browser automation with concurrency handled by browserless.

ABOUT SELENIUM-MCP-FBETTAG

Selenium MCP Server is cataloged as an MCP server attributed to fbettag. A Model Context Protocol server offering browser automation through Selenium WebDriver connected to a browserless service, running without local browsers. It is categorized under browser automation. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Selenium MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server require a local browser installation?

No, the server runs without local browsers and connects to a browserless service instead.

Can browserless authentication be configured?

Yes, an optional BROWSERLESS_TOKEN bearer token can be set for authentication.

Upstream README

View this exact version on GitHub

README.md · 88dcb0db52df · Fetched 2026-11-13 11:03:00 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Selenium MCP Server

A Model Context Protocol (MCP) server that provides browser automation capabilities using Selenium WebDriver connected to a browserless service. This server runs without local browsers, connecting to browserless via TCP for scalable, containerized deployments.

Features

  • Browser Automation: Navigate to URLs, interact with elements, execute JavaScript
  • Browserless Integration: Connects to browserless service via WebDriver protocol
  • Async Python: Built with FastMCP for high-performance async operations
  • Container Ready: Alpine-based Docker image with no local browsers
  • Session Management: Automatic session handling per MCP context

Quick Start

Prerequisites

  • Python 3.13+
  • Browserless service running (local or remote)
  • UV package manager (recommended)

Installation

# Clone the repository
git clone <your-repo-url>
cd selenium-mcp-server

# Install with UV
uv sync

# Or with pip
pip install -e .

Environment Setup

Set the browserless service URL and optional authentication token:

export BROWSERLESS_URL=http://localhost:3000  # Local browserless
export BROWSERLESS_URL=http://browserless:3000  # Kubernetes service

# Optional: Set authentication token if browserless requires it
export BROWSERLESS_TOKEN=your-bearer-token-here

Run the Server

# With UV
uv run selenium-mcp

# Or directly
python -m selenium_mcp.server

Claude Desktop Setup

Add to your Claude Desktop configuration:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "selenium": {
      "command": "uv",
      "args": ["run", "selenium-mcp"],
      "env": {
        "BROWSERLESS_URL": "http://localhost:3000",
        "BROWSERLESS_TOKEN": "your-bearer-token-here"
      }
    }
  }
}

Available Tools

Navigate to URL

navigate_to_url({
  "url": "https://example.com"
})

Find Element

find_element({
  "selector": ".button-primary",
  "by": "css"  # css, xpath, id, name, class_name, tag_name, link_text, partial_link_text
})

Click Element

click_element({
  "selector": "#submit-button",
  "by": "id"
})

Execute JavaScript

execute_javascript({
  "script": "return document.title;"
})

Take Screenshot

take_screenshot({})

Get Page Info

get_page_info({})

Close Browser

close_browser({})

Docker Deployment

Build the Image

docker build -t selenium-mcp-server .

Run with Docker Compose

version: '3.8'
services:
  browserless:
    image: browserless/chrome:latest
    ports:
      - "3000:3000"
    environment:
      - CONNECTION_TIMEOUT=60000
      - MAX_CONCURRENT_SESSIONS=10

  selenium-mcp:
    image: selenium-mcp-server:latest
    environment:
      - BROWSERLESS_URL=http://browserless:3000
      - BROWSERLESS_TOKEN=${BROWSERLESS_TOKEN:-}
    ports:
      - "8000:8000"
    depends_on:
      - browserless

Kubernetes Deployment

apiVersion: apps/v1
kind: Deployment
metadata:
  name: selenium-mcp
spec:
  replicas: 2
  selector:
    matchLabels:
      app: selenium-mcp
  template:
    metadata:
      labels:
        app: selenium-mcp
    spec:
      containers:
      - name: selenium-mcp
        image: selenium-mcp-server:latest
        env:
        - name: BROWSERLESS_URL
          value: "http://browserless-service:3000"
        - name: BROWSERLESS_TOKEN
          valueFrom:
            secretKeyRef:
              name: browserless-secrets
              key: token
        ports:
        - containerPort: 8000
        resources:
          requests:
            memory: "128Mi"
            cpu: "100m"
          limits:
            memory: "256Mi"
            cpu: "200m"

---
apiVersion: v1
kind: Service
metadata:
  name: browserless-service
spec:
  selector:
    app: browserless
  ports:
  - port: 3000
    targetPort: 3000

Development

Virtual Environment

# Create virtual environment
uv venv .venv

# Activate on Unix/macOS
source .venv/bin/activate

# Activate on Windows
.venv\\Scripts\\activate

# Install dependencies
uv sync

Testing

# Run tests
uv run pytest

# Start local browserless for testing
docker run -p 3000:3000 browserless/chrome:latest

# Test the server
BROWSERLESS_URL=http://localhost:3000 uv run selenium-mcp

Linting and Formatting

# Format code
uv run black src/

# Lint code
uv run ruff check src/

# Type checking
uv run mypy src/

GitHub CI/CD Pipeline

The repository includes a GitHub Actions workflow that:

  1. Tests: Spins up browserless container and runs tests
  2. Builds: Creates Docker image with UV
  3. Pushes: Deploys to container registry on main branch

See .github/workflows/ci.yml for details.

Environment Variables

VariableDescriptionDefault
BROWSERLESS_URLBrowserless service URLRequired
BROWSERLESS_TOKENOptional bearer token for browserless authenticationEmpty
PYTHONPATHPython path for imports/app/src
PYTHONUNBUFFEREDUnbuffered Python output1

Browserless Configuration

This MCP server requires a browserless service. Recommended browserless configuration:

docker run -p 3000:3000 \
  -e CONNECTION_TIMEOUT=60000 \
  -e MAX_CONCURRENT_SESSIONS=10 \
  -e DEFAULT_BLOCK_ADS=true \
  browserless/chrome:latest

Performance Considerations

  • Session Management: Each MCP context gets its own browser session
  • Connection Pooling: Browserless handles multiple concurrent sessions
  • Resource Limits: Set appropriate memory/cpu limits in Kubernetes
  • Timeouts: Configure browserless timeouts based on use case

Troubleshooting

Common Issues

  1. Connection refused: Ensure browserless is running and accessible
  2. Authentication failed: Check if BROWSERLESS_TOKEN is required and correctly set
  3. Session timeout: Increase browserless timeout settings
  4. Element not found: Use appropriate wait strategies in your scripts

Logs

Enable debug logging by setting environment variables:

export LOG_LEVEL=DEBUG
export BROWSERLESS_DEBUG=true

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make changes with tests
  4. Submit a pull request

Support

For issues and questions, please open a GitHub issue or check the browserless documentation.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Selenium MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/selenium-mcp-fbettag)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related browser automation MCP Servers

Alternative and complementary servers in the same category

View all in browser automation →

A Model Context Protocol (MCP) server for controlling Chrome with debugging capabilities, userscript injection, and extension support.

Repository stats unavailable
Browser & Scraping
Web Browser MCP Server
web-browser-mcp-server•blazickjp

An MCP server that lets AI assistants browse websites and extract content using optional CSS selectors.

Repository stats unavailable
Browser & Scraping
Steel MCP Server
steel-mcp-server•steel-dev

An MCP server that reads pages, fills forms, takes screenshots, and hands the browser to a person for logins or CAPTCHAs.

Repository stats unavailable
Browser & Scraping