JADX MCP
Set up JADX-AI-MCP and jadx-mcp-server with Claude Code or OpenCode on Abliterator, then review an APK's manifest, exported components and hardcoded secrets.
JADX MCP is a JADX-GUI plugin plus a Python MCP server that let an AI client read an APK's decompiled code, manifest and resources. zinja-coder's JADX-AI-MCP 6.5.0 exposes 34 tools over stdio: add it to Claude Code or OpenCode, point the client at Abliterator and pick deepseek-v4.1-flash-abliterated or kimi-k3.1-pro-abliterated. Block inbound port 8650 first; the 6.5.0 plugin listens on every interface.
What a JADX MCP server does
A JADX MCP server lets an AI client read an Android app through JADX, the open-source DEX-to-Java decompiler. The model calls tools that return the decoded AndroidManifest.xml, the exported components, decompiled classes, smali, string resources and cross-references, and it can rename symbols and add comments in the JADX project. The most used is JADX-AI-MCP by zinja-coder, a JADX-GUI plugin paired with a Python jadx-mcp-server. These are the main projects, from their repositories (checked 2026-12-03):
| Server | Stars | Transport | Tools | Needs | License | Latest | Maintained |
|---|---|---|---|---|---|---|---|
| zinja-coder/jadx-ai-mcp plugin with jadx-mcp-server | 3,072 and 865 | stdio; streamable HTTP with --http |
34 | JADX-GUI 1.5.1+, Java 11+, Python 3.10+ | Apache-2.0 | v6.5.0, 2026-10-19 | Yes |
| 1013503897/jadx-headless-mcp | 195 | stdio | About 26, per the README | JDK 17+; no GUI, built on jadx-core | Apache-2.0 (LICENSE file) | v0.8.0, 2026-10-19 | Yes; last commit 2026-10-30 |
| mobilehackinglab/jadx-mcp-plugin | 106 | stdio, through a Python adapter | 13 | JADX-GUI, Python | No license file | v1.5.1, 2026-02-04 | Last commit 2026-02-04 |
- Tool counts come from the source: the
@mcp.toolfunctions in jadx-mcp-server'sjadx_mcp_server.pyand mobilehackinglab'sfastmcp_adapter.py, and jadx-headless-mcp's README. - jadx-headless-mcp has no plugin and no Python: one JVM process loads the APK with
load_apkand answers over stdio. Use it for scripted or CI review where nobody looks at a GUI. - JADX itself has no built-in AI or MCP support; its README lists the GUI, the command-line decompiler and a plugin system.
This guide uses JADX-AI-MCP 6.5.0:
- It is the most starred, with more than 15 times the stars of the next project, and Google's AI overview for "jadx mcp" describes it.
- Its 34 tools cover a security review of an app:
get_android_manifest,get_manifest_componentwith anonly_exportedfilter,get_strings,get_resource_file,search_classes_by_keyword,get_class_sourceand theget_xrefs_to_*tools. - It speaks stdio by default, so Claude Code and OpenCode start the server themselves.
- It works on what you see. The plugin reads the project open in JADX-GUI, so you can check each claim against the decompiled code on screen.
One security problem in 6.5.0: the plugin's HTTP server on port 8650 listens on every network interface with no authentication, although its log line says 127.0.0.1 (issue #129). A fix that binds loopback by default was merged on December 1, 2026 (PR #131) but is not in a release yet, and the README on the default branch already describes the fixed behavior. Until a release ships it, block inbound connections to port 8650, as the install steps below do.
This guide follows the JADX-AI-MCP plugin release v6.5.0 (commit 9f4fce6) and jadx-mcp-server at commit a8e5b7d, the server code released as 6.5.0, checked 2026-12-03. The configuration was verified against that source and the Claude Code and OpenCode docs linked below. It was not run against Abliterator.
Only for systems you own or have written permission to test. Review your own app or an app built for training, respect each app's license and the law where you are, and work in an isolated VM.
How the server reaches a model
An MCP server has no model of its own; the MCP client brings one. With JADX-AI-MCP the chain has four parts:
- The JADX-AI-MCP plugin runs inside JADX-GUI and serves the open project over HTTP on port 8650.
- jadx-mcp-server, a Python FastMCP server, turns those HTTP calls into MCP tools. It looks for the plugin at
127.0.0.1:8650unless you pass--jadx-hostor--jadx-port. - The MCP client, Claude Code or OpenCode here, starts jadx-mcp-server over stdio, gives its tools to the model and runs the calls the model asks for.
- The model is Abliterator. Claude Code reaches it through the Anthropic Messages API at
https://abliterator.ai; OpenCode through the OpenAI-compatible API athttps://abliterator.ai/v1. Both send the tools as native tool calls, which both models support (tool calling).
The project README shows configuration for Claude Desktop, Cherry Studio and LM Studio. This guide uses Claude Code and OpenCode because both accept a custom model endpoint.
Before you start
- An isolated Linux VM that holds JADX, the MCP client and the APKs, with snapshots. The examples use Ubuntu or Debian commands.
- JADX 1.5.7 from the release page. The plugin needs 1.5.1 or later, and JADX needs 64-bit Java 11 or later unless you use a
with-jrebundle. - Python 3.10 or later and uv, from the project's requirements.
- Claude Code or OpenCode, with an Abliterator key from /keys. Create a key for this VM only, with a spend limit (authentication). New accounts get $10 of credit.
Install JADX-AI-MCP 6.5.0
First block inbound connections in the VM, so the 6.5.0 plugin cannot be reached from the network. These ufw rules deny every inbound connection and keep outbound ones:
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw enable
Download the plugin and check its SHA-256, which is published in the v6.5.0 release notes:
cd ~
curl -fLO https://github.com/zinja-coder/jadx-ai-mcp/releases/download/v6.5.0/jadx-ai-mcp-6.5.0.jar
echo "adff61083c63b6cd45bf828ed34b00ae212ba2ac35785593645504955f1cbcca jadx-ai-mcp-6.5.0.jar" | sha256sum -c
Install it with JADX's plugins command, from the bin directory of your JADX download, and check that it is listed:
./jadx plugins --install-jar ~/jadx-ai-mcp-6.5.0.jar
./jadx plugins --list
The README's one-line alternative, jadx plugins --install "github:zinja-coder:jadx-ai-mcp", installs whatever the latest release is. Start jadx-gui, open an APK, and the plugin starts its server. Plugins > JADX-AI-MCP > Status should report it running on port 8650; ss -tlnp | grep 8650 shows which address it listens on.
You do not start jadx-mcp-server yourself: the MCP client runs it with uvx. The commands below pin it to commit a8e5b7d, because the README's uv tool install git+https://github.com/zinja-coder/jadx-mcp-server installs whatever the default branch holds. The release also ships the server as jadx-mcp-server-6.5.0.zip (SHA-256 835d9e7386f9cb57bffb56adb2553a4fa334856b1a6e0a8fe1854112a4a5ffa4), which you run with uv --directory <path> run jadx_mcp_server.py after installing its requirements.txt.
Route 1: Claude Code
Point Claude Code at Abliterator with the variables from the Claude Code guide:
export ANTHROPIC_BASE_URL="https://abliterator.ai"
export ANTHROPIC_AUTH_TOKEN="$ABL_API_KEY"
unset ANTHROPIC_API_KEY
export ANTHROPIC_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_OPUS_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_SONNET_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4.1-flash-abliterated"
export CLAUDE_CODE_SUBAGENT_MODEL="kimi-k3.1-pro-abliterated"
Then add jadx-mcp-server with the claude mcp add syntax from Claude Code's MCP docs. Everything after -- is the command that starts the server:
claude mcp add --transport stdio jadx -- uvx --from "git+https://github.com/zinja-coder/jadx-mcp-server@a8e5b7de4f7d7f9ef0ccea9d063631133105bd34" jadx_mcp_server
claude mcp list
The first start takes longer while uv builds the package; if the connection times out, start Claude Code once with MCP_TIMEOUT=60000. Start the review session without the shell tool and without the rename tools, which a review does not need:
mkdir -p ~/apk-review && cd ~/apk-review
claude --disallowedTools "Bash" "mcp__jadx__rename_class" "mcp__jadx__rename_method" "mcp__jadx__rename_field" "mcp__jadx__rename_package" "mcp__jadx__rename_variable"
Per Claude Code's CLI reference, a bare tool name in --disallowedTools removes that tool from the model's context, and MCP tools are named mcp__<server>__<tool> (permissions). Inside the session, /mcp shows jadx with its tools. Behind a custom ANTHROPIC_BASE_URL, Claude Code defers MCP tools through tool search; v2.1.305 and later retry without it if the endpoint rejects the extra fields, and ENABLE_TOOL_SEARCH=false loads all 34 tools up front.
Route 2: OpenCode
OpenCode reaches Abliterator as an OpenAI-compatible provider, set up as in the OpenCode guide, and starts local MCP servers over stdio. Add the server and permission rules next to the providers block from that guide in opencode.jsonc, in the format of OpenCode's MCP servers and permissions docs:
{
"$schema": "https://opencode.ai/config.json",
"model": "abliterator/deepseek-v4.1-flash-abliterated",
"mcp": {
"servers": {
"jadx": {
"type": "local",
"command": [
"uvx", "--from",
"git+https://github.com/zinja-coder/jadx-mcp-server@a8e5b7de4f7d7f9ef0ccea9d063631133105bd34",
"jadx_mcp_server",
],
"codemode": false,
"timeout": { "startup": 120000 },
},
},
},
"permissions": [
{ "action": "shell", "resource": "*", "effect": "deny" },
{ "action": "jadx_rename_*", "resource": "*", "effect": "deny" },
{ "action": "jadx_add_comment", "resource": "*", "effect": "ask" },
],
}
| Field | Why |
|---|---|
mcp.servers.jadx |
OpenCode's current config puts servers under mcp.servers. Tools appear as jadx_<tool>, such as jadx_get_android_manifest |
codemode: false |
Keeps the tools on the model's native tool list instead of OpenCode's default Code Mode grouping |
timeout.startup |
Milliseconds. Replaces the 30-second default, which the first uvx build can exceed |
permissions |
OpenCode's base policy allows every action, and the last matching rule wins, so these rules deny the shell and the rename tools and ask before each comment |
Run opencode mcp list to check the connection, then start opencode in your review directory.
jadx-mcp-server also ships examples/openai_compatible_client.py, a small client for any OpenAI-compatible endpoint. Start the server with --http --port 9000, the address the client expects by default (http://127.0.0.1:9000/mcp), and run the client with OPENAI_BASE_URL=https://abliterator.ai/v1, OPENAI_API_KEY set to your key and OPENAI_MODEL=deepseek-v4.1-flash-abliterated.
First task: review an app's attack surface
The best first target is a release build of your own app: you know what it should do, so you can judge every finding. To follow the expected results below, use InsecureBankv2, a deliberately vulnerable banking app by Dinesh Shetty, MIT-licensed and listed in OWASP's MASTG app catalog along with others such as DIVA. Download the APK from the repository at a fixed commit and check its hash (computed 2026-12-03):
cd ~/apk-review
curl -fL -o InsecureBankv2.apk https://github.com/dineshshetty/Android-InsecureBankv2/raw/3c8cc3a3ce45ed56d0f58f236b541b41f992e51f/InsecureBankv2.apk
echo "b18af2a0e44d7634bbcdf93664d9c78a2695e050393fcfbb5e8b91f902d194a4 InsecureBankv2.apk" | sha256sum -c
Open it in JADX-GUI and wait for loading to finish. Then send these prompts one at a time. Each names the tools so you can follow what the model calls; the expected results come from the app's source.
1. Read the manifest.
Call get_android_manifest and get_main_activity_class. List the package name, the target SDK, every uses-permission, and application flags such as allowBackup, debuggable and usesCleartextTraffic. Say which permissions the app's features do not obviously need.
Expect package com.android.insecurebankv2, the launcher activity LoginActivity and android:allowBackup="true". The source manifest declares ten permissions, including SEND_SMS, READ_CONTACTS and READ_CALL_LOG next to INTERNET. A banking client that needs SMS and call-log access deserves a question in the report.
2. List the exported components.
Call get_manifest_component with only_exported true for activity, service, receiver and provider. For each exported component, call get_class_source on its class and say what it does, what input it reads from the Intent or URI, and whether it checks who is calling.
Expect four exported activities (PostLogin, DoTransfer, ViewStatement, ChangePassword), the content provider TrackUserContentProvider and the broadcast receiver MyBroadCastReceiver with the action theBroadcast, all with android:exported="true" and no permission. Any other app on the device can start or query them. The fix to recommend is android:exported="false" for components that only the app uses, and a signature-level permission for the rest.
3. Search for hardcoded secrets and URLs.
Call search_classes_by_keyword in package com.android.insecurebankv2 for "key", "secret", "password" and "http://", then get_class_source with with_line_numbers true for each hit. Also call get_strings. List every hardcoded key, credential, URL or flag with its class and line.
search_classes_by_keyword searches decompiled code by default and pages its results 20 at a time. Expect the AES key in CryptoClass (String key = "This is the super secret key 123"), the protocol = "http://" field in DoLogin, and the string resource is_admin set to no, which LoginActivity reads to hide the Create User button. A key in the APK is a key every user has, and a flag in a resource is a setting any user can change.
4. Check the network configuration.
Does the manifest reference a network security config or set usesCleartextTraffic? Given the target SDK, is cleartext HTTP allowed, and which classes send requests over http://?
Android allows cleartext traffic by default for apps that target API level 27 or lower, and blocks it by default from API level 28 (Android docs). The source's build.gradle targets SDK 26 and the manifest sets no network security config, so the http:// requests in DoLogin go out unencrypted.
5. Record the findings.
Add a comment with add_comment on CryptoClass that describes the hardcoded key. Then write a findings table with columns finding, location, severity and fix, using only what the tools returned.
add_comment writes to the JADX project, so the comment shows in JADX-GUI and is saved with the project file. Check each finding against the decompiled code before it goes into a report. A self-built app usually turns up the same kinds of results: a component exported by mistake, an API key in strings.xml or a BuildConfig field, or a debug flag left in a release build.
Text in an APK comes from whoever built it. Class names, strings and comments can be written to read like instructions to the model, so keep the shell tool off, keep the write tools on ask or off, and confirm findings yourself.
Which model to use
Both models support tool calling (tool calling) and a 1,048,576-token context. They refuse far less than the originals: refusals fell from 94% to 1% on DeepSeek V4.1 Flash and from 94% to 3% on Kimi K3.1 Pro (benchmarks).
| Model | Use it for | Notes |
|---|---|---|
deepseek-v4.1-flash-abliterated |
Manifest and component review, string and keyword searches, many small apps | On security suites it stayed within noise of the original: CyberMetric-2000 94.2 → 93.8, InterCode-CTF 94.2 → 95.5, Cybench 98.3 → 96.6 (benchmarks) |
kimi-k3.1-pro-abliterated |
Following data from an exported component through several classes, and long sessions with many tool calls | Terminal-Bench 4.0 went from 66.6 to 62.3 after abliteration, a drop that is plausible but not statistically shown (benchmarks), so try it on an app you know first |
Decompiled classes are large. jadx-mcp-server strips Kotlin compiler metadata from source by default; its 6.5.0 release notes measured that metadata at 30% of the decompiled bytes of one real APK's Kotlin classes. Each turn still resends earlier results. Abliterator caches the repeated prefix automatically and bills it at $0.10 per 1M tokens on deepseek-v4.1-flash-abliterated and $0.40 on kimi-k3.1-pro-abliterated (prompt caching).
Why a hosted model sometimes stops
Hosted frontier models run cyber safeguards that judge each request, and decompiled app code with credentials or exported components in it can trip them even when you are reviewing your own app. The providers say so in their own policies:
- Anthropic. Its Usage Policy, effective November 12, 2026, says it "does not prohibit security research, testing, or tool development conducted on systems you own or operate", and that "encountering a block does not by itself indicate a violation". Its Cyber Verification Program lists vulnerability triage under Defense Access, the tier individuals can apply for on paid plans, and enrolled users "may experience some model refusals and classifier blocks for allowed security work".
- OpenAI. Its Usage Policies, effective November 20, 2026, prohibit "circumventing our safeguards". Its Daybreak Trusted Access program lists secure code review and vulnerability triage among its use cases and says "Some safeguards can still apply after approval, even with Daybreak Red."
If your team works under one of these programs, use it. Abliterator serves models with the refusal behavior removed from the weights, so the review does not depend on a safeguard's judgment of each request. Some uses are always prohibited; see the acceptable use policy. More on each provider: Claude refused and ChatGPT refused.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
httpx.ConnectError: [Errno 111] Connection refused |
JADX-GUI is closed, the plugin is not running, or the port does not match | Open JADX-GUI with an APK, check Plugins > JADX-AI-MCP > Status, and pass --jadx-port if you changed the port |
Tools return NO_APK_LOADED |
No project is open in JADX-GUI | Open the APK in JADX-GUI before you start the session |
| The plugin is missing from the Plugins menu | JADX is older than 1.5.1, or the jar is damaged | Update JADX, delete ~/.jadx/plugins/jadx-ai-mcp* and install the jar again |
ModuleNotFoundError: No module named 'src' |
An installed copy built before 6.5.0 left out the src/ package (issue #67) |
Use commit a8e5b7d or later, as in the commands above |
BindException: Address already in use |
Another program, or a second JADX window, holds port 8650 | Set another port in the plugin menu and pass the same --jadx-port to the server |
| A tool call times out on a large APK | The result is too big for one call | Ask for smaller pages with count, or one class at a time |
claude mcp list shows ✘ Failed to connect, or OpenCode lists the server as failed |
uvx is not on the client's PATH, Python is older than 3.10, or the first build timed out |
Run the uvx ... command in a terminal to see its error, and raise the startup timeout |
404 Model "claude-..." is not available on abliterator |
A Claude Code model alias is not pinned | Set all the model variables in Route 1 |
Frequently asked questions
What is JADX MCP?
JADX MCP usually means JADX-AI-MCP, a plugin for the JADX Android decompiler, used with its companion jadx-mcp-server. The plugin serves the APK open in JADX-GUI over local HTTP, and the server turns that into 34 MCP tools for reading classes, the manifest, resources and cross-references. Both are by zinja-coder and licensed Apache-2.0.
Where is the JADX MCP server on GitHub?
The plugin is github.com/zinja-coder/jadx-ai-mcp, with 3,072 stars, and the MCP server is github.com/zinja-coder/jadx-mcp-server, with 865 (checked 2026-12-03). The plugin repository's releases ship both: jadx-ai-mcp-<version>.jar and jadx-mcp-server-<version>.zip.
Does JADX MCP need JADX-GUI?
JADX-AI-MCP does: the plugin runs inside JADX-GUI and works on the APK you have open there. If you need a server without the GUI, jadx-headless-mcp runs on jadx-core in one JVM process and speaks MCP over stdio.
Can JADX MCP use a model other than Claude?
Yes. The server has no model of its own; the MCP client supplies it. Claude Code and OpenCode both accept a custom endpoint, and jadx-mcp-server also ships an example client for any OpenAI-compatible API, so each can run on kimi-k3.1-pro-abliterated or deepseek-v4.1-flash-abliterated through Abliterator.