Espresso Testing Framework MCP server

Integrates with Espresso testing framework to enable automated Android application testing through test execution, result analysis, and mobile UI interaction capabilities.
Back to servers
Setup instructions
Provider
vs4vijay
Release date
May 29, 2025

The Espresso-MCP server provides a bridge between AI assistants and Android testing capabilities, allowing for automated control of Android emulators and devices during development and testing workflows.

Installation Requirements

  • Python 3.x
  • uv package manager: pip install uv

Running the Server

You can run the server in either stdio mode (default) or SSE mode:

# Run in stdio mode
uvx espresso-mcp

# Run in SSE mode
uvx espresso-mcp --sse

Integration with AI Assistants

GitHub Copilot Integration

Add the following configuration to your .vscode/mcp.json file:

{
  "servers": {
    "espresso-mcp": {
      "command": "uvx",
      "args": ["espresso-mcp"],
      "env": {}
    }
  }
}

Claude Integration

Add the following configuration to your claude_desktop_config.json file:

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

Available Tools

Emulator Management

  • list_avds: View all available Android Virtual Devices
  • list_emulators: Display currently running Android Emulators
  • start_emulator: Launch a specific Android Emulator by name
  • kill_emulator: Terminate a specific Android Emulator

Device Interaction

  • dump_ui_hierarchy: Get the UI hierarchy of the connected device
  • open_uri: Open a URI on the connected device
  • take_screenshot: Capture the current screen of the connected device
  • record_screen: Record video of the connected device for a specified duration

Input Simulation

  • press_button: Simulate physical button presses
  • type_text: Enter text on the connected device
  • tap: Simulate screen tap at specific coordinates
  • swipe: Perform directional swipe gestures

Application Management

  • list_apps: View all installed applications
  • install_app: Install an APK file
  • start_app: Launch a specific application
  • stop_app: Terminate a running application
  • uninstall_app: Remove an application from the device
  • clear_app_data: Reset data for a specific application

Available Resources

The server provides access to these resources:

  • config://app: Access static configuration data
  • greeting://{name}: Retrieve a personalized greeting message

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "espresso-mcp" '{"command":"uvx","args":["espresso-mcp"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "espresso-mcp": {
            "command": "uvx",
            "args": [
                "espresso-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "espresso-mcp": {
            "command": "uvx",
            "args": [
                "espresso-mcp"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later