Selenium MCP Server

Selenium MCP Server

A server implementation that enables controlling web browsers programmatically through Claude's desktop application, providing comprehensive Selenium WebDriver operations for browser automation with Chrome and Firefox support.

Category
Visit Server

README

Selenium MCP Server

A Model Context Protocol (MCP) server implementation for Selenium WebDriver automation using Python. This server allows you to control web browsers programmatically through Claude's desktop application.

Features

  • Browser automation with Chrome and Firefox support
  • Comprehensive set of Selenium WebDriver operations
  • Easy integration with Claude desktop application
  • Support for various browser interactions:
    • Navigation
    • Element interaction (click, send keys, etc.)
    • Screenshot capture
    • Window and iframe handling
    • Local storage management
    • And much more!

Prerequisites

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

Installation

  1. Clone this 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

Usage

  1. Start the server:
python server.py
  1. In Claude desktop application:
    • Go to Settings > Developer Options
    • You should see "MCP-Selenium" listed as an available server
    • Enable the server to start using Selenium automation features

Available Tools

The server provides the following automation capabilities:

  • Browser Management:

    • Start browser sessions
    • Close sessions
    • Switch between windows
  • Navigation:

    • Navigate to URLs
    • Refresh pages
    • Wait for page loads
  • Element Interaction:

    • Find elements
    • Click elements
    • Send keys
    • Clear fields
    • Double click
    • Right click
  • Element Information:

    • Get element text
    • Get element attributes
    • Check element presence
    • Check element visibility
    • Check element selection
  • Page Operations:

    • Take screenshots
    • Get page content
    • Scroll pages
    • Manage local storage
  • Frame Handling:

    • Switch to iframes
    • Return to default content

Example Usage

Here's a simple example of how to use the server with Claude:

  1. Start a browser session
  2. Navigate to a website
  3. Find and interact with elements
  4. Take screenshots
  5. Close the session

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured