SeleniumMCP
Provides browser automation capabilities through Selenium WebDriver, allowing AI agents to interact with web pages by navigating, clicking, filling forms, extracting data, taking screenshots, and managing browser state.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SeleniumMCPnavigate to google.com and take a screenshot"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Selenium MCP Server
Deployment-ready Python MCP server for Selenium browser automation. It supports local STDIO usage and production-style Streamable HTTP at /mcp, plus health endpoints for container platforms.
Tools
browser_start,browser_stop,browser_reset,browser_statenavigate,go_back,go_forward,refreshset_window_size,open_new_tab,switch_window,close_windowfind_element,wait_for_element,click,type_textget_text,get_attribute,execute_script,scrollpage_source,screenshot,save_screenshotlist_cookies,add_cookie,delete_cookies
Locator strategies: id, name, css selector, xpath, link text, partial link text, tag name, class name.
HTTP Endpoints
POST /mcpand related Streamable HTTP MCP callsGET /healthzGET /readyzPOST /browser/startPOST /browser/stop
Local Setup
Windows Python Prerequisite
If PowerShell says Python was not found, install Python 3.11+ first. The quickest options are:
winget install Python.Python.3.12Then close and reopen PowerShell. If python --version still opens the Microsoft Store prompt, disable the python.exe and python3.exe app execution aliases in:
Settings > Apps > Advanced app settings > App execution aliasespython -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"PowerShell:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e ".[dev]"Run as a local STDIO MCP server:
selenium-mcpRun as a Streamable HTTP MCP server:
selenium-mcp-httpThen connect MCP clients to:
http://localhost:8000/mcpClaude Desktop Example
{
"mcpServers": {
"selenium": {
"command": "selenium-mcp",
"env": {
"SELENIUM_BROWSER": "chrome",
"SELENIUM_HEADLESS": "true"
}
}
}
}Docker
Build and run with an in-container Chromium browser:
docker build -t selenium-mcp .
docker run --rm -p 8000:8000 selenium-mcpRun with a dedicated Selenium Grid browser container:
docker compose up --buildConfiguration
Copy .env.example to .env and adjust:
SELENIUM_BROWSER=chrome
SELENIUM_HEADLESS=true
SELENIUM_REMOTE_URL=
SELENIUM_IMPLICIT_WAIT_SECONDS=2
SELENIUM_PAGE_LOAD_TIMEOUT_SECONDS=30
SELENIUM_SCRIPT_TIMEOUT_SECONDS=30
SELENIUM_WINDOW_WIDTH=1440
SELENIUM_WINDOW_HEIGHT=1000
SELENIUM_ALLOW_FILE_URLS=false
SELENIUM_DEFAULT_DOWNLOAD_DIR=/tmp/selenium-downloads
SELENIUM_HTTP_HOST=0.0.0.0
SELENIUM_HTTP_PORT=8000
SELENIUM_MCP_TRANSPORT=stdioFor remote Selenium Grid, set:
SELENIUM_REMOTE_URL=http://selenium:4444/wd/hubSecurity Notes
This server can browse the web, execute JavaScript, read page HTML, and save screenshots on the host. In production, run it in a locked-down container or VM, restrict outbound network access, keep SELENIUM_ALLOW_FILE_URLS=false, and put the HTTP MCP endpoint behind your platform authentication layer.
Validation
ruff check .
pytestResources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Lokii0911/SeleniumMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server