
阿皮姆MCP服用类固醇!
概览
MCP Appium 是一款智能 MCP(模型上下文协议)服务器,旨在为 AI 助手提供强大的移动自动化工具套件。它通过支持自然语言交互、智能定位生成器生成和自动测试创建,优化了移动应用测试,适用于 Android 和 iOS 平台。 - : 自动化Android(UiAutomator2)和iOS(XCUITest)测试。- : 利用自然语言描述,基于视觉模型定位UI元素,无需复杂的XPath或选择器。- : 基于优先级的AI元素识别策略。- : 轻松创建和管理本地移动设备会话。- : 执行点击、文本输入、截图和元素查找等操作。- : 从自然语言描述生成Java/TestNG测试代码。- : 利用符合行业最佳实践的内置模板。- : 为不同环境定制功能和设置。
概述(AI 翻译)
MCP Appium 是一款智能 MCP(模型上下文协议)服务器,旨在为 AI 助手提供强大的移动自动化工具套件。它通过支持自然语言交互、智能定位生成器生成和自动测试创建,优化了移动应用测试,适用于 Android 和 iOS 平台。
目录
- 特色
- 先决条件
- 安装
- 配置
- 远程服务器安全与信任模型
- 可用工具
- 插件 API
- 客户支持
- 使用示例
- 贡献
- 许可证
🚀 特色
- 跨平台支持:自动化Android(UiAutomator2)和iOS(XCUITest)测试。
- AI驱动元素查找:利用视觉模型驱动的自然语言描述定位UI元素——无需复杂的XPath或选择器。
- 智能定位生成器:基于优先级的AI元素识别策略。
- 交互式会话管理:在本地移动设备上轻松创建和管理会话。
- 智能元素交互:执行点击、文本输入、截图和元素查找等操作。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP Appium - MCP server for Mobile Development and Automation | iOS, Android, Simulator, Emulator, and Real Devices
MCP Appium is an intelligent MCP (Model Context Protocol) server designed to empower AI assistants with a robust suite of tools for mobile automation. It streamlines mobile app testing by enabling natural language interactions, intelligent locator generation, and automated test creation for both Android and iOS platforms.
Table of Contents
- Features
- Prerequisites
- Installation
- Configuration
- Remote server security and trust model
- Available Tools
- Plugin API
- Client Support
- Usage Examples
- Contributing
- License
🚀 Features
- Cross-Platform Support: Automate tests for both Android (UiAutomator2) and iOS (XCUITest).
- AI-Powered Element Finding: Locate UI elements using natural language descriptions powered by vision models - no need for complex XPath or selectors.
- Intelligent Locator Generation: AI-powered element identification using priority-based strategies.
- Interactive Session Management: Easily create and manage sessions on local mobile devices.
- Smart Element Interactions: Perform actions like clicks, text input, screenshots, and element finding.
- Automated Test Generation: Generate Java/TestNG test code from natural language descriptions.
- Page Object Model Support: Utilize built-in templates that follow industry best practices.
- Flexible Configuration: Customize capabilities and settings for different environments.
- Multilingual Support: Use your native language - AI handles all interactions naturally in any language (English, Spanish, Chinese, Japanese, Korean, etc.).
📋 Prerequisites
Before you begin, ensure you have the following installed:
System Requirements
- Node.js (22.x from 22.23.4, 24.x from 24.22.1, or 26.12.1 and newer)
- npm or yarn
- Java Development Kit (JDK) (8 or higher)
- Android SDK (for Android testing)
- Xcode (for iOS testing on macOS)
MCP Appium supports two driver modes:
- Embedded local drivers: when
appium_session_managementcreates anandroidoriossession withoutremoteServerUrl, MCP Appium uses the bundledappium-uiautomator2-driverorappium-xcuitest-driverdependency directly. You still need the platform toolchains below, but you do not need to install a global Appium server or runappium driver install uiautomator2/appium driver install xcuitestfor this mode.
安装
npx appium-mcp@latest配置
{
"mcpServers": {
"appium-mcp": {
"disabled": false,
"timeout": 100,
"type": "stdio",
"command": "npx",
"args": ["appium-mcp@latest"],
"env": {
"ANDROID_HOME": "/path/to/android/sdk",
"CAPABILITIES_CONFIG": "/path/to/your/capabilities.json"
}
}
}
}