Basic information
About selenium_mcp MCP Server
MCP tools build using selenium to automate web testing or scraping
selenium_mcp is a MCP server in the Productivity category listed in the AddMCP.net directory, published by amandeep-sg. It exposes 20 tools, including create_webdriver, quit_webdriver, navigate_to_url, click_element and more. Supported transport: stdio. Runtime: Python. License: MIT. The repository has 3 GitHub stars. Source code is hosted on github.com. Related topics: browser-automation, community, productivity, selenium-mcp, web-scraping.
Setup
{
"mcpServers": {
"selenium_mcp": {
"command": "python3",
"args": [
"-m",
"venv",
"venv"
]
}
}
}
{
"mcpServers": {
"selenium_mcp": {
"command": "python3",
"args": [
"-m",
"venv",
"venv"
]
}
}
}
{
"servers": {
"selenium_mcp": {
"command": "python3",
"args": [
"-m",
"venv",
"venv"
]
}
}
}
selenium_mcp MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"selenium_mcp": {
"command": "python3",
"args": [
"-m",
"venv",
"venv"
]
}
}
}
selenium_mcp MCP Server tools
- create_webdriver — Create a new selenium webdriver session
- quit_webdriver — Quit existing webdriver session
- navigate_to_url — Navigate browser to a specific URL
- click_element — Perform left click, right click, or double click on elements
- input_text — Input text into form fields and elements
- find_element — Find elements on the page by xpath
- get_screenshot — Take screenshot of webpage or specific elements
- get_page_html — Get HTML content of the current page
- get_page_markdown — Get page content converted to markdown format
- scroll_page — Scroll the webpage up or down
- manage_cookies — Add, delete, get, or clear browser cookies
- select_dropdown — Select options from dropdown menus
- handle_checkbox — Select or unselect checkboxes and radio buttons
- execute_javascript — Execute custom JavaScript code on the page
- handle_alerts — Handle browser alert dialogs
- drag_and_drop — Drag and drop elements by xpath
- upload_file — Upload files through file input elements
- download_file — Download files from the webpage
- save_as_pdf — Save current webpage as PDF file
- resize_browser — Resize, maximize, minimize, or fullscreen browser window
Overview
What is selenium_mcp?
Selenium Mcp is a Python server that bridges AI assistants or custom MCP clients with Selenium Webdrivers by exposing Selenium webdriver functionalities as MCP tools, enabling web automation, web testing, and web scraping.
How to use selenium_mcp?
Clone the repository, create a Python virtual environment, install dependencies from requirements.txt, then run python server.py. Optionally set a Google GenAI API key in a .env file as GEMINI_API_KEY and use the built-in lightweight MCP client for testing.
Key features of selenium_mcp
- Humanised error handling for LLM reconfiguration
- Comprehensive element interaction with visibility checks
- Full navigation control: open URLs, forward, backward, refresh
- Supports creating and quitting browser sessions
- Manages cookies (add, delete, get, clear)
- Performs clicks (left, right, double, drag‑and‑drop)
- Scrolls and resizes browser windows
Use cases of selenium_mcp
- Automate web form filling and submission
- Perform web scraping and capture page content as Markdown, HTML, or screenshots
- Execute JavaScript to interact dynamically with webpages
- Upload and download files through browser automation
- Handle browser alerts and dialogs programmatically
Frequently asked questions
1 How does Selenium Mcp differ from other Selenium automation tools?
It exposes Selenium Webdriver capabilities as MCP tools, allowing an AI assistant or MCP client to directly use them without writing raw Selenium code, with built‑in error interpretation for LLMs.
2 What are the runtime dependencies?
Python 3.10+, FastMCP 3.1.1, Selenium 4.41.0, and Google GenAI. It can communicate via stdio when hosted locally or via HTTP when hosted on a cloud server.
3 Where does data (cookies, downloads, screenshots) live?
Data is managed within the browser session controlled by the Selenium Webdriver; screenshots and saved files are stored on the local filesystem.
4 What transports and authentication are supported?
The MCP server uses stdio for local communication and HTTP for cloud deployment. Authentication is not explicitly described; the built‑in client uses a Gemini API key for the AI assistant integration.
5 What are the current limitations of Selenium Mcp?
It currently only supports one browser (Chrome via Selenium), with future plans to add Firefox, Edge, Safari, and Chrome DevTools/BiDi support.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In