MCP Appium Server
@Rahulec08
AI-powered mobile automation with Model Context Protocol (MCP) integration. Seamlessly control Android & iOS devices through Appium with intelligent visual element detection and recovery. Built for AI agents like Claude to perform complex mobile testing workflows.
Overview
What is MCP Appium Server?
MCP Appium Server is an AI-powered mobile automation platform that integrates Model Context Protocol (MCP) to control Android and iOS devices via Appium. It features intelligent visual element detection and recovery for use with AI agents in testing workflows.
How to use MCP Appium Server?
Install Node.js v14+, JDK, Android SDK (for Android), Xcode (macOS, for iOS), and the Appium server. Clone the repository, run npm install, then npm run build. Set up environment variables (JAVA_HOME, ANDROID_HOME, etc.) in your shell profile. Start Appium server with appium, then start the MCP server with npm run dev. Configure test capabilities in examples/appium-test.ts and run tests with npm test.
Key features of MCP Appium Server
- Appium integration for Android and iOS device control
- AI-based visual element detection and recovery
- MCP support for agent-driven automation workflows
- W3C Actions API for standard touch gestures
- Xcode Command Line Tools for iOS simulator management
- Context switching, file operations, and custom gestures
Use cases of MCP Appium Server
- Automate mobile app tests with AI-powered visual detection
- Reduce flaky tests using intelligent element recovery
- Run cross-platform test suites on Android and iOS
- Enable AI agents to perform end-to-end mobile workflows
- Manage iOS simulators (boot, shutdown, install apps) via Xcode commands
FAQ from MCP Appium Server
What are the prerequisites for using MCP Appium Server?
You need Node.js v14+, JDK, Android SDK (for Android), Xcode with command line tools (macOS, for iOS), and the Appium server installed globally.
How do I set up environment variables?
Set JAVA_HOME, ANDROID_HOME, DEVELOPER_DIR, and related PATH entries in your shell configuration file (e.g., .bash_profile or .zshrc) and source it before running the server.
Does this server support both Android and iOS testing?
Yes. It supports both platforms. Android requires an Android device/emulator and the Android SDK; iOS requires Xcode and an iOS simulator or real device (macOS only).
What types of actions can the MCP server perform?
It supports element interactions (tap, type, scroll), app management (launch, close, reset), device controls (orientation, screenshots, battery), context switching, file operations, notifications, and custom W3C gestures.
What is the W3C Actions API and how is it used?
The W3C Actions API is a modern standard for touch gestures. MCP Appium Server implements it for tap and scroll actions, with automatic fallback to WebDriverIO click() and legacy TouchAction API if needed.