mcp-selenium-python
Provides browser automation capabilities using Selenium WebDriver, allowing LLMs to perform actions like navigation, clicking, and inputting text on web pages.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Selenium Server & Client
This project provides a Model Context Protocol (MCP) server and client implementation for Selenium-based browser automation. It allows LLMs or external tools to interact with a browser through a standardized protocol, supporting actions like navigation, input, and clicks.
π Features
MCP Server: Exposes Selenium browser automation as tools.
MCP Client: Sends tool calls (e.g., navigate, click, input) and receives structured results.
Extensible Actions: Modular design for actions (
navigate,click,input). More actions to be added.Driver Management: Abstraction for Selenium sessions and locator strategies.
Tool Facade: Unified interface for tools (
mcp_tools,webtools).Logging & Context: Centralized log writer and execution context.
Related MCP server: openmcp
π Project Structure
.
βββ client/
β βββ client.py # MCP client implementation
β βββ llm_client.py # Example LLM client integration (currently set to use Gemini)
β
βββ server/
β βββ mcp_selenium_server.py # MCP server entry point
β βββ custom_context.py # Execution context handling
β βββ log_writer.py # Logging utilities
β βββ actions/ # Browser actions (navigate, click, input)
β βββ engine/ # Driver/session/locator management
β βββ tools/ # Tool definitions (MCP tools, web tools)
β
βββ .env # Environment variables
βββ pyproject.toml # Project dependencies & configuration
βββ uv.lock # Dependency lock file
βββ LICENSE # License file
βββ README.md # (this file)βοΈ Installation
Clone the repo:
git clone <repo-url> cd mcp-seleniumInstall dependencies (using uv or poetry):
uv syncSet environment variables in
.envif needed (e.g., LLM API Key).
βΆοΈ Usage
Start the MCP Server
python server/mcp_selenium_server.pyRun the Client
python client/client.pyExample JSON-RPC Request
{
"action": "launch_page",
"args": {
"url": "https://google.com",
"browser": "edge",
"headless": false
}
}Example Actions
launch_pageβ Open a URLclickβ Click an elemententer_textβ Type text into a field At present only these actions are added but can be extended for more actions.
π Development
Python 3.10+
Selenium WebDriver
MCP protocol integration
Lint & format before committing:
uv run black .
uv run flake8 .π License
This project is licensed under the terms of the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
Related MCP Connectors
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to iβ¦
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
A real browser for your agent: screenshots, page checks, Markdown and PDFs.
Related MCP Servers
- 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.634 npm4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to automate web tasks such as browsing, clicking, typing, and taking screenshots via the Model Context Protocol.1MIT
- AlicenseAqualityBmaintenanceEnables browser automation through the Model Context Protocol, allowing AI agents to control Chrome, Firefox, or Edge for tasks like navigation, clicking, typing, and screenshots.4192 npmMIT

Browseagent MCPofficial
AlicenseAqualityDmaintenanceEnables AI agents to control web browsers through the Model Context Protocol, supporting navigation, clicking, typing, and screenshots.1210 npm1MIT