Appium MCP Server
Enables automation of Android devices and emulators through Appium, including taps, text input, swipes, screenshots, UI hierarchy inspection, and Android-specific navigation such as back and home.
Provides MCP tools for controlling mobile devices through an Appium server: starting and closing sessions, tapping elements or coordinates, typing, swiping, taking screenshots, retrieving page source, and pressing device buttons.
Enables automation of iOS devices and simulators through Appium, including taps, text input, swipes, screenshots, UI hierarchy inspection, and iOS-specific locator strategies.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Appium MCP Server
An MCP (Model Context Protocol) server that lets AI assistants like Claude control mobile devices through Appium. It exposes Appium actions — tapping, typing, swiping, screenshots, and more — as MCP tools.
Prerequisites
Python 3.10+
Appium 2.x server installed and running
Android SDK (for Android testing) or Xcode (for iOS testing)
A running emulator/simulator or connected physical device
Install Appium
npm install -g appium
# Install the driver for your platform
appium driver install uiautomator2 # Android
appium driver install xcuitest # iOSRelated MCP server: phone-mcp-server
Setup
Clone the repository
git clone <your-repo-url> cd appium_mcp_serverCreate a virtual environment and install dependencies
python -m venv .venv source .venv/bin/activate # macOS/Linux # .venv\Scripts\activate # Windows pip install -r requirements.txtConfigure your device and app
Edit
config/test_config.json:{ "platform": "android", "android": { "app_package": "com.example.myapp", "app_activity": ".MainActivity", "device_name": "Android Emulator", "platform_version": "16", "app_path": "" }, "ios": { "bundle_id": "com.example.myapp", "device_name": "iPhone 15", "platform_version": "17.0", "app_path": "" }, "appium": { "url": "http://localhost:4723" } }Field
Description
platform"android"or"ios"app_package/bundle_idYour app's package name or bundle identifier
app_activityAndroid launch activity (e.g.
".MainActivity")device_nameEmulator/simulator name or physical device name
platform_versionOS version on the device
app_pathAbsolute path to
.apk/.ipafile (leave empty if the app is already installed)appium.urlAppium server URL (default
http://localhost:4723)Start the Appium server
appiumStart an emulator/simulator or connect a device
# Android — launch an AVD emulator -avd <avd_name> # iOS — open a simulator open -a Simulator
Adding to Your MCP Client
Claude Desktop
Add this to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"appium": {
"command": "/absolute/path/to/appium_mcp_server/.venv/bin/python",
"args": ["/absolute/path/to/appium_mcp_server/server.py"]
}
}
}Claude Code (CLI)
claude mcp add appium /absolute/path/to/appium_mcp_server/.venv/bin/python /absolute/path/to/appium_mcp_server/server.pyImportant: Use the absolute path to the Python binary inside
.venvso that the correct dependencies are available.
Available Tools
Tool | Description |
| Start an Appium session (call once at the beginning) |
| Close the active session and release the device |
| Capture a screenshot of the current screen |
| Get the UI hierarchy as XML (useful for finding element locators) |
| Tap an element by locator strategy and value |
| Tap at absolute screen coordinates (x, y) |
| Type text into an element |
| Clear the text content of an element |
| Swipe in a direction (up / down / left / right) |
| Press the Android back button |
| Press the home button |
| Dismiss the on-screen keyboard |
Locator Strategies
The tap, type_text, and clear_text tools accept a strategy parameter:
Strategy | Example Value |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example Prompt
Start an Appium session. Take a screenshot to see the current screen. Then get the page source to find the email and password field locators. Enter "user@example.com" as email and "mypassword" as password, tap the Login button, and take a screenshot of the result.
Project Structure
appium_mcp_server/
├── server.py # MCP server — defines all tools
├── appium_manager.py # Appium session manager (singleton)
├── config/
│ ├── __init__.py # Config loader
│ └── test_config.json # Device and app configuration
├── requirements.txt
└── README.mdLicense
MIT
https://github.com/user-attachments/assets/3f1f563f-1e60-4291-abd6-27326304840e
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Let AI agents control Android and iOS devices on Mobilerun Cloud: screen, input, apps, workflows.
Let Claude, ChatGPT and other agents use your Android phone: see the screen, tap, type, open apps.
Give your AI agent a real cloud Android phone: push APKs, drive it, get screenshots and logs.
Mobile sandboxes for AI agents: each agent gets its own cloud Android phone or iOS simulator over MCP, reads the screen, taps, types and installs your app. Android $0.01/min, iOS $0.03/min, parked phones free.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform mobile device automation testing via Appium through the Model Context Protocol, supporting Android and iOS devices with 40+ tools.42MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to control Android phones via MCP and HTTP. Supports screen capture, taps, swipes, text input, and app management.7AGPL 3.0
- AlicenseAqualityBmaintenanceEnables AI agents to automate Android and iOS devices, including emulators and physical devices, by capturing screenshots, reading UI accessibility trees, performing touch and text input, and managing app lifecycle and logs.184MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to remotely control a real Android phone over MCP with no ADB, root, or emulator, by connecting a broker server to a sideloaded APK. Exposes tools to list devices, capture screenshots, read the UI tree, open links and deep links, and perform taps, swipes, typing, and global navigation actions.1MIT