Expo Android MCP

Official registry Other

MCP server for Android emulator automation via ADB.

What can you do with Expo Android MCP?

  • devices — list connected devices and emulators.
  • doctor — validate adb availability and show connected devices.
  • setDevice — override the active device serial for this MCP process.
  • inspect — UI dump parsed into elements with a summary (screenshot optional).
  • screenshot — capture a screenshot only (base64 or file path).
  • findElement — return elements that match search criteria.
  • tapElement — find an element and tap its center.
  • waitForElement — wait until an element appears (optionally with state checks).

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package @fndchagas/expo-android
Claude Code
claude mcp add expo-android-mcp -e 'ADB_PATH=adb' -e 'ADB_SERIAL=<ADB_SERIAL>' -e 'ADB_TIMEOUT_MS=15000' -e 'ADB_MAX_BUFFER_MB=10' -e 'ADB_DEBUG=0' -e 'MCP_TRANSPORT=stdio' -e 'PORT=7332' -- npx -y @fndchagas/expo-android@0.5.2
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "expo-android-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@fndchagas/expo-android@0.5.2"
            ],
            "env": {
                "ADB_PATH": "adb",
                "ADB_SERIAL": "<ADB_SERIAL>",
                "ADB_TIMEOUT_MS": "15000",
                "ADB_MAX_BUFFER_MB": "10",
                "ADB_DEBUG": "0",
                "MCP_TRANSPORT": "stdio",
                "PORT": "7332"
            }
        }
    }
}

Environment variables

  • ADB_PATH Path to adb executable.
  • ADB_SERIAL Device serial to target (optional, use 'auto' to clear and auto-detect).
  • ADB_TIMEOUT_MS Timeout for adb commands in milliseconds.
  • ADB_MAX_BUFFER_MB Max buffer size for adb output in MB.
  • ADB_DEBUG Enable adb debug logs (set to 1).
  • MCP_TRANSPORT Transport: stdio, http, or both.
  • PORT HTTP port when MCP_TRANSPORT is http or both.

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. expo-android
  2. Requirements
  3. Install
  4. Quickstart
  5. Use with Claude Code CLI
  6. Use with OpenAI Codex CLI
  7. Environment variables
  8. Troubleshooting
  9. Tests
  10. Tools
  11. Search criteria
  12. MCP usage examples

expo-android

MCP server for Android emulator automation via ADB.

Requirements

  • Node 18+
  • Android SDK platform-tools (adb) available
  • Android emulator or device connected

Verify adb:

adb devices

Install

Claude Desktop, one-click: download expo-android.mcpb from the latest release and drag it into Settings → Extensions. You can leave both fields empty — adb is auto-detected and the only connected device is used by default.

Via npm:

npm install -g @fndchagas/expo-android
# or
npx -y @fndchagas/expo-android

Quickstart

  1. Start an emulator or connect a device.
  2. Run doctor to validate adb + device selection.
  3. Use inspect, tapElement, inputText, etc.

Example:

await client.callTool({ name: 'expo-android.doctor', arguments: {} });
await client.callTool({
  name: 'expo-android.inspect',
  arguments: { onlyInteractive: true, maxElements: 200 },
});

Use with Claude Code CLI

claude mcp add expo-android \
  --env ADB_PATH="$HOME/Library/Android/sdk/platform-tools/adb" \
  --env ADB_SERIAL="auto" \
  -- npx -y @fndchagas/expo-android

Use with OpenAI Codex CLI

codex mcp add expo-android \
  --env ADB_PATH="$HOME/Library/Android/sdk/platform-tools/adb" \
  --env ADB_SERIAL="auto" \
  -- npx -y @fndchagas/expo-android

Or edit ~/.codex/config.toml:

[mcp_servers.expo-android]
command = "npx"
args = ["-y", "@fndchagas/expo-android"]
env = { ADB_PATH = "/Users/you/Library/Android/sdk/platform-tools/adb", ADB_SERIAL = "emulator-5554" }

Serial selection priority: serial param (per tool call) → setDevice override → ADB_SERIAL env → auto (if only one device).

Environment variables

VariableDefaultDescription
ADB_PATHadbPath to adb executable
ADB_SERIALoptionalDevice serial to target (auto to clear and auto-detect)
ADB_TIMEOUT_MS15000Timeout for adb commands
ADB_MAX_BUFFER_MB10Max output buffer size
ADB_DEBUG0Log adb diagnostics to stderr
MCP_TRANSPORTstdioTransport: stdio, http, or both
PORT7332HTTP port when using http/both

Troubleshooting

adb not found (spawn adb ENOENT)

The server starts even when adb is missing — tools return the ADB executable not found error until adb becomes reachable (run doctor to diagnose). To fix it, set ADB_PATH or export an SDK path:

export ADB_PATH="$HOME/Library/Android/sdk/platform-tools/adb"
# or
export ANDROID_HOME="$HOME/Library/Android/sdk"

If multiple devices are connected, set ADB_SERIAL to the target device. You can also run setDevice at runtime:

await client.callTool({
  name: 'expo-android.setDevice',
  arguments: { serial: 'emulator-5554' },
});

If you update PATH or SDK variables, restart the MCP process so it can pick up the new environment.

Tests

npm run build
npm test

Tools

Tool names are plain identifiers (e.g. tap); your MCP client prefixes them with the server name you registered.

  • devices — list connected devices and emulators.
  • doctor — validate adb availability and show connected devices.
  • setDevice — override the active device serial for this MCP process.
  • inspect — UI dump parsed into elements with a summary (screenshot optional).
  • screenshot — capture a screenshot only (base64 or file path).
  • findElement — return elements that match search criteria.
  • tapElement — find an element and tap its center.
  • waitForElement — wait until an element appears (optionally with state checks).
  • assertElement — verify element existence and state.
  • tap — tap at x/y coordinates.
  • swipe — swipe between coordinates.
  • longPress — press and hold at coordinates.
  • inputText — type text in the focused field.
  • keyEvent — send Android key events (e.g., BACK, HOME).
  • openApp — launch an app by package name.
  • listPackages — list installed package names.
  • installExpoGo — download the pinned Expo Go APK and install it via adb install -r (the url override only accepts official github.com/expo/expo-go-releases URLs).

Every tool declares MCP annotations (readOnlyHint/destructiveHint), so clients can auto-approve inspection tools and gate the ones that drive the device.

Search criteria

These tools accept flexible search inputs: findElement, tapElement, waitForElement, assertElement.

Common fields:

  • text, textContains
  • contentDesc, contentDescContains
  • resourceId, resourceIdContains
  • class
  • normalizeWhitespace, caseInsensitive

MCP usage examples

Inspect
const result = await client.callTool({
  name: 'expo-android.inspect',
  arguments: { onlyInteractive: true, includeScreenshot: false, maxElements: 200 },
});

Inspect options:

  • includeScreenshot (default: false)
  • screenshotMode: base64 or path
  • screenshotPath: optional file path when using path
  • maxElements: limit elements returned
  • includeElements: return elements or summary only
Doctor
await client.callTool({
  name: 'expo-android.doctor',
  arguments: {},
});
Override serial per call
await client.callTool({
  name: 'expo-android.tapElement',
  arguments: { text: 'Search', serial: 'emulator-5554' },
});
Tap element
await client.callTool({
  name: 'expo-android.tapElement',
  arguments: { text: 'Private account' },
});
Wait + assert
await client.callTool({
  name: 'expo-android.waitForElement',
  arguments: { text: 'Save', timeout: 10000, shouldBeClickable: true },
});

await client.callTool({
  name: 'expo-android.assertElement',
  arguments: { text: 'Private account', shouldBeChecked: true },
});

Frequently asked questions

What is Expo Android MCP?

MCP server for Android emulator automation via ADB.

How do I install Expo Android MCP?

It runs on your machine. In Claude Code: claude mcp add expo-android-mcp -e 'ADB_PATH=adb' -e 'ADB_SERIAL=<ADB_SERIAL>' -e 'ADB_TIMEOUT_MS=15000' -e 'ADB_MAX_BUFFER_MB=10' -e 'ADB_DEBUG=0' -e 'MCP_TRANSPORT=stdio' -e 'PORT=7332' -- npx -y @fndchagas/expo-android@0.5.2. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Expo Android MCP need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is Expo Android MCP open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains Expo Android MCP?

It is published by frndchagas. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.