Selenium WebDriver

Selenium WebDriver

pshivapr

Controls web browsers programmatically through Selenium WebDriver to automate browsing tasks, interact with web pages, and capture screenshots. Works with Chrome, Firefox, and Edge browsers.

Enables browser automation through Selenium WebDriver with support for Chrome, Firefox, and Edge browsers, providing navigation, element interaction, form handling, screenshot capture, JavaScript execution, and advanced actions for automated testing and web scraping tasks.

41,106 views6Local (stdio)

What it does

  • Open and control browser sessions
  • Navigate to URLs and browse pages
  • Interact with web elements and forms
  • Capture screenshots of web pages
  • Execute JavaScript code in browsers
  • Extract page content and data

Best for

QA engineers automating web testingDevelopers scraping web dataAutomating repetitive browser tasksAI assistants performing web research
Supports Chrome, Firefox, and EdgeFull browser automation capabilitiesWorks with AI assistants via MCP

About Selenium WebDriver

Selenium WebDriver is a community-built MCP server published by pshivapr that provides AI assistants with tools and capabilities via the Model Context Protocol. Selenium WebDriver automates browser tasks for automated testing in software testing, supporting Chrome, Firefox, and Ed It is categorized under browser automation, search web. This server exposes 56 tools that AI clients can invoke during conversations and coding sessions.

How to install

You can install Selenium WebDriver in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

Selenium WebDriver is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

Tools (56)

browser_open

Open a new browser session

browser_navigate

Navigate to a URL

browser_navigate_back

Navigate back in the browser

browser_navigate_forward

Navigate forward in the browser

browser_title

Get the current page title

Add to Cursor Add to VS Code Add to Claude Add to ChatGPT Add to Codex Add to Gemini

Selenium MCP Server

npm version

npm downloads

GitHub issues

smithery badge

This is a server implementation that bridges the gap between MCP clients (AI assistants) and Selenium WebDriver. It exposes Selenium WebDriver's functionalities as MCP tools, allowing AI models to utilize them for tasks like:

  • Browser management (launching, navigating, closing browsers)
  • Element interaction (clicking, typing, finding elements)
  • Web scraping and automated testing
  • Advanced operations like screenshots, cookie management, and JavaScript execution

In essence, the selenium webdriver mcp setup allows AI assistants to leverage the power of Selenium Webdriver for web automation, by communicating with a dedicated Selenium MCP server via the Model Context Protocol. This facilitates tasks such as automated web interactions, testing, and data extraction, all controlled by AI.

README image Link to glama.ai

🚀 Overview

A Model Context Protocol (MCP) server for Selenium that provides comprehensive Selenium WebDriver automation tools for AI assistants and applications. This server enables automated web browser interactions, testing, and scraping through a standardized interface.

Built with TypeScript and modern ES modules, it offers type-safe browser automation capabilities through the Model Context Protocol.

✨ Key Features

  • Multi-Browser Support: Chrome, Firefox, Safari, and Edge browser automation
  • Comprehensive Element Interaction: Click, type, hover, drag & drop, file uploads
  • Advanced Navigation: Forward, backward, refresh, window management
  • Wait Strategies: Intelligent waiting for elements and page states
  • Type Safety: Full TypeScript implementation with Zod validation

🤝 Integration

MCP Client Integration

Configure your MCP client to connect to the Selenium server:

Standard Configuration (applicable to Windsurf, Warp, Gemini CLI etc)

{
  "servers": {
    "selenium-mcp": {
      "command": "npx",
      "args": ["-y", "selenium-webdriver-mcp@latest"]
    }
  }
}

Installation in VS Code

Update your mcp.json in VS Code with below configuration

NOTE: If you're new to MCP servers, follow this link Use MCP servers in VS Code

Example 'stdio' type connection

{
  "servers": {
    "selenium-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "selenium-webdriver-mcp@latest"
      ],
      "type": "stdio"
    }
  },
  "inputs": []
}

Example 'http' type connection

{
  "servers": {
    "Selenium": {
      "url": "https://smithery.ai/server/@pshivapr/selenium-mcp",
      "type": "http"
    }
  },
  "inputs": []
}

After installation, the Selenium MCP server will be available for use with your GitHub Copilot agent in VS Code.

To install the Selenium MCP server using the VS Code CLI

# For VS Code
code --add-mcp '{\"name\":\"selenium-mcp\",\"command\": \"npx\",\"args\": [\"selenium-webdriver-mcp@latest\"]}'

# For VS Code Insiders
vscode-insiders --add-mcp '{\"name\":\"selenium-mcp\",\"command\": \"npx\",\"args\": [\"selenium-webdriver-mcp@latest\"]}'

To install the package using either npm, or Smithery

Using npm:

npm install -g selenium-webdriver-mcp@latest

Using Smithery

To install Selenium MCP for Claude Desktop automatically via smithery badge

npx @smithery/cli install @pshivapr/selenium-mcp --client claude

Claude Desktop Integration

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "selenium-mcp": {
      "command": "npx",
      "args": ["-y", "selenium-webdriver-mcp@latest"]
    }
  }
}

Screenshot

Selenium + Claude

Prompts

An example prompt to start AI Agent interaction:

Using selenium mcp tools, navigate to <https://parabank.parasoft.com/> click the 'Register' link and signup using dynamic test data and click register. Then generate selenium tests in <YOUR_FAVOURITE_PROGRAMMING_LANGUAGE> using pom, create tests using cucumber features, steps and execute the tests.

Note: For more prompts, look at examples directory of the project

🛠️ MCP Available Tools

Browser Management Tools

ToolDescriptionParameters
browser_openOpen a new browser sessionbrowser, options
browser_navigateNavigate to a URLurl
browser_navigate_backNavigate back in historyNone
browser_navigate_forwardNavigate forward in historyNone
browser_titleGet the current page titleNone
browser_refreshRefresh the current pageNone
browser_get_urlGet the current page URLNone
browser_get_page_sourceGet the current page HTML sourceNone
browser_maximizeMaximize the browser windowNone
browser_resizeResize browser windowwidth, height
browser_closeClose current browser sessionNone

Cookie Management Tools

ToolDescriptionParameters
browser_get_cookiesGet all cookies from the current browser sessionNone
browser_get_cookie_by_nameGet a specific cookie by namecookie (cookie name)
browser_add_cookie_by_nameAdd a new cookie to the browsercookie (cookie name), value
browser_set_cookie_objectSet a cookie object in the browsercookie (cookie object as string)
browser_delete_cookieDelete a specific cookie by namevalue (cookie name to delete)
browser_delete_cookiesDelete all cookies from the current browser sessionNone

Window Management Tools

ToolDescriptionParameters
browser_switch_to_windowSwitch to a different browser window by handlewindowHandle
browser_switch_to_original_windowSwitch back to the original browser windowNone
browser_switch_to_window_by_titleSwitch to a window by its page titletitle
browser_switch_window_by_indexSwitch to a window by its index positionindex
browser_switch_to_window_by_urlSwitch to a window by its URLurl

Element Interaction Tools

ToolDescriptionParameters
browser_find_elementFind an element on the pageby, value, timeout
browser_find_elementsFind multiple elements on the pageby, value, timeout
browser_clickClick on an elementby, value, timeout
browser_typeType text into an elementby, value, text, timeout
browser_get_element_textGet text content of elementby, value, timeout
browser_file_uploadUpload file via input elementby, value, filePath, timeout
browser_clearClear text from an elementby, value, timeout
browser_get_attributeGet element attribute valueby, value, attribute, timeout

Element State Validation Tools

ToolDescriptionParameters
browser_element_is_displayedCheck if an element is visible on the pageby, value, timeout
browser_element_is_enabledCheck if an element is enabled for interactionby, value, timeout
browser_element_is_selectedCheck if an element is selected (checkboxes, radio buttons)by, value, timeout

Frame Management Tools

ToolDescriptionParameters
browser_switch_to_frameSwitch to an iframe elementby, value, timeout
browser_switch_to_parent_frameSwitch to the parent frame (from nested iframe)None
browser_switch_to_default_contentSwitch back to the main page contentNone

Advanced Action Tools

ToolDescriptionParameters
browser_hoverHover over an elementby, value, timeout
browser_double_clickDouble-click on an elementby, value, timeout
browser_right_clickRight-click (context menu)by, value, timeout
browser_drag_and_dropDrag from source to targetby, value, targetBy, targetValue, timeout
browser_wait_for_elementWait for element to appearby, value, timeout
browser_execute_scriptExecute JavaScript codescript, args
browser_screenshotTake a screenshotfilename (optional)
browser_select_dropdown_by_textSelect dropdown option by visible textby, value, text, timeout
`browser_select_dropdown_by

README truncated. View full README on GitHub.

Alternatives

Related Skills

Browse all skills
browser-automation

Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications. Triggers include "browse", "navigate to", "go to website", "extract data from webpage", "screenshot", "web scraping", "fill out form", "click on", "search for on the web". When taking actions be as specific as possible.

16
aluvia-web-unblock

Unblock websites and bypass CAPTCHAs and 403 errors using Aluvia mobile proxies. Enables web search and content extraction without browser automation.

0
aluvia-web-proxy

Unblock websites and bypass CAPTCHAs and 403 errors using Aluvia mobile proxies. Enables web search and content extraction without browser automation.

0
dev-browser

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website", "log into", or any browser interaction request.

29
chrome-devtools

Browser automation, debugging, and performance analysis using Puppeteer CLI scripts. Use for automating browsers, taking screenshots, analyzing performance, monitoring network traffic, web scraping, form automation, and JavaScript debugging.

21
qa-tester

"Browser automation QA testing skill. Systematically tests web applications for functionality, security, and usability issues. Reports findings by severity (CRITICAL/HIGH/MEDIUM/LOW) with immediate alerts for critical failures."

18