# webdriverio

> webdriverio is an open-source MCP server for browser automation. Let AI assistants drive browsers, Electron apps and mobile apps through WebdriverIO. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux
- **Repository:** https://github.com/webdriverio/mcp
- **MCP Registry name:** io.github.webdriverio/mcp
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

One server covers Chrome, Firefox, Edge, Safari, Electron, iOS and Android, so an assistant can use the same interface whether it is checking a web page or a native app. Mobile automation goes through Appium, which you install and start yourself with the XCUITest or UiAutomator2 driver for iOS or Android.

By default it runs over stdio, launched with npx @wdio/mcp. For clients that cannot start subprocesses, an HTTP mode runs on port 3000 by default with host checks for DNS rebinding protection and an allowed-origins flag for browser clients. Setup snippets are given for Claude Desktop, Claude Code, Cline, Cursor, Codex, Goose, Windsurf, Zed and VS Code.

Tests can also run on cloud devices and browsers at BrowserStack, Sauce Labs, LambdaTest, TestingBot and Digital.ai Testing, with credentials supplied as environment variables. For Sauce Labs the data centre is chosen per session through the region parameter of start_session.

## Features

- **Web and mobile in one:** Automate Chrome, Firefox, Edge, Safari, Electron, iOS and Android.
- **Appium for mobile:** iOS and Android sessions run through a local Appium server.
- **Cloud device providers:** Supports BrowserStack, Sauce Labs, LambdaTest, TestingBot and Digital.ai Testing.
- **Stdio or HTTP:** Runs as a subprocess by default, or over HTTP on a configurable port.
- **Wide client support:** Config examples for Claude, Cursor, Codex, Goose, Windsurf, Zed and VS Code.
- **DNS rebinding protection:** HTTP mode restricts allowed hosts and origins.

## Good for

- Have an assistant click through a web flow and report what breaks
- Automate a test on an iOS simulator
- Run a mobile check on a cloud real device
- Drive an Electron app from chat

## Install

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

```sh
claude mcp add mcp -- npx -y @wdio/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",
        "@wdio/mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

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

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

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@wdio/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",
        "@wdio/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 @wdio/mcp
```

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

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

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

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

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

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@wdio/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",
        "@wdio/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",
        "@wdio/mcp"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@wdio/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",
        "@wdio/mcp"
      ]
    }
  }
}
```

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

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

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

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@wdio/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",
        "@wdio/mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 1 tool changes data. From the server's own tool labels and tool names; not verified by us.

- `start_session` (name suggests: changes): Starts an automation session; accepts a region parameter for Sauce Labs.

## FAQ

### How do I install webdriverio?

Add npx -y @wdio/mcp@latest as a command in your client's MCP config, then restart the client.

### What do I need for mobile testing?

An Appium server, the XCUITest or UiAutomator2 driver, and a simulator, emulator or device.

### Can webdriverio run over HTTP?

Yes, with npx @wdio/mcp --http --port 3000, then point the client at http://localhost:3000/mcp.

### Which cloud providers work?

BrowserStack, Sauce Labs, LambdaTest, TestingBot and Digital.ai Testing.

### Is webdriverio free?

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

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

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

### What are the best alternatives to webdriverio?

The closest alternatives to webdriverio are REA, Browser Use, Scrapling MCP Server, Context7 and Chrome DevTools MCP.

## Where this comes from

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

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Browser Use](https://ai-powered.com/mcp/browser-use): Browser Use is a freemium MCP server for browser automation.
- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): Scrapling MCP Server is an open-source MCP server for web search and scraping.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.

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