AndroidBuildMCP
Provides tools for building, deploying, and testing Android apps, managing emulators, capturing screenshots, and automating UI interactions.
Supports optional integration with Google's Android CLI for annotated screenshots with numbered UI elements.
Enables building Android projects with Gradle, returning parsed compiler errors and test summaries.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AndroidBuildMCPBuild and deploy my app to a running emulator"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AndroidBuildMCP
Give your AI agent hands on Android. AndroidBuildMCP is an MCP server that lets any MCP client (Claude Code, Cursor, ...) build, deploy, drive and debug real Android apps: Gradle builds with readable errors, emulator management, adb deployment, logcat capture and full UI automation.
Quick start
Requirements: Node 18+, the Android SDK (ANDROID_HOME or a default install), and a JDK 17+ for Gradle builds.
No install step — npx fetches the server on first run.
Claude Code
claude mcp add androidbuild -- npx -y @asjackson/androidbuild-mcpAny other MCP client
{
"mcpServers": {
"androidbuild": {
"command": "npx",
"args": ["-y", "@asjackson/androidbuild-mcp"]
}
}
}git clone https://github.com/dev-jackson/androidbuild-mcp.git
cd androidbuild-mcp
npm install && npm run build
claude mcp add androidbuild -- node /absolute/path/to/androidbuild-mcp/dist/index.jsThen ask your agent to run doctor — it checks the SDK, adb, emulator, Java and connected devices, and tells you exactly what is missing.
Related MCP server: Android MCP Server
What your agent can do
Build and test —
build_appcompiles and returns compactfile:linecompiler errors instead of a thousand lines of Gradle noise.test_app/test_instrumentedreturn parsed pass/fail summaries. Lint, clean, coverage (Kover/Jacoco) included.Manage emulators — list, create, boot (waits for full boot, returns the serial), wipe, and kill AVDs. Set GPS location, dark mode, and a clean demo status bar for screenshots.
Deploy —
build_runcompiles, installs and launches in one call. Install/uninstall/clear-data/app-info via adb, with the right device auto-selected when only one is connected.See the screen —
snapshot_uireturns the UI as a compact list of named elements with tap coordinates (Compose semantics merged, noise filtered).screenshotreturns an image; withannotate: trueit draws numbered boxes using vision, catching text inside images and WebViews.Touch the screen — tap, scroll, swipe, drag, long-press, type (keyboard-aware, with clear/submit), hardware keys, and
wait_for_uito poll until an element appears.Read the logs — background logcat capture filtered to your app, one-shot dumps, and the crash buffer for stack traces.
Start new apps —
scaffold_android_projectgenerates a minimal Compose project that builds out of the box.
Session defaults (session_set_defaults) mean you configure project, module, variant and device once — every other call then works without arguments.
Tool reference
53 tools over stdio. Every tool takes plain arguments and returns text (or an image, for screenshot).
Environment and project
Tool | Description |
| Check SDK, adb, emulator, avdmanager, Java and connected devices; reports what is missing |
| Find Android/Gradle projects under a path |
| List modules declared in |
| List build variants of a module |
| Read the |
| Show Gradle, AGP, Kotlin and version-catalog entries |
Session defaults
Tool | Description |
| Set default project, module, variant, serial and appId for all later calls |
| Show the current defaults |
| Clear all defaults, or only the listed keys |
Build, test and quality
Tool | Description |
| Build an APK; returns compact |
| Build, install and launch in one call |
| Run JVM unit tests with a parsed pass/fail summary |
| Run instrumented tests on a device |
| Run Android Lint and summarize the report |
| Run |
| Locate the most recent APK without building |
| Stop the project's Gradle daemons |
| Run Kover/Jacoco and summarize line coverage per package |
| Show covered/uncovered lines of one source file |
Devices and emulators
Tool | Description |
| List devices with serial, state, model, Android version, API level |
| List AVDs and which are running |
| Boot an AVD and wait for full boot; returns the serial |
| Shut down a running emulator |
| Create an AVD from an installed system image |
| Delete an AVD |
| Set GPS location |
| Switch dark/light mode |
| Clean status bar for screenshots |
App lifecycle
Tool | Description |
| Install an APK ( |
| Launch by application id, resolving the launcher activity |
| Force-stop a running app |
| Uninstall an app |
| Reset an app to fresh-install state |
| Version, target/min SDK, install path, running PID |
UI automation
Tool | Description |
| Dump the UI as named elements with exact tap coordinates |
| Capture the screen; |
| Tap element #N from the last annotated screenshot |
| Tap at pixels or screen percentages |
| Scroll in a direction with a safe computed swipe |
| Swipe between two points |
| Drag from one point to another |
| Long-press, holding 1000 ms |
| Type into the focused field, waiting for the keyboard |
| Press BACK, HOME, ENTER, DPAD_*, or any keycode |
| Press several keys in order |
| Poll until an element appears |
Logs and recording
Tool | Description |
| One-shot logcat dump, filterable by app and tag |
| Crash buffer: Java exceptions, native crashes, ANRs |
| Start background logcat capture to a file |
| Stop capture and return the file plus the last lines |
| Start screen recording (max 3 minutes) |
| Stop recording and pull the MP4 |
Scaffolding
Tool | Description |
| Create a minimal Compose app that builds out of the box |
Tapping accurately
Everything adb-side shares one coordinate space (device pixels), but MCP clients often display screenshots scaled — estimating pixel positions by eye from the image sends taps to the wrong place. Three safe ways to hit the target:
snapshot_ui— returns exact device-pixel centers for every named element. Preferred.screenshot { annotate: true }+tap_element { element: N }— tap by the number drawn on the image; the mapping is resolved on the original PNG, so client-side scaling cannot distort it.tap { xPct, yPct }— screen percentages (0-1), also available on long_press/swipe/drag. Resolution-independent.
Raw tap { x, y } still works when you have real pixel coordinates.
Reliability
Every tool was exercised against real emulators and real projects — happy paths and corner cases — before release; the scenario-by-scenario evidence is in qa-results.md. Some of the details that keep agent flows from misfiring:
type_textwaits for the soft keyboard before injecting (typing right after focusing a field silently drops the first characters otherwise).scrollcomputes a long, slow swipe from the screen size — short fast swipes get ignored by some lists.long_pressholds 1000 ms, which launchers require.Taps outside the screen are rejected with the actual screen size instead of silently doing nothing.
Text-heavy screens (e-book WebViews and the like) are capped and searchable with
snapshot_ui { filter }instead of flooding the context.Build/test/device failures come back as short, actionable messages with the next tool to call.
Optional extras
Google's Android CLI enables
screenshot { annotate: true }.doctorprints the one-line installer for your OS.The ADBKeyboard IME enables non-ASCII
type_text(adb alone is ASCII-only). Install its APK once; the server uses it automatically.
Development
npm install
npm test # unit tests (no real processes spawned)
npm run dev # run the server from source
npm run build # compile to dist/License
MIT — see LICENSE.
Conceptually inspired by XcodeBuildMCP; independent implementation built around the Android toolchain.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables AI agents to control Android devices and emulators through direct UI interaction, allowing app navigation, automated testing, and real-world task execution via ADB without computer vision or scripts.1MIT
- AlicenseAqualityDmaintenanceEnables AI agents to fully control Android devices through over 30 tools for app management, UI automation, and vision-based analysis via ADB. It supports multi-device management, action recording, and smart execution strategies ranging from UI hierarchy parsing to coordinate-based interaction.37163MIT
- AlicenseBqualityBmaintenanceEnables AI assistants to interact with Android devices and emulators via ADB, providing tools for screenshots, UI inspection, touch and text input, app management, and device control.4210017MIT
- AlicenseAqualityCmaintenanceEnables an agent to inspect and interact with Android emulators or physical devices via ADB, capturing UI snapshots, tapping nodes, typing text, and reading app logs.10MIT
Related MCP Connectors
Build, validate, and deploy multi-agent AI solutions from any AI environment.
Control Android TV from any AI. 38 MCP tools: playback, recap, recommend, smart-home, schedules.
Turns any agent into a full agentic application — branded, interactive screens generated at runtime.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dev-jackson/androidbuild-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server