APK-MCP
Provides tools for Android APK reverse engineering, including APK inspection, metadata analysis, code and Smali search, resource and manifest editing, rebuilding, signing, verification, and ADB device testing.
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.
APK-MCP — Windows-First APK Reverse Engineering MCP Server

APK-MCP provides AI agents (Claude Desktop, Cursor, VSCode MCP extensions, etc.) with a unified Model Context Protocol (MCP) interface for Android APK reverse engineering, metadata analysis, Smali/resource editing, rebuilding, alignment, signing, verification, and ADB device testing.
No manual launching of JADX, Apktool, APKEditor, ADB, or signing utilities is required.
Quick Start (Windows One-Command Setup)
git clone https://github.com/tkb-bit/APK-MCP.git
cd APK-MCP
.\install.ps1Or using the CLI launcher:
.\apk-mcp.ps1 setupRelated MCP server: DeepADB
🤖 AI Agent Master Prompt (Copy & Paste to your AI Client)
Paste this prompt to your AI Client (Claude, Cursor, Cline, ChatGPT) once connected to APK-MCP so it automatically understands your environment and toolset:
You are connected to APK-MCP (Android APK Reverse Engineering & Modification Server).
YOUR AUTOMATED WORKFLOW & ZERO-FRICTION EXECUTION INSTRUCTIONS:
1. Fast APK Discovery & Single-Call Goal Analysis:
- When the user mentions an APK name and a goal (e.g., "analyze subwaysurfers.apk for currency" or "find api keys in app-debug.apk"), AUTOMATICALLY call `apk_quick_analyze(apk_path="<apk_name>", goal="<goal>", mode="fast")` FIRST.
- Do NOT search C:\, D:\, or disk drives manually. All APKs reside in `%USERPROFILE%\.apk-mcp\apks\`.
2. Goal-Driven Preferred Tools (Reduces 20 tool calls into 1-2 calls):
- Single Entry Analysis: `apk_quick_analyze(apk_path, goal="currency|security|storage|network|overview", mode="fast"|"standard"|"deep")`
- Target Investigation: `apk_investigate(goal, target="coin")`
- Universal Parallel Search: `apk_search(query="coin", scope="all"|"native"|"il2cpp"|"dex"|"smali"|"resources")`
- Parallel Batch Searches: `apk_search_batch(["coin", "currency", "wallet", "balance"])`
- Engine Detection: `apk_detect_engine()` (Detects Unity IL2CPP, Mono, Flutter, React Native, Unreal, Android Native)
- Persistent Index: `apk_index_build()`, `apk_index_status()` (SHA256 cached analysis)
3. Virtual Device & Live Verification (CRITICAL FOR BUG-FREE MODS):
- Always test patched APKs on the connected Virtual Phone (`VirtualPhone_D`).
- All-in-One Test Run: `device_test_run(package_name="com.kiloo.subwaysurf")` — Installs, launches app, monitors logcat, detects crashes/SIGSEGV, and captures a screenshot!
- Crash Debugging: If an app closes or fails after patching, call `device_crash_log(package_name="...")` immediately to pull FATAL EXCEPTION stack traces, native SIGSEGV errors, or Unity log errors to diagnose and fix the patch.
4. Technology-Specific Execution Rules:
- Unity IL2CPP Games: Call `il2cpp_dump()`, search with `il2cpp_search(query="Coin")`, patch with `native_patch_offset()`, then `rebuild_and_sign()`. Test on Virtual Phone using `device_test_run()`. Do NOT launch Ghidra unless metadata resolution fails!
- Java/Kotlin Android Apps: Use `apk_search(query)` or `code_search_batch()`.
- Native ELF Patching: Use `native_patch_offset(lib_name, offset_hex, hex_bytes)` to patch machine opcodes directly.
5. Guidelines for High-Efficiency Operations:
- Avoid duplicate searches or single-keyword iterations. Use `apk_search_batch` for multiple terms.
- Output signed APKs appear in: `%USERPROFILE%\.apk-mcp\output\`Or get it anytime from the terminal:
python -m apk_mcp.cli promptUser Workflow
Install APK-MCP with
.\install.ps1Connect APK-MCP to your MCP-compatible AI client
Put target
.apkfiles into%USERPROFILE%\.apk-mcp\apks\Tell your AI what to analyze or modify (e.g. "Analyze app.apk and change the app label to My Test App")
AI automatically uses
apk-mcptools lazily and in isolated transactionsThe modified, aligned, signed, and verified APK appears in
%USERPROFILE%\.apk-mcp\output\
Architecture Overview
┌───────────────────────┐
│ AI Agent (MCP) │
└───────────┬───────────┘
│
┌───────────▼───────────┐
│ APK-MCP │
│ Orchestration Server │
└───────────┬───────────┘
│
┌─────────┬───────┼───────┬─────────┐
│ │ │ │ │
JADX Apktool AAPT2 Signer ADBMCP Tools Offered
APK-MCP exposes 40+ granular and high-level tools grouped by category:
Project Tools:
project.create,project.open,project.close,project.status,project.snapshotAPK Inspection:
apk.inspect,apk.metadata,apk.list_files,apk.read_file,apk.extractCode Analysis:
code.search,code.list_classes,code.get_class,code.get_method,code.find_referencesSmali Editing:
smali.search,smali.get_class,smali.get_method,smali.edit_methodManifest Editing:
manifest.get,manifest.permissions,manifest.components,manifest.editResource Management:
resource.list,resource.get,resource.search,resource.edit,resource.replaceBuild & Sign:
build.validate,build_apk,sign.sign,sign.verifyDevice & Debugging:
device.list,device.install,device.launch,device.logcat,device.screenshotHigh-Level Workflows:
analyze_apk,find_feature,modify_app_name,rebuild_and_sign
Documentation
License
MIT License.
This server cannot be deployed
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Package intelligence MCP for AI agents — 22 tools, 19 ecosystems, AGPL SDK, free.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides a one-stop automated solution for Android APK security analysis by integrating tools like JEB, JADX, APKTOOL, FlowDroid, and MobSF into unified MCP standard API interfaces.11-
- AlicenseBqualityAmaintenanceA comprehensive MCP server that enables AI agents to interact with Android devices through Android Debug Bridge (ADB), offering 198 tools for device control, app management, diagnostics, and more.209491 npm20Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables MCP-compatible agents to control an Android device over the network via ADB, providing tools for shell commands, screen capture, UI inspection, file operations, and input simulation.20 npmMIT
- AlicenseBqualityCmaintenanceA comprehensive MCP server for Android Debug Bridge, enabling AI agents to control Android devices through structured tools like launching apps, UI automation, file operations, and log capture.905MIT