# selenium-mcp-server

> selenium-mcp-server is an open-source MCP server for browser automation. MCP server giving AI assistants browser automation through Selenium Chrome control. It is available on CLI, Linux, macOS, Windows and API.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows, API
- **Repository:** https://github.com/phungxuananh/selenium-mcp-server
- **GitHub stars:** 10
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation)
- **Listing updated:** 2026-12-01

## About

Exposes a Chrome browser to AI assistants over the Model Context Protocol, so a client can open pages, click and type into elements, read console and network logs, and capture screenshots. It attaches to an existing Chrome started with remote debugging or launches a new one on its own.

The server ships a compact default profile with twelve tools that share one browser session and an active tab, plus a legacy profile that keeps the original 24 tool names for older clients. Element lookup works by XPath, CSS, text, attributes, or iframe targeting, and results come back as references that can be reused for clicks and input.

It suits developers and QA engineers who want an assistant to drive a real browser for testing, scraping, or debugging front-end behaviour. Installation is via pip or from source, and it requires Python 3.10 or newer and a local Chrome install.

## Features

- **Compact tool profile:** A twelve-tool default surface keeps the tool list small, with a legacy profile available for existing clients.
- **Element querying and interaction:** Find elements by XPath, CSS, text or attributes, then click, type, hover or upload through stable references.
- **Browser log access:** Read console output and network requests with filtering, cursors and optional redaction of sensitive values.
- **Tab and screenshot control:** List, open, switch and close tabs, and save viewport, full-page or element screenshots as PNG files.
- **Request header injection:** Add headers such as a debug flag to requests from one tab that match explicit URL patterns.
- **Chrome session attachment:** Connect to a running Chrome via remote debugging or let the server start a new instance.

## Good for

- Letting an AI assistant walk through a web app to reproduce a front-end bug
- Automating form filling and navigation during manual-style QA checks
- Capturing screenshots of pages or components for review
- Inspecting console errors and network responses while debugging a page
- Running JavaScript in a live page and reading back its results

## Tools

From the tool list in its README, going by the names, 1 of 8 tools changes data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `navigate`: Navigate to a specified URL with Chrome browser
- `take_screenshot`: Take a screenshot of the active tab
- `record_video`: Start or stop recording a tab as an MP4
- `request_headers`: Set, list or clear headers on a tab's matching requests
- `get_console_logs` (name suggests: reads): Read and consume browser console logs with optional level filtering
- `get_network_logs` (name suggests: reads): Read performance logs as network events with optional filtering
- `run_javascript_in_console` (name suggests: changes): Execute JavaScript in the page
- `local_storage_read_all` (name suggests: reads): Read all key-value pairs from browser local storage

## FAQ

### How do I install the server?

Install the mcp-server-selenium package with pip or uv, or clone the repository and run it from source with uv sync.

### What does selenium-mcp-server need on the machine?

Python 3.10 or higher and a Chrome browser installed. ffmpeg is needed only for the address header in video recording.

### Which profile should I use?

The default compact profile is recommended; pass --tool-profile legacy only if a client requires the original 24 tool names.

### Can selenium-mcp-server run headless or in the background?

The README describes attaching to a Chrome instance with remote debugging enabled or letting the server start one, and it keeps focus behaviour details for Linux X11.

### Is selenium-mcp-server free?

Yes. selenium-mcp-server is open source, so you can use and self-host it for free.

### What are the best alternatives to selenium-mcp-server?

The closest alternatives to selenium-mcp-server are selenium-mcp, Selenium MCP, Selenium MCP, Selenium Webdriver MCP and Selenium AI Agent.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [selenium-mcp](https://ai-powered.com/mcp/selenium-mcp-3): selenium-mcp is an open-source MCP server for browser automation.
- [Selenium MCP](https://ai-powered.com/mcp/selenium-mcp): Selenium MCP is an open-source MCP server for browser automation.
- [Selenium MCP](https://ai-powered.com/mcp/selenium-mcp-2): Selenium MCP is an open-source MCP server for browser automation.
- [Selenium Webdriver MCP](https://ai-powered.com/mcp/selenium-webdriver-mcp): Selenium Webdriver MCP is an open-source MCP server for browser automation.
- [Selenium AI Agent](https://ai-powered.com/mcp/selenium-ai-agent): Selenium AI Agent is an open-source MCP server for browser automation.
- [browser-mcp](https://ai-powered.com/mcp/browser-mcp-4): browser-mcp is an open-source MCP server for browser automation.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Browser](https://ai-powered.com/mcp/browser): Browser is an open-source MCP server for browser automation.

---
Source: https://ai-powered.com/mcp/selenium-mcp-server
