# selenium-mcp [Health: Active]

**Category:** 📂 Browser Automation  
**Repository:** https://github.com/pshivapr/selenium-mcp  
**GitHub Stars:** 6  
**npm Downloads (last month):** 467  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/selenium-mcp-2

## Description
Selenium Tools for MCP

## Tools
Capabilities this server exposes over MCP:

- **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
- **browser_get_url** — Get the current page URL
- **browser_get_page_source** — Get the current page source
- **browser_maximize** — Maximize the browser window
- **browser_resize** — Resize the browser window
- **browser_refresh** — Refresh the current page
- **browser_switch_to_window** — Switch to a different browser window
- **browser_switch_to_original_window** — Switches back to the original browser window
- **browser_switch_to_window_by_title** — Switch to a window by its title
- **browser_switch_window_by_index** — Switch to a window by its index
- **browser_switch_to_window_by_url** — Switch to a window by its URL
- **browser_close** — Close the current browser session
- **browser_find_element** — Find an element
- **browser_find_elements** — Find multiple elements
- **browser_click** — Perform a click on an element
- **browser_type** — Type into an editable field
- **browser_clear** — Clears the value of an input element
- **browser_get_element_text** — Gets the text of an element
- **browser_get_attribute** — Gets the value of an attribute from an element
- **browser_element_is_displayed** — Checks if an element is displayed
- **browser_element_is_enabled** — Checks if an element is enabled
- **browser_element_is_selected** — Checks if an element is selected
- **browser_switch_to_frame** — Switches to an iframe element
- **browser_switch_to_default_content** — Switches to the default content
- **browser_switch_to_parent_frame** — Switches to the parent iframe
- **browser_file_upload** — Uploads a file using a file input element
- **browser_hover** — Hover over an element
- **browser_wait_for_element** — Wait for an element to be present
- **browser_drag_and_drop** — Perform drag and drop between two elements
- **browser_double_click** — Perform double click on an element
- **browser_right_click** — Perform right click (context click) on an element
- **browser_select_dropdown_by_text** — Select dropdown by visible text
- **browser_select_dropdown_by_value** — Select dropdown by value
- **browser_key_press** — Press a key on the keyboard
- **browser_execute_script** — Execute JavaScript in the context of the current page
- **browser_scroll_to_element** — Scroll to an element
- **browser_scroll_to_top** — Scroll to the top of the page
- **browser_scroll_to_bottom** — Scroll to the bottom of the page
- **browser_scroll_to_coordinates** — Scroll to specific coordinates
- **browser_scroll_by_pixels** — Scroll by a specific number of pixels
- **browser_select_checkbox** — Select a checkbox
- **browser_unselect_checkbox** — Unselect a checkbox
- **browser_submit_form** — Submit a form
- **browser_focus_element** — Focus on a specific element
- **browser_blur_element** — Remove focus from a specific element
- **browser_screenshot** — Take a screenshot of the current page
- **browser_get_cookies** — Get all cookies
- **browser_get_cookie_by_name** — Get a cookie by name
- **browser_add_cookie_by_name** — Add a cookie to the browser
- **browser_set_cookie_object** — Set a cookie in the browser
- **browser_delete_cookie** — Delete a cookie from the browser
- **browser_delete_cookies** — Delete cookies from the browser

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## What selenium-mcp MCP server does

The selenium-mcp MCP server exposes Selenium WebDriver operations as MCP tools for AI assistants and other MCP clients. It provides browser-session control, page navigation, element discovery and interaction, cookie operations, window switching, frame switching, and page inspection. The implementation is written in TypeScript and uses Zod validation for typed tool inputs.

Supported browser automation includes Chrome, Firefox, Safari, and Edge. The documented feature set covers clicking, typing, hovering, drag and drop, file uploads, waiting for elements or page states, screenshots, JavaScript execution, and automated web workflows. The available tool table specifically documents browser, cookie, window, element, validation, and frame operations.

## How it works

An MCP client starts the package as a local process and communicates with it using the Model Context Protocol. The server translates tool calls into Selenium WebDriver actions against the active browser session. A typical workflow opens a browser, navigates to a URL, locates elements with a selector strategy and value, performs actions, and reads page state or element content.

Browser tools include `browser_open`, `browser_navigate`, history navigation, refresh, title and URL retrieval, page-source retrieval, resizing, maximizing, and closing. Element tools can find one or more elements, click, type, clear fields, upload files, read text, and retrieve attributes. Cookie tools can read, add, set, or delete cookies, while window tools switch by handle, title, index, or URL.

## Setup and configuration

The selenium-mcp MCP server can be launched without a local package installation through this command configuration:

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

For Claude Desktop, add the same `npx` command under `mcpServers`. An alternative HTTP entry points to the server hosted at Smithery.

You can install the npm package globally with `npm install -g selenium-webdriver-mcp@latest`. Smithery installation is documented for Claude Desktop with the `@pshivapr/selenium-mcp` server identifier.

## Tools and capabilities

- Open, resize, maximize, refresh, and close browser sessions.
- Navigate forward and backward and retrieve the current URL, title, or HTML source.
- Locate elements and interact with them using selectors, timeouts, text, attributes, and file paths.
- Check whether elements are displayed, enabled, or selected.
- Manage cookies and switch between browser windows or frames.
- Use the documented browser automation features for scraping, testing, screenshots, and JavaScript execution.

## Limitations and notes

Confirm those details in the repository before adopting the server for a production test environment. Browser sessions and the target site remain dependent on Selenium WebDriver behavior and the configuration supplied by the MCP client.

_Full upstream README: https://allmcps.com/mcp/selenium-mcp-2/readme_

