MCP Appium - Mobile Development and Automation Server

v2.1.2
io.github.appium/appium-mcp Checked 1 hour ago Published 1 day ago

MCP server for Appium mobile automation on iOS and Android devices with test creation tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

select_device

Discover/select a LOCAL device. Ask for platform if unknown; one device is auto-selected. For multiple devices, ask the user to choose, then pass deviceUdid. Next: prepare_ios_simulator for iOS simulators, then appium_session_management action=create. Skip for REMOTE servers: pass device capabilities (appium:deviceName/appium:udid) and the user-provided remoteServerUrl to session creation.

ParameterTypeDescription
platform *stringPlatform chosen by the user.
deviceUdidstringUser-selected UDID. Omit to discover devices.
iosDeviceTypestringRequired for ios: simulator or real device.

appium_session_management

Manage Appium sessions. Use action=create to start a session, attach to connect to an existing one, detach to forget an attached session, delete to stop one, list to see all active sessions, or select to switch the active session.

ParameterTypeDescription
action *stringcreate: Create a new Appium session. DEFAULT MODE (no remoteServerUrl): use unless the user explicitly provides a server URL. - Drivers run embedded inside this MCP server; no separate Appium process…
capabilitiesstringOptional W3C capabilities as a JSON string, e.g. '{"appium:app":"/path/to/app","appium:platformVersion":"17.0"}'. Create: overrides defaults for ios/android; passed through as-is for general. Common k…
platformstringRequired for create. For local sessions, match the platform selected via select_device. For remote sessions, infer from the request; general supports non-Android/iOS drivers (Windows, macOS, custom) a…
remoteServerUrlstringRemote Appium server URL for create or attach (e.g. http://localhost:4723). Omit to use local server for create.
sessionIdstringRequired for attach and select: the existing session to connect to or activate. For delete: session to delete. For detach: attached session to forget without stopping it. Delete/detach default to the…

appium_mobile_device_control

Control device behavior: lock/unlock the screen, shake the device, or open the notifications panel. Use the action parameter to choose what to do.

ParameterTypeDescription
action *stringAction to perform. lock: lock the device (optional seconds for timed lock). unlock: unlock the device. shake: perform shake gesture (iOS only). open_notifications: open notifications panel (Android on…
secondsintegerOnly for action=lock: lock duration in seconds before auto-unlock. Omit to remain locked until unlock.
sessionIdstringSession ID; defaults to the active session.

appium_geolocation

Get, set, or reset the device geolocation (GPS coordinates). Works on both iOS (simulators and real devices) and Android (emulators and real devices with mock location enabled). Use action=get to read current coordinates, action=set with latitude/longitude (and optional altitude for Android) to simulate a location, or action=reset to restore the system default. Note: On Android emulators, reset is not supported — use action=set to manually restore coordinates instead. On Android real devices, the mocked location may persist until the GPS cache refreshes.

ParameterTypeDescription
action *stringAction to perform. get: read the current device geolocation. set: set the device geolocation (requires latitude and longitude; optional altitude for Android). reset: reset the geolocation to the defau…
altitudenumberAltitude value in meters. Android only, defaults to 0. Ignored on iOS. Used with: set.
latitudenumberLatitude value (-90 to 90). Measurement of distance north or south of the Equator. Required for: set.
longitudenumberLongitude value (-180 to 180). Measurement of distance east or west of the prime meridian. Required for: set.
sessionIdstringSession ID; defaults to the active session.

appium_mobile_device_info

Get device information, battery status, or current device time in a single call. Use the "action" parameter to select which data to retrieve. Works on both iOS and Android.

ParameterTypeDescription
action *stringAction to perform: "info" returns device model/OS/locale/etc., "battery" returns battery level and charging state, "time" returns the current device time.
formatstringOnly used when action is "time". moment.js format string for the returned time. Defaults to ISO 8601 (YYYY-MM-DDTHH:mm:ssZ).
sessionIdstringSession ID; defaults to the active session.

appium_mobile_file

Push or pull a file using Appium mobile extensions. action=push uses payloadBase64, action=pull returns contentBase64.

ParameterTypeDescription
action *stringpush uploads a file to device; pull downloads from device.
remotePath *stringPath to the file on the device. Android (UiAutomator2): use an absolute path (e.g. /data/local/tmp/foo.txt or /sdcard/Download/foo.txt). iOS (XCUITest): use the formats described in the Appium XCUITes…
payloadBase64stringRequired when action=push. Ignored when action=pull.
sessionIdstringSession ID; defaults to the active session.

appium_driver_settings

Read or update Appium driver session settings (e.g. idle timeouts, selector waits). Use action=get to return JSON settings; action=update merges a map into the session. Works for embedded UiAutomator2/XCUITest sessions and remote WebDriver clients that support Appium settings.

ParameterTypeDescription
action *stringget: read current Appium driver session settings (timeouts, selector waits, flags). update: merge a settings map into the session (requires settings).
sessionIdstringSession ID; defaults to the active session.
settingsobjectRequired when action is update. Driver-specific keys (e.g. Android UiAutomator2: waitForIdleTimeout, waitForSelectorTimeout, ignoreUnimportantViews; iOS XCUITest has its own set). Use action=get first…

prepare_ios_simulator

Boot an iOS/tvOS simulator, download/cache WDA, and launch it on a free per-simulator port. Pass capabilitiesHint (appium:webDriverAgentUrl) to appium_session_management action=create to reuse WDA. skipWda=true only boots. APPIUM_MCP_WDA_APP_PATH can point to an extracted WebDriverAgentRunner-Runner.app (absolute path) to skip download.

ParameterTypeDescription
udid *stringThe UDID of the iOS simulator to prepare. Use select_device to get this.
forceRefreshWdabooleanIf true, re-download WDA even if already cached. Default: false.
platformstringThe simulator platform to download WDA for. Default is "ios". Use "tvos" for Apple TV simulators.
skipWdabooleanIf true, only boot the simulator without downloading or installing WDA. Default: false.

appium_prepare_ios_real_device

Prepare signed WDA for a real iOS device. Omit provisioningProfileUuid to list profiles; ask the user to choose, highlighting recommendedForWda. Pass the chosen UUID to download, package, and sign WDA; wildcard profiles use a concrete WDA bundle ID. Downloads/unsigned IPA are cached per version; signing always reruns. Pass capabilitiesHint to appium_session_management action=create to install/launch the signed WDA. Requires macOS, Xcode 16+, and a paired developer-mode device.

ParameterTypeDescription
udid *stringUDID of the connected iOS real device. Use select_device to discover it.
forceRebuildbooleanIf true, ignore the cached WDA download and unsigned IPA and start clean. The signed IPA is always rebuilt regardless. Default: false.
provisioningProfileUuidstringUUID of the .mobileprovision profile to sign WDA with. If omitted, the tool returns the list of available profiles so you can ask the user to pick one.

appium_gesture

Perform a touch gesture. Use 'action' to choose: tap, double_tap, long_press, scroll, swipe, pinch_zoom, scroll_to_element, back. Choose scroll vs swipe by intent: scroll to browse content in a list or feed; swipe to dismiss, switch screens, navigate carousels, or pull-to-refresh (speed=fast). For drag-and-drop use appium_drag_and_drop. For custom multi-touch use appium_perform_actions.

ParameterTypeDescription
action *stringtap/double_tap/long_press: requires elementUUID or both x/y. scroll/swipe: requires direction or x/y/endX/endY. pinch_zoom: requires scale (<1 out, >1 in). scroll_to_element: requires strategy/selecto…
directionstringDirection for scroll/swipe. Coordinates are calculated from the screen or element bounds. Provide either direction or custom coordinates (x, y, endX, endY); direction takes precedence if both are give…
durationintegerDuration in milliseconds. long_press defaults to 2000 (range 500–10000); scroll defaults to 800. For swipe, prefer speed unless a custom movement duration is needed. For W3C swipe, overrides movemen…
elementUUIDstringElement UUID for tap, double_tap, long_press, or pinch_zoom; overrides x/y for these actions. For scroll/swipe with direction, coordinates are calculated relative to this element instead of the whole…
endXintegerEnding X coordinate in pixels for scroll/swipe; requires x, y, endY.
endYintegerEnding Y coordinate in pixels for scroll/swipe; requires x, y, endX.
maxScrollAttemptsintegerscroll_to_element only: maximum scroll attempts after the initial lookup fails. Default 10.
scalenumberRequired for pinch_zoom: <1 zooms out, >1 zooms in (e.g. 0.5 or 2 for 2x).
scrollDistancenumberscroll_to_element only: vertical swipe distance fraction (0.05–1). Ignored when scrollDistancePreset is set. Default 0.45 when neither option is supplied.
scrollDistancePresetstringscroll_to_element only: small is a light nudge (0.25), medium is 0.45, large is the full default swipe (1). Overrides scrollDistance when set.
selectorstringLocator selector value. Required for: scroll_to_element.
sessionIdstringSession ID; defaults to the active session.
speedstringSwipe only. slow: deliberate drag; normal: default navigation speed; fast: flick without an initial hold. Use fast for pull-to-refresh and other velocity-sensitive interfaces.
strategystringRequired for scroll_to_element. Prefer accessibility id > id > platform-native (iOS: -ios predicate string / -ios class chain; Android: -android uiautomator) > xpath (last resort: slow/brittle). name…
velocitynumberPinch velocity in scale factor per second. Default 2.2. Used by pinch_zoom.
xintegerX pixel coordinate, paired with y: tap location, pinch center, or scroll/swipe start (requires endX/endY). elementUUID overrides x/y for tap/double_tap/long_press/pinch_zoom.
yintegerY pixel coordinate, paired with x; same action meanings and elementUUID precedence as x.

appium_drag_and_drop

Perform a drag-and-drop gesture from a source location to a target location. The gesture: long press the source (default 600ms), drag to the target (default 1200ms), then release. Source and target can each be specified as either an element UUID or coordinates. Useful for reordering lists, moving items, drag-to-delete.

ParameterTypeDescription
durationintegerDuration of the drag movement in milliseconds. Default 1200.
longPressDurationintegerDuration of the long press before dragging in milliseconds. Default 600.
sessionIdstringSession ID; defaults to the active session.
sourceElementUUIDstringUUID of source element to drag from. Either sourceElementUUID or sourceX+sourceY must be provided.
sourceXintegerSource X coordinate. Required if sourceElementUUID is not provided.
sourceYintegerSource Y coordinate. Required if sourceElementUUID is not provided.
targetElementUUIDstringUUID of target element to drop on. Either targetElementUUID or targetX+targetY must be provided.
targetXintegerTarget X coordinate. Required if targetElementUUID is not provided.
targetYintegerTarget Y coordinate. Required if targetElementUUID is not provided.

appium_perform_actions

Execute raw W3C Actions API sequences for advanced multi-touch gestures not covered by appium_gesture. Use this for custom multi-finger gestures (rotate, three-finger swipe, edge swipes), complex timing sequences, or any gesture requiring precise control over individual touch points. Prefer appium_gesture for standard gestures (tap, scroll, swipe, pinch) — it handles platform differences automatically.

ParameterTypeDescription
actions *arrayW3C Actions API input source array. Each entry is one input source (pointer/key/none) with its action sequence. Multiple pointer sources enable multi-touch gestures (e.g. two-finger rotate, three-fing…
sessionIdstringSession ID; defaults to the active session.

appium_find_element

Find an element by strategy and selector. Pass its ID as elementUUID to interaction tools. Returns driver attributes as JSON. For drivers supporting elementResponseAttributes, use appium_driver_settings to configure it with shouldUseCompactResponses=false. Prefer accessibility id > id > platform-native > xpath (last resort: slow/brittle). See strategy for platform-specific guidance. To scroll until a target is found, use appium_gesture action=scroll_to_element with the same strategy and selector, rather than repeatedly calling this tool. Vision fallback: appium_ai action=find_element (if enabl…

ParameterTypeDescription
selector *stringSelector for the strategy. Do not pass natural-language descriptions; use appium_ai action=find_element for vision.
strategy *stringaccessibility id: cross-platform, fast and stable. id: Android resource-id; iOS accessibility-id alias. iOS prefer accessibility id > -ios predicate string > -ios class chain; Android prefer accessibi…
sessionIdstringSession ID; defaults to the active session.

appium_find_elements

Find all elements matching a strategy and selector. Returns JSON {elements: [{elementId, attributes?}]}; no matches returns {elements: []}. Pass an elementId as elementUUID to interaction tools. Additional driver attributes are preserved. For drivers supporting elementResponseAttributes, use appium_driver_settings to configure it with shouldUseCompactResponses=false. Use appium_find_element when only one match is needed.

ParameterTypeDescription
selector *stringSelector for the strategy. Do not pass natural-language descriptions; use appium_ai action=find_element for vision.
strategy *stringaccessibility id: cross-platform, fast and stable. id: Android resource-id; iOS accessibility-id alias. iOS prefer accessibility id > -ios predicate string > -ios class chain; Android prefer accessibi…
sessionIdstringSession ID; defaults to the active session.

appium_mobile_press_key

Press navigation keys (BACK, HOME, APP_SWITCH) on Android or physical buttons (HOME, volume, etc.) on iOS/tvOS.

ParameterTypeDescription
isLongPressbooleanAndroid only. Whether to perform a long press. Defaults to false.
keystringLogical key/button to press. On Android: BACK, HOME, APP_SWITCH. On iOS/tvOS: HOME, VOLUME_UP, VOLUME_DOWN, UP, DOWN, LEFT, RIGHT, MENU, PLAY_PAUSE, SELECT.
keyCodeintegerAndroid keycode to press. If provided, takes precedence over key for Android.
sessionIdstringSession ID; defaults to the active session.

appium_set_value

Enter text into an element

ParameterTypeDescription
text *stringThe text to enter
elementUUIDstringElement ID from appium_find_element.
sessionIdstringSession ID; defaults to the active session.
w3cActionsbooleanWhen true, type text via the W3C Actions API (performActions) instead of the driver-specific setValue. No elementUUID needed — key events are sent to whatever element currently has focus. Works on b…

appium_mobile_keyboard

Hide the software keyboard or check if it is visible (Android UiAutomator2 / iOS XCUITest). action=hide uses mobile: hideKeyboard; action=is_shown uses mobile: isKeyboardShown.

ParameterTypeDescription
action *stringhide: dismiss the software keyboard (mobile: hideKeyboard). is_shown: whether the keyboard is visible (mobile: isKeyboardShown).
keysarrayhide only: optional key names to dismiss the keyboard (e.g. "done"). Forwarded to mobile: hideKeyboard when non-empty. Ignored for is_shown.
sessionIdstringSession ID; defaults to the active session.

appium_get_text

Get text from an element

ParameterTypeDescription
elementUUID *stringElement ID from appium_find_element.
sessionIdstringSession ID; defaults to the active session.

appium_get_element_attribute

Get the value of an element attribute. Use this to check element state (enabled, selected, checked, focused, displayed, clickable) or read properties (name, value, label, content-desc, resource-id, class).

ParameterTypeDescription
attribute *stringThe attribute name to retrieve. Common attributes: "enabled", "selected", "displayed", "checked", "focused", "clickable", "scrollable", "focusable", "name", "value", "label", "text", "content-desc", "…
elementUUID *stringElement ID from appium_find_element.
sessionIdstringSession ID; defaults to the active session.

appium_mobile_clipboard

Read or set the device clipboard as plain text (Android UiAutomator2 / iOS XCUITest). action=get returns current text; action=set requires content.

ParameterTypeDescription
action *stringget: read device clipboard as plain text. set: write plain text to the clipboard.
contentstringRequired when action is set. Plain text to put on the clipboard.
sessionIdstringSession ID; defaults to the active session.

appium_get_active_element

Get the currently active/focused element and return its UUID for follow-up interactions. [PRIORITY 1: Use this first when you need to find what element currently has focus]

ParameterTypeDescription
sessionIdstringSession ID; defaults to the active session.

appium_get_page_source

Get current-screen XML. saveToFile=true returns server-local path/bytes and enables selector/pattern summaries.

ParameterTypeDescription
patternstringLiteral tag/attribute substring.
saveToFilebooleanSave fresh XML to a file; return path/bytes instead of XML.
selectorstringXPath selecting elements.
sessionIdstringSession ID; defaults to the active session.

appium_orientation

Get or set the device/screen orientation. Supports action=get and action=set (LANDSCAPE or PORTRAIT).

ParameterTypeDescription
action *stringUse get to read current orientation, set to change orientation.
orientationstringRequired when action is set.
sessionIdstringSession ID; defaults to the active session.

appium_alert

Handle system alerts with action=accept|dismiss, or read alert text with action=get_text.

ParameterTypeDescription
action *stringAction to perform on alert: accept, dismiss, or get_text
buttonLabelstringOptional label of the button to click for accept/dismiss.
sessionIdstringSession ID; defaults to the active session.

appium_screenshot

Take a screenshot and save as PNG. Optionally provide elementUUID to capture only that element.

ParameterTypeDescription
elementUUIDstringCapture this element; omit for the full screen.
maxWidthnumberResize to at most this width in pixels, preserving aspect ratio.
returnRawBase64booleanReturn inline PNG instead of saving, for explicit manual use when the server file is inaccessible. LLMs must keep false and use the saved path.
sessionIdstringSession ID; defaults to the active session.

appium_get_window_size

Get the width and height of the device screen in pixels. Useful for calculating coordinates for swipes, taps, and scrolls.

ParameterTypeDescription
sessionIdstringSession ID; defaults to the active session.

appium_screen_recording

Start or stop screen recording. action=start begins recording; action=stop stops and saves to MP4.

ParameterTypeDescription
action *stringstart begins recording; stop ends, retrieves, and saves it.
bitRateintegerAndroid only. Video bit rate in bits per second.
bugReportbooleanAndroid only. Display timestamp overlay. Requires API level 27+.
forceRestartbooleanRestart and discard any active recording; default false.
hardwareAccelerationstringiOS only. FFMPEG hardware acceleration backend.
pixelFormatstringiOS only. Output pixel format (e.g. yuv420p).
sessionIdstringSession ID; defaults to the active session.
timeLimitintegerRecorder limit in seconds; it does not retrieve/save automatically, so call stop. iOS default 180/max 4200; Android default 180/max 1800.
videoFpsintegeriOS only. Frames per second. Default: 10.
videoQualitystringiOS only. Video quality preset. Default: medium.
videoScalestringiOS only. Width:height, each 1–16384 (e.g. 1280:720); one may be -1 or -2 to preserve aspect ratio.
videoSizestringAndroid only. Frame size in WIDTHxHEIGHT format (e.g. 1280x720).
videoTypestringiOS only. Video codec to use (e.g. libx264).

appium_app_lifecycle

Manage app lifecycle, installation, state, data, and deep links.

ParameterTypeDescription
action *stringactivate: foreground app; terminate: stop app; is_installed: check installation; clear: clear app data without uninstalling (all require id or name). install: requires path. uninstall: requires id/nam…
applicationTypestringiOS list filter: User (default) or System.
idstringAndroid package or iOS bundle ID; takes precedence over name.
keepDatabooleanAndroid uninstall: preserve app data and cache.
namestringHuman-readable app name resolved to an ID; alternative to id.
pathstringApp file path or HTTP(S) URL; required for install. Embedded URL downloads require ALLOW_REMOTE_APP_URLS=true (default). Remote sessions resolve app inputs on the remote Appium server.
secondsnumberBackground duration; default 5. Use -1 to remain in background.
sessionIdstringSession ID; defaults to the active session.
urlstringURL for deep_link (e.g. https://example.com or myapp://path).
waitForLaunchbooleanAndroid deep_link: wait for the activity to return; default true.

appium_mobile_permissions

Get/update Android app permissions or iOS Simulator privacy services; reset iOS privacy prompts. See action-specific parameters.

ParameterTypeDescription
action *stringget: list (Android) or read one privacy state (iOS Simulator). update: grant/revoke (Android) or set privacy map (iOS Simulator). reset: restore a privacy prompt for the app under test (iOS only).
accessobjectiOS update only: map of access rule → yes|no|unset|limited (Simulator + AppleSimulatorUtils). Required for iOS update.
idstringApp ID; overrides name. Android defaults to the app under test; required for iOS get/update.
namestringApp name resolved to an ID. Android defaults to the app under test; alternative to id for iOS get/update.
permissionChangeActionstringAndroid update: for pm target grant (default) or revoke; for appops allow, deny, ignore, default.
permissionFilterstringAndroid get only: which bucket to return. Defaults to requested per UiAutomator2.
permissionsAndroid update only: permission name(s), `all` (with pm target), or appops names. Required for Android update.
servicestring | numberiOS get: privacy service name (e.g. camera, microphone, photos). iOS reset: service name or numeric XCUIProtectedResource id.
sessionIdstringSession ID; defaults to the active session.
targetstringAndroid update: pm (default) or appops.

appium_context

Manage Appium contexts with one tool. action=list returns all contexts and current context. action=switch changes to a target context.

ParameterTypeDescription
action *stringUse list to fetch contexts or switch to change context.
contextstringRequired when action is switch. Common values: NATIVE_APP or WEBVIEW_<id>/WEBVIEW_<package>.
sessionIdstringSession ID; defaults to the active session.

generate_locators

Generate current-page locator candidates for inspection. Defaults: controls for UiAutomator2/XCUITest/Web; all elements except hierarchy for other native drivers.

ParameterTypeDescription
querystringCase-insensitive literal substring of an element tag or attribute value (name, label, text, ID, etc.). Searches all element types, including hidden elements. Blank or omitted keeps the default driver-…
sessionIdstringSession ID; defaults to the active session.
xpathAttributesarrayAdditional XPath attribute names in priority order, e.g. AutomationId or data-testid. Tried before built-in attributes; defaults remain as fallback. No namespace prefixes or XPath expressions.

appium_generate_tests

Return a workflow to execute the scenario with MCP tools, then generate test code from observed interactions. Prefer appium_find_element; generate_locators is for broad inspection.

ParameterTypeDescription
steps *arrayThe steps of the test