SeleniumMCP
Selenium MCP Server
Bereitstellungsfertiger Python-MCP-Server für die Selenium-Browser-Automatisierung. Er unterstützt die lokale STDIO-Nutzung und produktionsnahes Streamable HTTP unter /mcp sowie Health-Endpunkte für Container-Plattformen.
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-Strategien: id, name, css selector, xpath, link text, partial link text, tag name, class name.
Related MCP server: Selenium MCP Server
HTTP-Endpunkte
POST /mcpund zugehörige Streamable HTTP-MCP-AufrufeGET /healthzGET /readyzPOST /browser/startPOST /browser/stop
Lokale Einrichtung
Windows Python-Voraussetzung
Wenn PowerShell meldet, dass Python was not found, installieren Sie zuerst Python 3.11+. Die schnellsten Optionen sind:
winget install Python.Python.3.12Schließen Sie danach PowerShell und öffnen Sie es erneut. Wenn python --version weiterhin die Microsoft Store-Aufforderung öffnet, deaktivieren Sie die python.exe- und python3.exe-App-Ausführungsaliase unter:
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]"Ausführung als lokaler STDIO-MCP-Server:
selenium-mcpAusführung als Streamable HTTP-MCP-Server:
selenium-mcp-httpVerbinden Sie dann MCP-Clients mit:
http://localhost:8000/mcpClaude Desktop-Beispiel
{
"mcpServers": {
"selenium": {
"command": "selenium-mcp",
"env": {
"SELENIUM_BROWSER": "chrome",
"SELENIUM_HEADLESS": "true"
}
}
}
}Docker
Bauen und ausführen mit einem Chromium-Browser im Container:
docker build -t selenium-mcp .
docker run --rm -p 8000:8000 selenium-mcpAusführen mit einem dedizierten Selenium Grid-Browser-Container:
docker compose up --buildKonfiguration
Kopieren Sie .env.example nach .env und passen Sie die Datei an:
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=stdioFür ein Remote-Selenium-Grid setzen Sie:
SELENIUM_REMOTE_URL=http://selenium:4444/wd/hubSicherheitshinweise
Dieser Server kann im Web surfen, JavaScript ausführen, Seiten-HTML lesen und Screenshots auf dem Host speichern. Führen Sie ihn in der Produktion in einem abgesicherten Container oder einer VM aus, beschränken Sie den ausgehenden Netzwerkzugriff, behalten Sie SELENIUM_ALLOW_FILE_URLS=false bei und platzieren Sie den HTTP-MCP-Endpunkt hinter Ihrer Plattform-Authentifizierungsschicht.
Validierung
ruff check .
pytestMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceEnables browser automation using the Selenium WebDriver through MCP, supporting browser management, element location, and both basic and advanced user interactions.903424MIT
- AlicenseAqualityDmaintenanceAllows AI agents to control web browser sessions via Selenium WebDriver, enabling web automation tasks like scraping, testing, and form filling through the Model Context Protocol.6574MIT
- AlicenseBqualityCmaintenanceEnables AI assistants to automate web browser interactions through Selenium WebDriver. Supports multi-browser automation, element interaction, navigation, and web testing capabilities.561186MIT
- Alicense-qualityDmaintenanceEnables browser automation through Playwright with persistent sessions and cookie state management. Supports web navigation, page interaction, and browser control via JSON-RPC protocol over stdin/stdout.1MIT
Related MCP Connectors
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…
Automate cloud browsers to navigate websites, interact with elements, and extract structured data.…
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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