能力标签
appium-mcp MCP工具
🔌
MCP工具

appium-mcp MCP工具

基于 TypeScript · 让 AI 助手直接操作你的系统与工具
英文名:appium-mcp
⭐ 358 Stars 🍴 75 Forks 💻 TypeScript 📄 Apache-2.0 🏷 AI 8.2分
8.2AI 综合评分
移动测试自动化iOSAndroidAppium
✦ AI Skill Hub 推荐

AI Skill Hub 强烈推荐:appium-mcp MCP工具 是一款优质的MCP工具。AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。

📚 深度解析

appium-mcp MCP工具 是一款基于 MCP(Model Context Protocol)标准协议的 AI 工具扩展。MCP 协议由 Anthropic 开发并开源,旨在建立 AI 模型与外部工具之间的标准化通信接口,目前已被 Claude Desktop、Claude Code、Cursor 等主流 AI 工具采纳。

通过安装 appium-mcp MCP工具,你的 AI 助手将获得额外的工具调用能力,可以用自然语言直接操控该工具的功能,无需学习复杂的命令行语法。MCP 工具的核心价值在于"一次配置,永久增强"——配置完成后,每次与 AI 对话时都可以无缝调用这些工具。

在技术实现上,MCP 工具通过标准的 JSON-RPC 协议与 AI 客户端通信,工具的功能以"工具列表"的形式暴露给 AI 模型,AI 可以按需调用。appium-mcp MCP工具 提供了结构化的工具调用接口,使 AI 模型能够精确地理解和使用每个功能点,显著降低 AI 在工具使用上的错误率。

与传统的 API 集成相比,MCP 工具的优势在于无需编写代码——用户只需在配置文件中添加几行 JSON,即可让 AI 获得全新能力。AI Skill Hub 将 appium-mcp MCP工具 评为 AI 评分 8.2 分,属于同类工具中的优质选择。

📋 工具概览

基于Appium框架的MCP工具,支持iOS和Android移动应用自动化测试。提供强大的移动设备交互能力,适合移动应用开发者、测试工程师及AI Agent集成者使用,具有高度的扩展性和灵活性。

appium-mcp MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

GitHub Stars
⭐ 358
开发语言
TypeScript
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
Apache-2.0
AI 综合评分
8.2 分
工具类型
MCP工具
Forks
75

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

基于Appium框架的MCP工具,支持iOS和Android移动应用自动化测试。提供强大的移动设备交互能力,适合移动应用开发者、测试工程师及AI Agent集成者使用,具有高度的扩展性和灵活性。

appium-mcp MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

📌 核心特色
  • 通过标准 MCP 协议与 Claude、Cursor 等主流 AI 客户端深度集成
  • 提供结构化工具调用接口,显著降低 AI 集成复杂度
  • 支持 Claude Desktop 和 Claude Code 无缝接入,开箱即用
  • 可与其他 MCP 工具组合叠加,构建完整 AI 工作站
  • 轻量无侵入设计,不影响现有系统架构
🎯 主要使用场景
  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/appium/appium-mcp

# 方式二:手动配置 claude_desktop_config.json
{
  "mcpServers": {
    "appium-mcp-mcp--": {
      "command": "npx",
      "args": ["-y", "appium-mcp"]
    }
  }
}

# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
📋 安装步骤说明
  1. 确认已安装 Node.js(v18 或以上版本)
  2. 打开 Claude Desktop 或 Claude Code 的 MCP 配置文件
  3. 按「交给 Agent 安装 → Claude Desktop」标签中的 JSON 配置填入 mcpServers 字段
  4. 保存配置文件并重启 Claude 客户端
  5. 重启后,在对话中即可使用本工具
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 安装后在 Claude 对话中直接使用
# 示例:
用户: 请帮我用 appium-mcp MCP工具 执行以下任务...
Claude: [自动调用 appium-mcp MCP工具 MCP 工具处理请求]

# 查看可用工具列表
# 在 Claude 中输入:"列出所有可用的 MCP 工具"
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
// claude_desktop_config.json 配置示例
{
  "mcpServers": {
    "appium-mcp_mcp__": {
      "command": "npx",
      "args": ["-y", "appium-mcp"],
      "env": {
        // "API_KEY": "your-api-key-here"
      }
    }
  }
}

// 保存后重启 Claude Desktop 生效
📑 README 深度解析 真实文档 完整度 75/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

MCP Appium - MCP server for Mobile Development and Automation | iOS, Android, Simulator, Emulator, and Real Devices

npm version

License

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.

🚀 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.).

Capabilities

Create a capabilities.json file to define your device capabilities:

{
  "android": {
    "appium:app": "/path/to/your/android/app.apk",
    "appium:deviceName": "Android Device",
    "appium:platformVersion": "11.0",
    "appium:automationName": "UiAutomator2",
    "appium:udid": "your-device-udid"
  },
  "ios": {
    "appium:app": "/path/to/your/ios/app.ipa",
    "appium:deviceName": "iPhone 15 Pro",
    "appium:platformVersion": "17.0",
    "appium:automationName": "XCUITest",
    "appium:udid": "your-device-udid"
  },
  "general": {
    "platformName": "mac",
    "appium:automationName": "mac2",
    "appium:bundleId": "com.apple.Safari"
  }
}

Set the CAPABILITIES_CONFIG environment variable to point to your configuration file.

Platform names and "general" mode

  • You can pass any platform name to appium_session_management (action=create).
  • If the platform is ios or android, the server builds capabilities for that platform (including selected device info when local).
  • If the platform is any other value, it is treated internally as general:
  • The session will use the provided capabilities exactly as given, or
  • If CAPABILITIES_CONFIG is set, it will merge with the general section from your capabilities file.
  • This allows custom setups and non-standard platforms to work without changing server logic.

📋 Prerequisites

Before you begin, ensure you have the following installed:

System Requirements

  • Node.js (v22 or higher)
  • 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_management creates an android or ios session without remoteServerUrl, MCP Appium uses the bundled appium-uiautomator2-driver or appium-xcuitest-driver dependency directly. You still need the platform toolchains below, but you do not need to install a global Appium server or run appium driver install uiautomator2 / appium driver install xcuitest for this mode.
  • Remote WebDriver/Appium server: when remoteServerUrl is provided to action=create or action=attach, MCP Appium uses the webdriver client to talk to that existing server. In this mode the remote server is responsible for its installed drivers, plugins, device access, and capability handling. Use this mode for platform=general; embedded local creation is available only for Android and iOS.

Mobile Testing Setup for embedded local drivers

Android

  1. Install Android Studio and the Android SDK.
  2. Set the ANDROID_HOME environment variable.
  3. Add the Android SDK tools to your system's PATH.
  4. Enable USB debugging on your Android device.
  5. Install the Android platform tools/build tools and keep adb available on PATH.

iOS (macOS only)

  1. Install Xcode from the App Store.
  2. Install the Xcode Command Line Tools: xcode-select --install.
  3. Install iOS simulators through Xcode.
  4. For real device testing, enable Developer Mode on the device and sign in to your Apple ID in Xcode (Settings → Accounts). Use appium_prepare_ios_real_device to download and sign WebDriverAgent in a single call - it will guide you through provisioning profile selection and return capabilities for session startup.

🛠️ Installation

Standard config works in most of the tools::

{
  "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"
      }
    }
  }
}

Platform & Device Setup

ToolDescription
select_device**REQUIRED FIRST**: Discover available devices and select one. Auto-selects if only one device found
prepare_ios_simulatorBoot an iOS/tvOS simulator, download WDA (if not cached), and install/launch WDA in a single call. Each step is skipped if already satisfied (iOS/tvOS only). Set APPIUM_MCP_WDA_APP_PATH to skip all downloads and use a local .app bundle instead.
appium_prepare_ios_real_devicePrepare a real iOS device for Appium testing. **Two-step flow**: (1) call without provisioningProfileUuid to list available .mobileprovision profiles; (2) call again with the chosen UUID and isFreeAccount to download the matching WDA release, package it as an IPA, and resign with the profile. Results are cached per WDA version and profile, so repeat runs are fast. Pass the returned capabilitiesHint to create_session so Appium installs and launches WDA. macOS + Xcode 16+ required.

Screenshots

Set the SCREENSHOTS_DIR environment variable to specify where screenshots are saved. If not set, screenshots are saved to the current working directory. Supports both absolute and relative paths (relative paths are resolved from the current working directory). The directory is created automatically if it doesn't exist.

⚙️ Configuration

Environment Variables

Note: For embedded local Android/iOS sessions, MCP Appium already includes the UiAutomator2 and XCUITest driver packages. The system-level requirements are the platform toolchains (ANDROID_HOME, Java, Android SDK tools, Xcode/iOS signing or simulator setup). For remote sessions, configure those requirements on the remote Appium/WebDriver server instead.
VariableRequiredDescription
CAPABILITIES_CONFIGOptionalAbsolute path to a capabilities.json file with per-platform capability presets
SCREENSHOTS_DIROptionalDirectory where screenshots and screen recordings are saved. Defaults to the current working directory
NO_UIOptionalSet to true or 1 to disable HTML UI components — faster responses, fewer tokens. See [NO_UI Mode](#no_ui-mode)
APPIUM_MCP_ON_CLIENT_DISCONNECTOptionalSession cleanup when the MCP client disconnects: delete_all (default) deletes **MCP-owned** Appium sessions (safeDeleteAllSessions); skip keeps those sessions across disconnects (e.g. HTTP/stream clients that reconnect). Attached/remote sessions are not removed by this path. See [MCP disconnect behavior](#mcp-disconnect-behavior).
APPIUM_MCP_WDA_APP_PATHOptionalAbsolute path to a pre-extracted WebDriverAgentRunner-Runner.app bundle. When set, prepare_ios_simulator skips all GitHub downloads and uses this bundle directly — useful in environments where external downloads are blocked
REMOTE_SERVER_URL_ALLOW_REGEXOptionalRegex pattern that remote Appium server URLs must match. Defaults to ^https?://
AI_VISION_ENABLEDOptionalSet to true to register the appium_ai tool (vision-based element finding). When unset or false, the AI tool is **not registered** and the LLM has no way to invoke vision-based finding. Requires AI_VISION_API_BASE_URL and AI_VISION_API_KEY to also be set, otherwise the server fails to start.
AI_VISION_API_BASE_URLRequired when AI_VISION_ENABLED=trueBase URL of the OpenAI-compatible vision model API
AI_VISION_API_KEYRequired when AI_VISION_ENABLED=trueAPI key for the vision model provider
AI_VISION_MODELOptionalVision model name (default: Qwen3-VL-235B-A22B-Instruct)
AI_VISION_COORD_TYPEOptionalCoordinate type: normalized (default) or absolute
AI_VISION_IMAGE_MAX_WIDTHOptionalMax image width in pixels before compression (default: 1080)
AI_VISION_IMAGE_QUALITYOptionalJPEG quality 1–100 for compressed screenshots sent to the vision API (default: 80)
APPIUM_MCP_DOCS_ENABLEDOptionalSet to true (or 1/yes/on) to register the documentation tools (appium_documentation_query, appium_skills). **Opt-in and disabled by default.** Requires the optional @appium/mcp-documentation package (embeddings cache + ML stack) to be installed separately; when unset it is **never downloaded**. See [Documentation Tools (opt-in)](#documentation-tools-opt-in).
SENTENCE_TRANSFORMERS_MODELOptionalHugging Face model used for semantic search in Appium documentation queries (default: Xenova/all-MiniLM-L6-v2). Only applies when APPIUM_MCP_DOCS_ENABLED is set.
APPIUM_MCP_PERSIST_REMOTE_SESSIONS_PATHOptionalDirectory path for persisted attached remote session info. When set, attached remote sessions are stored as JSON files in that directory and can be rehydrated after restart.
APPIUM_MCP_EVIDENCEOptionalSet to true or 1 to attach a structured **action evidence record** (locator, resolved element id, context, timing, normalized error code) to appium_find_element and appium_gesture responses as an application/vnd.appium.evidence+json resource block, for CI/debugging. Disabled by default; responses are unchanged when unset.
APPIUM_MCP_OTEL_ENABLEDOptionalSet to true to enable OpenTelemetry tracing (disabled by default).
APPIUM_MCP_OTEL_INCLUDE_ARGUMENT_VALUESOptionalSet to true to include sanitized non-sensitive argument values in spans; disabled by default because values may contain sensitive data.
OTEL_SERVICE_NAMEOptionalService name reported to the OpenTelemetry collector (example: appium-mcp).
OTEL_EXPORTER_OTLP_TRACES_ENDPOINTOptionalOTLP/HTTP traces endpoint (example: http://127.0.0.1:4318/v1/traces).
OTEL_TRACES_SAMPLEROptionalTrace sampling strategy; parentbased_always_on samples new root traces and follows parent decisions.
OTEL_RESOURCE_ATTRIBUTESOptionalComma-separated key=value pairs attached as resource attributes to every span (example: testcase.id=my-test-123,team=platform).

Optional: include sanitized non-sensitive argument values in spans.

Optional: attach custom key=value pairs to every span (e.g. test case ID, team name).

🔌 Plugin API

Use appium-mcp/core to compose the default Appium MCP server with custom business logic without maintaining a fork. Plugins can register MCP tools, prompts, resources, and resource templates, and can wrap tool execution with lifecycle hooks. Call hooks are tool-only: prompts, resources, and resource templates are registered with FastMCP but are not wrapped by beforeCall or afterCall.

createAppiumMcpServer({ policy }) can also hide nonmatching tools and resources from MCP discovery. The factory is async, so await it before starting the returned server. Policy rules are regular expressions matched against tool and resource names exactly as registered. The policy is applied at registration time to both single and batch registration methods. Resource policy matches the resource name only; resources or resource templates without a string name cannot match a non-empty allowResources list.

import { createAppiumMcpServer } from 'appium-mcp/core';
import type {
  AppiumMcpPlugin,
  McpRegistry,
  ToolCallContext,
} from 'appium-mcp/core';
import { z } from 'zod';

class CheckoutPlugin implements AppiumMcpPlugin {
  readonly name = 'checkout-plugin';
  readonly version = '1.0.0';

  register(registry: McpRegistry): void {
    const parameters = z.object({ orderId: z.string() });
    registry.addTool({
      name: 'assert_checkout_summary',
      description:
        'Assert that the checkout summary screen shows an expected order ID.',
      parameters,
      execute: async (args) => {
        const { orderId } = parameters.parse(args);
        return {
          content: [
            { type: 'text', text: `Assert checkout order ${orderId}` },
          ],
        };
      },
    });
  }

  async beforeCall(ctx: ToolCallContext): Promise<void> {
    if (ctx.toolName === 'appium_gesture') {
      console.error(`[checkout-plugin] about to call ${ctx.toolName}`);
    }
  }
}

const server = await createAppiumMcpServer({
  plugins: [new CheckoutPlugin()],
  additionalInstructions: 'Custom checkout policies are active.',
  policy: {
    allowTools: [/^appium_session_management$/, /^assert_checkout_summary$/],
    allowResources: [/^Generate Code With Locators$/],
  },
});

await server.start({ transportType: 'stdio' });

Plugin lifecycle:

  • register(registry, core): called during server construction. Register custom tools, prompts, resources, and resource templates here.
  • initialize(ctx): called lazily on the first MCP client connection. Use it for async setup such as artifact storage or internal service clients.
  • beforeCall(ctx): called before a registered MCP tool executes. Return a ToolCallResult to short-circuit the tool. This hook only applies to tools, not prompts, resources, or resource templates.
  • afterCall(ctx, result): called after a registered MCP tool executes. Return a modified ToolCallResult to decorate or replace the response. This hook only applies to tools, not prompts, resources, or resource templates.
  • destroy(): called after the last MCP client disconnects.

Safe plugin surface

The supported plugin API is intentionally small:

SurfaceSafe methods
McpRegistry[addTool](https://github.com/punkpeye/fastmcp#tools), [addTools](https://github.com/punkpeye/fastmcp#tools), [addPrompt](https://github.com/punkpeye/fastmcp#prompts), [addPrompts](https://github.com/punkpeye/fastmcp#prompts), [addResource](https://github.com/punkpeye/fastmcp#resources), [addResources](https://github.com/punkpeye/fastmcp#resources), [addResourceTemplate](https://github.com/punkpeye/fastmcp#resource-templates), [addResourceTemplates](https://github.com/punkpeye/fastmcp#resource-templates)
AppiumMcpCoregetSessionId(), getSessionInfo(sessionId?), getDriver(sessionId?), listSessions()
ToolCallContext.sessiongetSessionId(), getSessionInfo(sessionId?), getDriver(sessionId?), listSessions()
PluginContextcore, plugins

McpRegistry methods delegate to the matching FastMCP registration APIs, so their object shapes follow FastMCP's documented tool, prompt, resource, and resource-template definitions. Appium MCP wraps registered tools with plugin call hooks, but prompts and resources are registered directly with FastMCP.

Each plugin name should be unique within the server. If two plugins use the same name, Appium MCP keeps the first plugin registered for that name and skips later plugins with a warning. Use a stable, package-style or organization-prefixed name, such as acme-checkout-plugin, to avoid collisions when composing plugins from multiple teams.

Each tool name should also be unique across all plugins and the core server. Tool names follow FastMCP behavior, not plugin-name behavior: when a tool is registered with the same name as an existing tool, FastMCP replaces the earlier tool definition with the later one. Appium MCP registers built-in tools before plugin tools, which means a plugin tool that uses the same name as a built-in tool replaces the built-in tool. Appium MCP tools usually have an appium_ prefix, so plugin tool names should use that pattern only when they intentionally override a core tool.

Verify plugin and tool names

Use verifyAppiumMcpNames before publishing or deploying a custom plugin setup. It registers your plugin capabilities into a lightweight collector, registers the Appium MCP core tools, and reports duplicate plugin names, duplicate tool names, and registration errors without starting the MCP server.

The recommended approach is to verify the same plugin array you pass to createAppiumMcpServer({ plugins }). This preserves your real plugin instances and order:

import {
  formatVerificationReport,
  verifyAppiumMcpNames,
} from 'appium-mcp/core';
import { plugins } from './plugins.js';

const report = verifyAppiumMcpNames({ plugins });

console.log(formatVerificationReport(report));
process.exit(report.ok ? 0 : 1);

When you provide multiple plugins, order is preserved. Plugins are verified in array order after the appium-mcp core tools. This matters because Appium MCP keeps the first plugin for a duplicate plugin name and skips later plugins with the same name, while duplicate tool names follow FastMCP's later-registration-wins behavior. Tool names still need to be unique across all loaded plugins and appium-mcp core; the verifier reports any collisions it finds.

The report labels this package's own shipped tools as appium-mcp core. Plugin sources are labeled as plugin:<name> with the plugin version.

Treat anything outside appium-mcp/core as internal. In particular, plugins should not rely on private server internals, internal session-store modules, tool implementation files, or the raw FastMCP server instance. If a plugin needs another stable primitive, open an issue so it can be added to AppiumMcpCore or McpRegistry deliberately.

See examples/plugin-example.ts for a fuller cookbook with tools, prompts, resources, resource templates, call hooks, and lifecycle setup.

🇨🇳 中文文档镜像 AI 翻译 2026-05-27
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

MCP Appium 是一个专为移动开发与自动化设计的智能 MCP (Model Context Protocol) Server。它通过为 AI 助手提供一套强大的移动端自动化工具集,将自然语言交互引入移动测试流程。无论是进行自动化测试编写,还是通过自然语言指令进行 UI 交互,该项目都能显著提升移动端应用的测试效率与智能化水平。

⚡ 功能介绍

本项目具备强大的跨平台支持能力,能够同时驱动 Android (UiAutomator2) 和 iOS (XCUITest) 的自动化测试。核心亮点在于其 AI 驱动的元素定位功能:开发者无需编写复杂的 XPath 或 Selector,即可通过视觉模型和自然语言描述精准定位 UI 元素。此外,系统还内置了基于优先级策略的智能定位器生成机制,并支持交互式的 Session 管理,让移动自动化变得更加智能与高效。

📋 环境依赖

在开始使用之前,请确保您的系统已安装以下必要环境:Node.js (版本 v22 或更高) 以及 npm 或 yarn 包管理器。进行 Android 测试需要安装 Java Development Kit (JDK 8 或更高版本) 及 Android SDK;若需进行 iOS 测试,则必须在 macOS 环境下安装 Xcode。请务必提前配置好相关的开发环境以确保 MCP Server 能够正常调用底层驱动。

🛠 安装步骤(Docker/pip/源码)

安装过程分为移动端环境准备与 MCP 配置两个阶段。首先,针对 Android 需安装 Android Studio、配置 ANDROID_HOME 环境变量并启用 USB 调试;针对 iOS 则需安装 Xcode 及 Command Line Tools。环境就绪后,通过在 MCP 客户端(如 Claude Desktop)的配置文件中添加 appium-mcp 的标准配置,并指定正确的 ANDROID_HOME 和 CAPABILITIES_CONFIG 路径,即可通过 npx 命令快速启动服务。

🚀 使用教程

本项目支持多种定位策略。在传统模式下,系统会按照优先级顺序尝试使用 accessibility id、id、平台原生谓词(如 iOS 的 predicate string 或 Android 的 uiautomator)进行定位,仅在必要时使用 xpath。对于更高级的场景,您可以直接利用 AI 驱动的元素查找功能,通过自然语言描述来操作 UI,极大地降低了编写自动化脚本的门槛。

⚙️ 配置说明(含 MCP / env)

用户可以通过创建 `capabilities.json` 文件来定义设备的详细参数(如 app 路径、deviceName、platformVersion 及 udid 等),从而实现对 Android 和 iOS 设备的精准控制。此外,系统支持通过环境变量进行配置,请注意,底层的 Appium 驱动要求(如 JAVA_HOME、UiAutomator2/XCUITest 设置)属于系统级要求,建议在配置完成后,利用内置的 `appium_skills` 工具让 AI 助手协助检查环境。

🔌 API 说明

开发者可以通过 `appium-mcp/core` 提供的插件 API 来扩展功能,而无需维护整个项目的 Fork 版本。该 API 允许插件注册自定义的 MCP tools、prompts、resources 以及资源模板,并支持通过生命周期钩子(lifecycle hooks)对工具执行过程进行封装。这为将 Appium 的能力与特定的业务逻辑相结合提供了极大的灵活性。

🔄 工作流/模块

为了确保插件开发的安全性与稳定性,项目提供了一个精简且安全的插件 API 表面。在发布或部署自定义插件之前,强��建议使用 `verifyAppiumMcpNames` 工具进行校验。该工具可以在不启动 MCP Server 的情况下,通过轻量级收集器检查是否存在插件名称冲突、工具名称重复或注册错误,从而确保自动化工作流的可靠性。

🎯 aiskill88 AI 点评 A 级 2026-05-20

活跃的开源MCP工具,将Appium强大的移动测试能力与AI Agent结合,358星说明社区认可度高,TypeScript实现保证代码质量。

📚 实用指南(长尾问题)
适合谁
  • 使用 Cursor 编辑器、希望提升 AI 编程效率的开发者
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建企业知识库 / RAG 检索应用的团队
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
  • Cursor rules 控制在 80 行内,否则模型上下文成本会显著上升
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • embedding 模型与查询模型不一致导致检索失效
部署方案
  • CLI:直接 npm install -g / pip install,命令行调用
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
appium-mcp 中文教程appium-mcp 安装报错怎么办appium-mcp MCP 配置appium-mcp 与同类工具对比appium-mcp 最佳实践appium-mcp 适合谁用

⚡ 核心功能

👥 适合谁
  • 使用 Cursor 编辑器、希望提升 AI 编程效率的开发者
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建企业知识库 / RAG 检索应用的团队
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
  • Cursor rules 控制在 80 行内,否则模型上下文成本会显著上升
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • embedding 模型与查询模型不一致导致检索失效

👥 适合人群

Claude Desktop / Claude Code 用户AI 工具开发者需要扩展 AI 能力的专业人士自动化工程师

🎯 使用场景

  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站

⚖️ 优点与不足

✅ 优点
  • +Apache-2.0 协议,可免费商用
  • +标准化 MCP 协议,生态互联性强
  • +与 Claude 官方生态无缝对接
  • +即插即用,配置简单快捷
⚠️ 不足
  • 依赖 Claude 客户端,非 Claude 用户无法使用
  • MCP 协议仍在持续演进,接口可能变更
  • 需要一定的配置步骤
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。

🔗 相关工具推荐

📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

支持iOS和Android平台的应用自动化操作
💡 AI Skill Hub 点评

总体来看,appium-mcp MCP工具 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ Apache-2.0 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 appium-mcp MCP工具
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 appium-mcp
原始描述 开源MCP工具:Appium MCP on Steroids!。⭐358 · TypeScript
Topics 移动测试自动化iOSAndroidAppium
GitHub https://github.com/appium/appium-mcp
License Apache-2.0
语言 TypeScript
🔗 原始来源
🐙 GitHub 仓库  https://github.com/appium/appium-mcp

收录时间:2026-05-19 · 更新时间:2026-05-19 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →