jadx-mcp-server

by @zinja-coder

Jadx MCP Server

Bridge live JADX-GUI Android APK decompilation to AI assistants for real-time code review, manifest inspection, cross-reference tracing, and debugger analysis. Built in Python with FastMCP, it communicates with the Java JADX-AI-MCP plugin over local stdio or optional HTTP.

Server facts

jadx-mcp-server

GitHub stars

859

Last commit

Oct 19, 2026

Runtime

python

License

Apache-2.0

Tech

Runtime
python
Transports
stdiohttp
Remote access
No
Authentication
None (localhost / trusted network only)

Activity

GitHub stars
859
Last commit
Data as of

Tags

  • Mcp Servers
  • Python
  • Reverse Engineering
  • ai
  • android hacking
  • android reverse engineering
  • application security
  • llm
  • mcp
  • mcp server
  • mobile security
  • model context protocol
  • model context protocol server
  • vapt

Overview

Mobile security researchers looking up jadx mcp setup want LLMs to inspect decompiled Android APKs interactively instead of manually pasting massive Java or Smali files into chat. This standalone Apache-2.0 Python server (built with FastMCP and `httpx`) acts as the MCP layer paired with the Java `jadx-ai-mcp` plugin running inside `jadx-gui`. When an assistant invokes a tool, `jadx-mcp-server` sends an HTTP request to the plugin on `127.0.0.1:8650` by default, pulls live decompiled classes, Android manifests, `strings.xml`, cross-references, or active debugger state, and strips bulky Kotlin `@Metadata`/`@DebugMetadata` annotations by default (`slim=True`, saving 25%–50% of Kotlin output while preserving exact line numbers).

Tested primarily with Claude Desktop over stdio, it also supports HTTP mode (`uv run jadx_mcp_server.py --http`, listening on `127.0.0.1:8651`) plus `--jadx-host` and `--jadx-port` flags for WSL, Docker, or remote VM setups, alongside an `examples/openai_compatible_client.py` adapter for OpenAI, OpenRouter, LiteLLM, vLLM, and Ollama models. No API keys are needed between the server and plugin, so avoid binding `--host 0.0.0.0` on untrusted networks—the HTTP transport carries no authentication or TLS and permits code reading, renaming, and comment injection.

Install & configure

Requirements

  • Java 11+ and `jadx-gui` with the companion `jadx-ai-mcp` plugin JAR installed from GitHub releases
  • Python 3.10+ and `uv` to run `jadx_mcp_server.py` (FastMCP + `httpx`)
  • Authorized APK target loaded in `jadx-gui` and an MCP client (tested on Claude Desktop) or OpenAI-compatible client adapter
Documented launch / install command
uv run jadx_mcp_server.py --http

Install the companion `jadx-ai-mcp` plugin into JADX-GUI (listens on `127.0.0.1:8650`), then run `jadx-mcp-server` over stdio or launch HTTP mode via `uv run jadx_mcp_server.py --http` (default `127.0.0.1:8651`). Use `--jadx-host` / `--jadx-port` when JADX-GUI runs on another machine.

Tools

Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.

ToolWhat it does
fetch_current_classRetrieves the name and decompiled source code of the class currently selected in JADX-GUI (Kotlin metadata stripped by default).
get_selected_textReturns the exact snippet currently highlighted by the analyst inside JADX-GUI.
get_all_classesEnumerates every class loaded in the active JADX project.
get_class_sourceFetches full decompiled source for a named class, with optional `with_line_numbers=True` for line-anchored comments.
get_method_by_nameExtracts the decompiled implementation of a specific method.
search_method_by_nameFinds matching method definitions across all classes in the APK.
search_classes_by_keywordSearches decompiled class source for a target keyword with paginated results.
get_smali_of_classRetrieves low-level Smali bytecode representation for a specified class.
get_main_activity_classFetches the main launcher activity declared in `AndroidManifest.xml`.
get_main_application_classes_codeRetrieves source code for application classes belonging to the manifest package name.
get_android_manifestReturns the complete decoded `AndroidManifest.xml` file for permission and component auditing.
get_manifest_componentExtracts a single targeted manifest component instead of dumping the entire manifest.
get_stringsReads the application's `strings.xml` resource entries.
get_resource_fileFetches the contents of a specific APK resource file discovered via `get_all_resource_file_names`.
rename_variableRenames an obfuscated variable within a method directly inside the JADX project.
add_commentAttaches, updates, or clears persistent analysis comments on classes, methods, fields, or exact line numbers in JADX-GUI.
debug_get_stack_framesPulls active stack frames from the live JADX debugger session.
debug_get_variablesInspects runtime variable states from the JADX debugger to trace execution and security issues.
xrefs_to_classFinds paginated class-level and method-level cross-references pointing to a target class.
xrefs_to_methodLocates paginated callers and override-related cross-references for a target method.

Use cases

  • Audit `AndroidManifest.xml`, exported components, and permissions in authorized Android VAPT engagements directly from Claude.
  • Deobfuscate unfamiliar APK classes by tracing cross-references (`xrefs_to_class`, `xrefs_to_method`), renaming variables, and persisting line comments back into JADX-GUI.
  • Analyze live JADX debugger stack frames, threads, and variable values to map runtime execution flows and spot insecure API usage.
  • Connect local Ollama, vLLM, or OpenRouter models to JADX via the bundled `examples/openai_compatible_client.py` HTTP adapter.

Strengths

  • Exposes deep live JADX-GUI integration spanning Java source, Smali, manifests, resources, xrefs, variable renaming, persistent comments, and debugger state.
  • Strips Kotlin `@Metadata`/`@DebugMetadata` by default (`slim=True`), cutting 25%–50% of noisy Kotlin output without breaking line numbers.
  • Separates `--host`/`--port` from `--jadx-host`/`--jadx-port`, enabling split WSL, Docker, or remote-VM reverse-engineering setups.
  • Includes a reference OpenAI-compatible client script with `--max-steps` and `--max-tool-chars` bounds for non-MCP model providers.

Limitations

  • Requires running a companion Java plugin (`jadx-ai-mcp`) inside `jadx-gui`; the Python MCP server cannot decompile APKs standalone.
  • HTTP transport (`--http`) has no built-in authentication or TLS, creating severe exposure if bound to `0.0.0.0` outside an isolated network or SSH tunnel.
  • Tested primarily on Claude Desktop; the README notes early-stage development caveats and future roadmap items such as Docker packaging and React Native Hermes support.

Frequently asked questions

You need both the Java `jadx-ai-mcp` plugin running inside `jadx-gui` and this Python `jadx-mcp-server` package. The MCP server forwards tool calls over local HTTP to the JADX plugin (default `127.0.0.1:8650`), so JADX-GUI must be open with the plugin active during analysis.

Related MCP servers