npm @fndchagas/expo-androidstdioMITupdated 15d ago
MCP server for Android emulator automation via ADB.
What can you do with Expo Android MCP?
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
- Start an emulator or connect a device.
- Run
doctorto validate adb + device selection. - 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
| Variable | Default | Description |
|---|---|---|
ADB_PATH |
adb |
Path to adb executable |
ADB_SERIAL |
optional | Device serial to target (auto to clear and auto-detect) |
ADB_TIMEOUT_MS |
15000 |
Timeout for adb commands |
ADB_MAX_BUFFER_MB |
10 |
Max output buffer size |
ADB_DEBUG |
0 |
Log adb diagnostics to stderr |
MCP_TRANSPORT |
stdio |
Transport: stdio, http, or both |
PORT |
7332 |
HTTP 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 viaadb install -r(theurloverride only accepts officialgithub.com/expo/expo-go-releasesURLs).
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,textContainscontentDesc,contentDescContainsresourceId,resourceIdContainsclassnormalizeWhitespace,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:base64orpathscreenshotPath: optional file path when usingpathmaxElements: limit elements returnedincludeElements: 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 },
});
Install
Add Expo Android MCP to your client. Pick the one you use.
claude mcp add expo-android -- npx -y @fndchagas/expo-androidcodex mcp add expo-android -- npx -y @fndchagas/expo-androidamp mcp add expo-android -- npx -y @fndchagas/expo-android{
"mcpServers": {
"expo-android": {
"command": "npx",
"args": [
"-y",
"@fndchagas/expo-android"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"expo-android": {
"command": "npx",
"args": [
"-y",
"@fndchagas/expo-android"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"expo-android","command":"npx","args":["-y","@fndchagas/expo-android"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"expo-android": {
"command": "npx",
"args": [
"-y",
"@fndchagas/expo-android"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"expo-android": {
"command": "npx",
"args": [
"-y",
"@fndchagas/expo-android"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"expo-android": {
"command": "npx",
"args": [
"-y",
"@fndchagas/expo-android"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"expo-android": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@fndchagas/expo-android"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"expo-android": {
"command": {
"path": "npx",
"args": [
"-y",
"@fndchagas/expo-android"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @fndchagas/expo-androidRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
11 tools
Expo Android MCP exposes 11 tools to a connected agent.
- setDevice
- override the active device serial for this MCP process.
- 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.
- 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).
Score
79 / 100
Good
- Documentation21/25
- Maintenance25/25
- Trust13/20
- Capability8/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 8 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 11 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 0.5.2Latest | Aug 24, 2026 |
| 0.5.1 | Aug 8, 2026 |
| 0.5.0 | Aug 6, 2026 |
| 0.4.0 | Aug 6, 2026 |
| 0.3.1 | Aug 6, 2026 |
| 0.3.0 | Aug 6, 2026 |
| 0.2.1 | Jan 8, 2026 |