# DexSQL

DexSQL lets an AI agent query Android APK and DEX contents with SQL. Use it to trace classes, methods, strings, and call references without leaving your coding client.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 231
- Author: LSPosed
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/LSPosed/dexsql-release
- Updated: 2026-10-18
- HTML: https://affpapa.org/en/nevibecode/mcp/dexsql

## What it does

DexSQL connects an AI agent to APK and DEX analysis over MCP. Queries can locate classes and methods, search strings, and follow call references; the agent can also show Smali for a method it finds. APK parsing happens locally, and the input file stays unchanged.

The server reads DEX directly, and queries can be saved as scripts for reuse. To set it up, add the `install-dexsql` skill with `npx skills add LSPosed/dexsql-release --skill install-dexsql`, then ask the agent to run that skill. It downloads a compatible binary, verifies its SHA-256 checksum, and configures the MCP connection. Manual setup requires choosing a build for your operating system and CPU architecture, then registering the executable’s absolute path.

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- Find methods that reference a log message
- List callers of a method found in an APK
- Search APK contents for classes and methods
- Trace references to a string in DEX files
- Inspect Smali for a matching method

## Example prompts
- Search `app.apk` for classes with this name.
- Find references to this string in `app.apk` and show the methods that call them.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74559
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89433

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
