Skip to main content
Glama
espresso-mcp
by vs4vijay

эспрессо-mcp

Сервер MCP для Espresso Android Test Framework, разработанный для расширения возможностей тестирования и оптимизации рабочих процессов разработки.

Установка

  • Питон 3.x

  • uv: pip install uv

uv tool install espresso-mcp

Related MCP server: android-mcp

Использование

  • На Claude: добавьте следующую конфигурацию JSON в файл claude_desktop_config.json

{
  "mcpServers": {
    "terminal": {
      "command": "uv",
      "args": ["pip", "run", "espresso-mcp", "--timeout-ms", "30000"]
    }
  }
}

Доступные инструменты

В проекте espresso-mcp доступны следующие инструменты:

  • list_avds : список всех доступных виртуальных устройств Android (AVD).

  • list_emulators : Список всех запущенных эмуляторов Android.

  • start_emulator : Запустить эмулятор Android по имени.

  • kill_emulator : завершить работу определенного эмулятора Android.

  • dump_ui_hierarchy : Дамп иерархии пользовательского интерфейса подключенного устройства Android.

  • open_uri : открыть URI на подключенном устройстве Android.

  • list_apps : список всех установленных приложений на подключенном устройстве Android.

  • install_app : Установка APK на подключенное устройство Android.

  • start_app : запуск определенного приложения на подключенном устройстве Android.

  • stop_app : Остановка определенного приложения на подключенном устройстве Android.

  • uninstall_app : удаление приложения с подключенного устройства Android.

  • clear_app_data : Очистить данные определенного приложения на подключенном устройстве Android.

  • take_screenshot : сделать снимок экрана подключенного устройства Android.

  • record_screen : Запись экрана подключенного устройства Android в течение указанного времени.

  • press_button : Имитация нажатия кнопки на подключенном устройстве Android.

  • type_text : Введите текст на подключенном устройстве Android.

  • Нажмите : Имитация нажатия на подключенном устройстве Android в определенных координатах.

  • смахивание : выполните жест смахивания в определенном направлении на подключенном устройстве Android.

Ресурсы

Доступны следующие ресурсы:

  • config://app : Извлечение статических данных конфигурации.

  • greeting://{name} : получите персонализированное приветствие.


Локальная настройка

  • Питон 3.x

  • uv: pip install uv

# Install
uv install

# Run Dev Mode
uv run mcp dev server.py

Отладка

  • Используйте MCP-инспектор

# Install MCP Inspector
yarn global add @modelcontextprotocol/inspector

# Test MCP Server
yarn run @modelcontextprotocol/inspector python server.py

Тестирование

uv run pytest

Издательский

# Build the package
uv build

# Upload to PyPI
uv publish

Заметки о разработке


uv init espresso-mcp

uv add "mcp[cli]"

uv run mcp dev server.py

Available Tools

22 tools
clear_and_type_textC

Clear all text and type new text on the connected Android device

Inputs: text (required).

clear_app_dataC

Clear app data for a specific app on the connected Android device

Inputs: package_name (required).

dump_current_activityA

Dump the current activity name of the connected Android device

Inputs: no named parameters.

dump_ui_hierarchyB

Dump the UI hierarchy of the connected Android device

Inputs: no named parameters.

fetch_weatherB

Fetch current weather for a city

Inputs: city (required).

install_appB

Install an App APK on the connected Android device

Inputs: app_path (required).

kill_emulatorC

Kill a specific Android Emulator

Inputs: emulator_name (required).

list_appsA

List all installed apps on the connected Android device

Inputs: no named parameters.

list_avdsC

List all available Android Virtual Devices (AVDs)

Inputs: no named parameters.

list_emulatorsA

List all running Android Emulators

Inputs: no named parameters.

open_uriC

Open a URI on the connected Android device

Inputs: uri (required).

press_buttonC

Simulate a button press on the connected Android device using an Enum button

Inputs: button (required).

record_screenC

Record the screen of the connected Android device for a specified duration

Inputs: output_path (required), duration (required).

replace_textB

Replace text on the connected Android device by clearing current text and typing new text

Inputs: text (required).

start_appC

Start an app on the connected Android device

Inputs: package_name (required).

start_emulatorC

Start an Android Emulator by name

Inputs: emulator_name (required).

stop_appC

Stop an app on the connected Android device

Inputs: package_name (required).

swipeC

Perform a swipe gesture in a specific direction on the connected Android device

Inputs: direction (required), duration.

take_screenshotC

Take a screenshot of the connected Android device

Inputs: output_path (required).

tapB

Simulate a tap on the connected Android device at the specified coordinates

Inputs: x (required), y (required).

type_textC

Type text on the connected Android device. Handles spaces correctly.

Inputs: text (required).

uninstall_appC

Uninstall an app from the connected Android device

Inputs: package_name (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 22 tools

    Disambiguation3/5

    Most tools are clearly separated by resource and action, but clear_and_type_text and replace_text describe essentially the same operation, which creates real ambiguity. The unrelated fetch_weather tool also muddies the tool surface.

    Naming Consistency4/5

    The overwhelming majority of tools follow a clear verb_noun snake_case pattern (list_apps, start_emulator, take_screenshot). Minor deviations include short gesture verbs like tap and swipe, plus the redundant clear_and_type_text vs replace_text naming.

    Tool Count3/5

    22 tools is on the heavy side but mostly justifiable for Android emulator/device automation. The count feels inflated by the duplicate text-replacement tools and the off-topic weather tool, which could be trimmed.

    Completeness3/5

    Core emulator and app lifecycle operations are covered well, along with common UI interactions. Obvious gaps include no AVD creation/deletion, no device/serial selection, and no test-running or assertion tools despite the espresso name.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A lightweight MCP server for Android operating system automation. This server provides tools to interact directly with Android devices and app interaction with control
      3
      -
    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that enables AI assistants to build, test, and debug Android applications by interacting directly with the Android development environment. It provides tools for managing emulators, executing Gradle tasks, running ADB commands, and performing UI automation via accessibility trees.
      14
      72 npm
      21
      MIT