# Selenide

> Selenide is an open-source MCP server for browser automation. MCP server giving AI agents browser automation with smart waits for UI tests. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted
- **Website:** https://selenide.org
- **Repository:** https://github.com/selenide/selenide/tree/HEAD/mcp-server
- **MCP Registry name:** org.selenide/mcp
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation)
- **Listing updated:** 2026-11-27

## About

Selenide's MCP server lets AI assistants drive a real browser as part of testing workflows, building on the Selenium WebDriver stack that the wider Selenide Java framework is known for. Instead of forcing an agent to juggle raw WebDriver calls and timing issues, the server packages browser control behind the same waiting logic that Selenide uses for AJAX-heavy pages.

It is installed by adding a short entry to a project's .mcp.json file that launches the npm package through npx, so it can be wired into any MCP-capable client without a separate build step. The companion Selenide CLI can also install agent skills into a project.

The server suits Java and JavaScript teams who already write or maintain browser-based UI tests and want an assistant to help author, run or debug them. It is open source under the MIT license.

## Features

- **Smart waits for AJAX:** Browser actions wait for dynamic page elements to settle, reducing flaky timing failures.
- **Installs via npx:** Runs as a stdio server launched with a single .mcp.json entry.
- **Selenium WebDriver based:** Built on Selenium WebDriver 4 and compatible with its ecosystem.
- **Concise test API:** Uses Selenide's fluent, readable syntax for locating elements and asserting state.
- **Optional CLI skills:** A companion CLI can install agent skills into a project.

## Good for

- Letting an AI assistant write browser UI tests for a web app
- Debugging failing UI tests with an agent that can drive the browser
- Automating login and navigation flows inside a test suite
- Adding agent-driven browser checks to an existing Selenide project

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp -- npx -y @selenide/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@selenide/mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@selenide/mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@selenide/mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@selenide/mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp -- npx -y @selenide/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@selenide/mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@selenide/mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mcp npx -- -y @selenide/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@selenide/mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@selenide/mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@selenide/mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@selenide/mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@selenide/mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@selenide/mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@selenide/mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@selenide/mcp"
      ]
    }
  }
}
```

## FAQ

### How do I install the Selenide MCP server?

Create a .mcp.json file in your project with a selenide entry that runs npx against @selenide/mcp at the pinned version.

### What license is Selenide under?

Selenide is distributed under the MIT license.

### What is the underlying browser technology?

Selenide is built on and compatible with Selenium WebDriver 4.0 and later.

### Is Selenide free?

Yes. Selenide is open source, so you can use and self-host it for free.

### How do I add Selenide to Claude Code?

Run this command in your terminal: claude mcp add mcp -- npx -y @selenide/mcp

### What are the best alternatives to Selenide?

The closest alternatives to Selenide are Selenium MCP, Selenium Webdriver MCP, Selenium MCP, Selenium AI Agent and Selenix MCP Server.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Selenium MCP](https://ai-powered.com/mcp/selenium-mcp): Selenium MCP is an open-source MCP server for browser automation.
- [Selenium Webdriver MCP](https://ai-powered.com/mcp/selenium-webdriver-mcp): Selenium Webdriver MCP is an open-source MCP server for browser automation.
- [Selenium MCP](https://ai-powered.com/mcp/selenium-mcp-2): Selenium MCP is an open-source MCP server for browser automation.
- [Selenium AI Agent](https://ai-powered.com/mcp/selenium-ai-agent): Selenium AI Agent is an open-source MCP server for browser automation.
- [Selenix MCP Server](https://ai-powered.com/mcp/selenix-mcp-server): Selenix MCP Server is an MCP server for browser automation.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [webdriverio](https://ai-powered.com/mcp/webdriverio): webdriverio is an open-source MCP server for browser automation.
- [Firefox MCP](https://ai-powered.com/mcp/firefox-mcp): Firefox MCP is an open-source MCP server for browser automation.

---
Source: https://ai-powered.com/mcp/selenide
