# DexAndroid MCP server

> Enables AI clients to perform Android reverse-engineering, including APK unpacking, smali decompilation, and packer detection.

- Repository: https://github.com/TimeCyber/DexAndroid
- Page: https://hostedmcp.org/servers/timecyber/dexandroid
- Transport: —
- Stars: 2
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `ADB_PATH` | no | no |  |
| `DEX_OUT_DIR` | no | no |  |

## Tools (15)

- `detect_packer`
- `pull_apk`
- `static_unpack`
- `blackdex_prepare`
- `blackdex_pull`
- `frida_prepare`
- `frida_unpack`
- `dex_to_smali`
- `smali_list_classes`
- `smali_read_class`
- `smali_search`
- `find_app_entry`
- `apk_decode`
- `apk_repack`
- `smali_patch`

## FAQ

### What should I do if list_devices returns empty?

Check your USB debugging settings and run 'adb devices'. If you have multiple devices connected, pass the specific serial number.

### Why are there no business classes after a static unpack?

The application is likely protected by a packer; you should use BlackDex or Frida instead.

### How do I fix a dex_to_smali failure?

Ensure Java is installed and place the baksmali jar in the tools/ directory or specify the path using the BAKSMALI_JAR environment variable.

### Where are the unpacked files saved?

Files are saved to the 'unpack-output/' directory by default, or the directory specified by the DEX_OUT_DIR environment variable.
