Android MCP Inspector
Inspects Android APKs for 16 KB page-size alignment, checking ELF segment alignment and ZIP layout, and traces native shared libraries to candidate AARs using manifest or provenance inputs. Returns structured reports with exit codes, alignment status, and library origin attribution.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Android MCP Inspector
A local MCP server that checks Android APKs for 16 KB alignment and traces native libraries to candidate AARs. The stdio tool inspect_apk_16kb checks the ELF segments and ZIP layout of an APK you own or are authorized to inspect.
Set up
Use Python 3.11 or newer. Run these commands from the repository root with a virtual environment outside the checkout.
Windows (PowerShell)
$inspectorEnv = Join-Path $env:TEMP 'android-mcp-inspector-venv'
python -m venv $inspectorEnv
$inspectorPython = Join-Path $inspectorEnv 'Scripts/python.exe'
& $inspectorPython -m pip install -r requirements.txt
& $inspectorPython -B -m unittest discover -s tests -vUbuntu
python3 -m venv ~/.venvs/android-mcp-inspector
~/.venvs/android-mcp-inspector/bin/python -m pip install -r requirements.txt
~/.venvs/android-mcp-inspector/bin/python -B -m unittest discover -s tests -vThe smoke tests launch the server using the official Python MCP client over stdio and compare complete responses with direct CLI runs on synthetic fixtures.
Related MCP server: EvidenceForge
Connect a client
Configure a local stdio server with the virtual environment's Python executable as its command and server.py as its only argument.
VS Code editor-managed MCP
Open the repository folder in VS Code and add .vscode/mcp.json with the following content. Replace command with the full path to your virtual environment's Python executable.
{
"servers": {
"android-mcp-inspector": {
"type": "stdio",
"command": "C:/path/to/android-mcp-inspector-venv/Scripts/python.exe",
"args": ["${workspaceFolder}/server.py"]
}
}
}Start android-mcp-inspector from MCP: List Servers in the Command Palette. See Microsoft's MCP configuration reference for editor-managed setup and Copilot forwarding.
Clients that use mcpServers
Use absolute paths for both the Python executable and server.py.
{
"mcpServers": {
"android-mcp-inspector": {
"command": "C:/path/to/android-mcp-inspector-venv/Scripts/python.exe",
"args": ["C:/path/to/android-mcp-inspector/server.py"]
}
}
}Try the synthetic example
From the repository root, generate the archives in a new directory using Python 3.11 or newer. The generator runs offline with the standard library and the bundled test fixture.
python -B examples/make_trial.py 'C:/Temp/Android MCP Trial'The example creates trial.apk, device.aar, decoy.aar, and aar-manifest.json. Both AARs contain jni/arm64-v8a/libdevice.so. Only device.aar contains the same bytes as the APK entry. The synthetic archives are for inspection only.
Call inspect_apk_16kb with this input, replacing the directory in both paths if you used a different location.
{
"apk_path": "C:/Temp/Android MCP Trial/trial.apk",
"aar_manifest": "C:/Temp/Android MCP Trial/aar-manifest.json"
}The response includes these values.
Field | Expected value |
|
|
|
|
|
|
|
|
|
|
Call the tool
Pass the APK's absolute path on the machine that runs the server. Supply the two optional inputs from the same build as the APK. If you provide native_provenance, also provide aar_manifest.
{
"apk_path": "C:/Android builds/app-debug.apk",
"aar_manifest": "C:/Android builds/resolved aars.json",
"native_provenance": "C:/Android builds/native provenance.json"
}The structured response contains exit_code and report. The checker supplies the exit code and the full JSON report. All four checker outcomes are returned as tool results.
Exit code | Report status | Meaning |
0 |
| Checked libraries pass the applicable alignment checks. |
1 |
| At least one checked library fails ELF or ZIP alignment. |
2 |
| The checker rejected the APK or an accompanying input. |
3 |
| No arm64-v8a or x86_64 shared libraries were found, and all applicable ZIP alignment checks passed. |
When attribution is available, the report preserves single_candidate, multiple_candidates, or unknown and identifies the evidence method when the checker reports one.
Upstream code
The bundled checker and its CLI tests come from Android SDK Toolkit v0.8.0. The included MIT license covers these files. To run the upstream CLI suite, use python -B -m unittest discover -s vendor/apk-page-size-check/tests -v.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Deterministic PASS/FAIL deliverable checks with objective evidence and repair instructions.
21Remote MCP for Android CLI agent build gate, structured receipts, audit logs, and reviewer-ready evi
Check agent replies, lint policies, export regression tests and verify caller-trusted proof bundles.
Check AI work against requirements and return structured verdicts, findings, and repair steps.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables local-first static and optional controlled dynamic analysis of Android APK artifacts, with provenance-aware downloads, Markdown reports, and structured security findings via MCP stdio tools.9-
- AlicenseNot gradedqualityCmaintenanceEnables read-only, allowlisted-root scanning and deterministic comparison of binary and application artifacts, producing JSON/HTML evidence reports without executing the targets.MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to inspect Android APKs, device state, runtime behavior, resources, and native libraries locally, returning findings with supporting evidence, coverage, limitations, and unknowns.4MIT
- AlicenseBqualityCmaintenanceEnables an AI runtime to perform authorized static analysis of Android APKs over local MCP stdio, inspecting inventories, DEX/ELF headers and manifest details while decompiling with verified, checksum-pinned JADX and Apktool engines it can bootstrap itself. Reports results as evidence-backed observations, with literal text search, two-APK comparison and Markdown summaries, without ever executing the target APK.12MIT