Purpose: This is a Model Context Protocol (MCP) server, based on WebdriverIO, that enables AI assistants to control web browsers, local Electron applications, and iOS/Android mobile applications, automating Chrome, Firefox, Edge, Safari, Electron, iOS, and Android through a unified interface.
Main capabilities: For browsers, it supports session start and close, navigation and element interaction, page analysis (visible elements, accessibility tree, screenshots), cookie management, scrolling, attaching to a running Chrome (--remote-debugging-port), connecting to an existing WebDriver endpoint, mobile/tablet device emulation, and session recording (exportable as a WebdriverIO JS script). For mobile, it supports testing iOS (.app/.ipa) and Android (.apk) via Appium, including tap, swipe, long press, and drag gestures, app lifecycle control, native and webview context switching, device control (rotation, lock, geolocation, keyboard, notifications), and cross-platform selectors. It also supports Electron applications (requires Node.js 22.19+) and network/Electron emulation (mock).
Usage: In the MCP client configuration, fill in the launch command (default stdio, or enable HTTP transport pointing to http://localhost:3000/mcp)。移动端需先全局安装 Appium (npm install -g appium), install the xcuitest driver for iOS (requires Xcode on macOS), install the uiautomator2 driver for Android (requires Android Studio), and start the Appium server. Cloud support includes BrowserStack, Sauce Labs, LambdaTest, TestingBot, and Digital.ai Testing, with credentials configured via environment variables. The recommended workflow is to first call snapshot, then use the returned ref to perform operations; multiple consecutive steps can be completed in one call to perform_actions. Common tools by default list only the parts matching the current session; the rest can be enabled with enable_tools, or set WDIO_MCP_TOOLS=all to display all.
Limitations: Electron support is local only; iOS real devices require a UDID; browser mocks require enabling BiDi sessions (capabilities: { webSocketUrl: true }), and attached sessions are unavailable when BiDi is disabled by default; iOS/Android Appium sessions do not support mocking; on Digital.ai, the default BiDi protocol will be reported as Passed, and actual failures can only be reflected by selecting classic WebDriver per session. After changing the configuration, the MCP client must be fully restarted. Other details are not provided for now.