Get the FREE Ultimate OpenClaw Setup Guide →

selenium -python

MCP server from Jyothishkumarav/selenium-mcp-server-python

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio jyothishkumarav-selenium-mcp-server-python python server.py

How to use

This MCP server provides Selenium WebDriver automation through a Python-based MCP server. It enables Claude's desktop application to control Chrome or Firefox browsers programmatically, performing common browser interactions such as navigation, element operations, taking screenshots, and managing storage and frames. The server exposes a suite of Selenium capabilities organized into sections like Browser Management, Navigation, Element Interaction, Element Information, Page Operations, and Frame Handling, allowing Claude to initiate sessions, locate and interact with elements, capture page content and screenshots, and switch contexts between iframes and windows. To use it, start the server with Python, then enable the MCP-Selenium server in Claude under Developer Options. Once enabled, Claude can issue MCP commands to perform the described automation tasks across supported browsers.

How to install

Prerequisites:

  • Python 3.7+
  • Chrome or Firefox browser installed
  • Claude desktop application

Installation steps:

  1. Clone the repository:
git clone https://github.com/Jyothishkumarav/selenium-mcp-server-python.git
cd selenium-mcp-server-python
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Install the MCP server in Claude:
mcp install server.py
  1. Run the server locally:
python server.py
  1. In Claude, enable the MCP-Selenium server under Settings > Developer Options to start using Selenium automation features.

Additional notes

Tips and notes:

  • Ensure the appropriate browser (Chrome or Firefox) is installed and accessible by the WebDriver.
  • Check that the Python environment has the required dependencies listed in requirements.txt.
  • If you encounter connection or capability errors, verify that the server.py is running and that Claude is configured to connect to the running MCP server.
  • You can extend or customize environment variables in the mcp_config 'env' section if the server requires API keys or browser driver paths.
  • Common issues include Mismatched WebDriver versions, firewall restrictions, and missing browser binaries in headless environments.
  • This MCP server focuses on Selenium WebDriver interactions; use the Available Tools documentation in Claude to map to MCP commands for actions like find_element, click, send_keys, take_screenshot, switch_to_window, and manage_local_storage.

Related MCP Servers

Sponsor this space

Reach thousands of developers