Skip to content
MCP server
Registry

androidbuild-mcp MCP Server

Build, deploy, drive and debug Android apps: Gradle, emulators, adb, logcat, UI automation

androidbuild-mcp scores 60 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 40 tools. Filed under Uncategorized. GitHub shows 1 stars. Package registries report about 85 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by dev-jacksonMITTypeScript1 stars
Trust score
60Good
Trust score 60 of 100, Good

Good trust

60 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 60 comes from

22 + 10 + 4 + 10 + 4 + 10 = 60. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance10 / 20

How recently the repository saw a commit or release.

Maintenance: 10 of 20 points.
Popularity4 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 4 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "dev-jackson-androidbuild-mcp": {      "command": "npx",      "args": [        "-y",        "@asjackson/androidbuild-mcp@0.1.1"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools40Tool docs quality grade D

All capabilities

About

AndroidBuildMCP

npm license

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-mcp

Any 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.js

Then ask your agent to run doctor — it checks the SDK, adb, emulator, Java and connected devices, and tells you exactly what is missing.

What your agent can do

  • Build and test — build_app compiles and returns compact file:line compiler errors instead of a thousand lines of Gradle noise. test_app / test_instrumented return 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_run compiles, 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_ui returns the UI as a compact list of named elements with tap coordinates (Compose semantics merged, noise filtered). screenshot returns an image; with annotate: true it 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_ui to 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_project generates 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

ToolDescription
doctorCheck SDK, adb, emulator, avdmanager, Java and connected devices; reports what is missing
discover_projectsFind Android/Gradle projects under a path
list_modulesList modules declared in settings.gradle(.kts)
list_variantsList build variants of a module
get_app_idRead the applicationId of a module
show_gradle_configShow Gradle, AGP, Kotlin and version-catalog entries

Session defaults

ToolDescription
session_set_defaultsSet default project, module, variant, serial and appId for all later calls
session_show_defaultsShow the current defaults
session_clear_defaultsClear all defaults, or only the listed keys

Build, test and quality

ToolDescription
build_appBuild an APK; returns compact file:line compiler errors
build_runBuild, install and launch in one call
test_appRun JVM unit tests with a parsed pass/fail summary
test_instrumentedRun instrumented tests on a device
lintRun Android Lint and summarize the report
cleanRun gradle clean
get_apk_pathLocate the most recent APK without building
stop_gradleStop the project's Gradle daemons
get_coverage_reportRun Kover/Jacoco and summarize line coverage per package
get_file_coverageShow covered/uncovered lines of one source file

Devices and emulators

ToolDescription
list_devicesList devices with serial, state, model, Android version, API level
list_avdsList AVDs and which are running
boot_emulatorBoot an AVD and wait for full boot; returns the serial
kill_emulatorShut down a running emulator
create_avdCreate an AVD from an installed system image
delete_avdDelete an AVD
set_emulator_locationSet GPS location
set_appearanceSwitch dark/light mode
statusbar_demo_modeClean status bar for screenshots

App lifecycle

ToolDescription
install_appInstall an APK (adb install -r)
launch_appLaunch by application id, resolving the launcher activity
stop_appForce-stop a running app
uninstall_appUninstall an app
clear_app_dataReset an app to fresh-install state
get_app_infoVersion, target/min SDK, install path, running PID

UI automation

ToolDescription
snapshot_uiDump the UI as named elements with exact tap coordinates
screenshotCapture the screen; annotate: true draws numbered boxes
tap_elementTap element #N from the last annotated screenshot
tapTap at pixels or screen percentages
scrollScroll in a direction with a safe computed swipe
swipeSwipe between two points
dragDrag from one point to another
long_pressLong-press, holding 1000 ms
type_textType into the focused field, waiting for the keyboard
key_pressPress BACK, HOME, ENTER, DPAD_*, or any keycode
key_sequencePress several keys in order
wait_for_uiPoll until an element appears

Logs and recording

ToolDescription
get_logsOne-shot logcat dump, filterable by app and tag
get_crash_logsCrash buffer: Java exceptions, native crashes, ANRs
start_log_captureStart background logcat capture to a file
stop_log_captureStop capture and return the file plus the last lines
record_video_startStart screen recording (max 3 minutes)
record_video_stopStop recording and pull the MP4

Scaffolding

ToolDescription
scaffold_android_projectCreate 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:

  1. snapshot_ui — returns exact device-pixel centers for every named element. Preferred.
  2. 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.
  3. 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_text waits for the soft keyboard before injecting (typing right after focusing a field silently drops the first characters otherwise).
  • scroll computes a long, slow swipe from the screen size — short fast swipes get ignored by some lists. long_press holds 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 }. doctor prints 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.

Frequently asked questions

What is androidbuild-mcp MCP Server?

Build, deploy, drive and debug Android apps: Gradle, emulators, adb, logcat, UI automation

How do I install androidbuild-mcp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. androidbuild-mcp MCP Server runs locally from the npm package @asjackson/androidbuild-mcp with the command npx -y @asjackson/androidbuild-mcp@0.1.1.

Is androidbuild-mcp MCP Server free and open source?

Yes. androidbuild-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does androidbuild-mcp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for androidbuild-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does androidbuild-mcp MCP Server provide?

androidbuild-mcp MCP Server provides 40 tools, including boot_emulator, build_app, build_run, and clear_app_data. See the full tool list for descriptions and parameters.

How is androidbuild-mcp MCP Server's trust score calculated?

androidbuild-mcp MCP Server scores 60 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server