GA

gavrix/appium-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

22 stars 4 forks 품질 49 트렌드 10

MCP server for appium

개요

An Appium MCP (Model-Context-Protocol) server that exposes mobile automation capabilities for both iOS simulators and Android emulators/devices as tools for MCP clients. Enables standardized control and interaction with mobile devices. This server acts as a bridge, allowing an MCP client (like a Large Language Model or an automation script) to interact with mobile applications through Appium. The primary goal of this project is to provide a set of callable tools over the Model Context Protocol. These tools abstract Appium's functionalities for mobile application testing and automation. The server supports both iOS simulators and Android emulators/devices with automatic device detection and platform-specific optimizations. The server is designed to be run via npx for ease of use.

README

원문 README의 일부입니다. 원문 보기.

@gavrix/appium-mcp

An Appium MCP (Model-Context-Protocol) server that exposes mobile automation capabilities for both iOS simulators and Android emulators/devices as tools for MCP clients. Enables standardized control and interaction with mobile devices.

This server acts as a bridge, allowing an MCP client (like a Large Language Model or an automation script) to interact with mobile applications through Appium.

Overview

The primary goal of this project is to provide a set of callable tools over the Model Context Protocol. These tools abstract Appium’s functionalities for mobile application testing and automation.

The server supports both iOS simulators and Android emulators/devices with automatic device detection and platform-specific optimizations.

The server is designed to be run via npx for ease of use.

Installation

To use this server as a dependency in your project (though typically it’s run standalone via npx):

npm install @gavrix/appium-mcp

Or, if you use Yarn:

yarn add @gavrix/appium-mcp

Usage

The most common way to run the server is using npx:

npx @gavrix/appium-mcp

This will start the MCP server, which will then listen for incoming connections from an MCP client (e.g., via stdio).

For MCP Client Configuration

If you are configuring an MCP client (like Cursor) to use this server, you would typically set the command as follows (assuming the package is installed globally or npx is used):

{
  "command": "npx",
  "args": ["@gavrix/appium-mcp"],
  "env": {}
}

Available Tools

The server exposes the following tools to an MCP client:

Session Management

  • start_session: Starts an Appium session with an automatically detected device (iOS simulator or Android emulator/device). Supports platform selection and device targeting.
    • Parameters: platform (optional): ‘ios’, ‘android’, or ‘auto’ (default)
    • Parameters: deviceName (optional): specific device name to target
  • end_session: Ends the current Appium session and cleans up resources.

App Control

  • launch_app: Launches an application using its identifier (bundle ID for iOS, package name for Android).

Element Interaction

  • find_element: Finds a UI element on the current screen using a specified strategy and selector.
  • tap_element: Taps or clicks an element identified by its unique element ID.
  • enter_text: Enters text into a specific element, like an input field.
  • get_element_text: Gets the text content from an element.

Screen Capture & Analysis

  • get_page_source: Retrieves the XML source hierarchy of the current screen.
  • get_page_source_file: Saves the page source XML to a specified file path.
  • get_screenshot: Captures a screenshot and returns it as base64-encoded data.
GitHub에서 전체 README 보기

설치

npx @gavrix/appium-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →