# Repository Briefing: zinja-coder/jadx-mcp-server
> Source: https://repoforai.com/repo/zinja-coder/jadx-mcp-server (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/zinja-coder/jadx-mcp-server
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: B+ (71/100 · Maintenance 26/35 · Adoption 19/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: MCP, CLI
- **Momentum**: 866 ★ total (+1 24h / +7 7d) · 138 forks
- **Topics**: `ai`, `android-hacking`, `android-reverse-engineering`, `application-security`, `llm`, `mcp`, `mcp-server`, `mcp-servers`, `mobile-security`, `model-context-protocol`, `model-context-protocol-server`, `python`
- **When to Use**: Best for: Android teams reviewing APKs they own or are authorized to inspect, with a reviewer in JADX-GUI and a model retrieving code or resources on demand. Skip if: You need a GUI-free batch decompiler, a read-only multi-tenant service with built-in access controls, or a managed Docker deployment.

## Overview
```text
### Architecture & Core Mechanics
jadx-mcp-server is a Python bridge into an active JADX-GUI session, not a decompiler. The client invokes a FastMCP tool over stdio by default or HTTP when enabled. The server forwards the operation over HTTP to the separate JADX-AI-MCP plugin, whose request handlers read or update the GUI session. The response comes back through the server as an MCP tool result. Switching the client side to stdio does not remove the HTTP connection to the plugin.

The project requires Python 3.10 or later and declares FastMCP >=3.0.2, httpx >=0.28.1, and requests >=2.32.3. Setuptools packages the top-level `jadx_mcp_server.py` module and explicitly includes `src` and its namespace subpackages. The console entry point, `jadx_mcp_server`, targets `jadx_mcp_server:main`. JADX retains responsibility for decompilation; the Python layer adapts its session data and operations to MCP.

### Key Capabilities & Differentiators
Tools can read the GUI selection, enumerate classes, methods, and fields, fetch decompiled source or smali, and page through keyword search results. Android-specific operations include retrieving the manifest or an individual component, resolving the main activity, and inspecting strings and resources. The default `slim=True` on source-returning tools strips Kotlin `@Metadata` and `@DebugMetadata` without changing line numbers. That keeps numbered source usable with line-specific comments. Variable renames and comments change the JADX workspace; they are not an APK rebuild workflow.

Native MCP clients such as Claude connect directly. `examples/openai_compatible_client.py` instead maps MCP tool schemas to function calls for `POST /v1/chat/completions`, with configurable endpoints such as OpenRouter, LiteLLM, vLLM, and Ollama's OpenAI layer. `--list-tools` inspects the offered schemas without invoking a model. `--max-steps` bounds tool rounds, while `--max-tool-chars` truncates individual results in the example adapter; neither is a server-side access control.

### Trade-offs & Limitations
Compared with plain JADX-GUI, the bridge saves manual context transfer: a model can request a specific class, manifest component, or resource while a reviewer stays in the GUI. The cost is a second process, a separately installed plugin, and dependence on whichever app is open in the active session. It is therefore a better fit for interactive review than for unattended APK batch processing. The separate APKTool MCP Server is worth evaluating if the work centers on package resources rather than JADX's decompiled Java and smali views.

The interface is not read-only. Annotation tools can change the workspace, and anyone who can reach an exposed, unauthenticated MCP endpoint can invoke its tools. Keep a human in control of edits and verify security-relevant conclusions against the manifest, smali, or original source rather than treating decompiled output as authoritative. If the model is hosted externally, retrieved source, resource strings, and other sensitive artifacts may leave the workstation even though both JADX endpoints run locally.

### Hardware & Deployment Guide
Run the bridge with Python 3.10+ and a separate JADX-GUI instance with JADX-AI-MCP installed and an APK open. A local HTTP launch is `uv run jadx_mcp_server.py --http`; omit `--http` for a client that launches the bridge over stdio. In HTTP mode, `--host` and `--port` control the MCP listener (default `127.0.0.1:8651`). `--jadx-host` and `--jadx-port` independently control the outbound plugin connection (default `127.0.0.1:8650`). The optional chat-completions adapter has separate dependencies in `examples/requirements.txt`, including the OpenAI SDK.

Keep both endpoints on loopback where practical. The HTTP listener has no built-in authentication or TLS, and the bridge also calls the plugin over unauthenticated HTTP. Use a restricted network or a tunnel for cross-host access rather than exposing either endpoint directly. The bridge and decompiler can stay local, but sending tool results to a remote model makes the overall workflow non-local. The package manifest declares `0.1.0`; no GitHub release is listed, and Docker support remains a roadmap item rather than a supplied deployment path.
```

## Key Capabilities
```text
- Bridge architecture: FastMCP exposes tools while the JADX-AI-MCP plugin handles requests inside JADX-GUI.
- Targeted retrieval: Inspect the current selection, retrieve classes and smali, or page through source keyword matches.
- Kotlin source handling: The default slim output strips Kotlin metadata without shifting line numbers; slim=False returns the raw dump.
- Android artifact coverage: Fetch an entire manifest or one component, list resource files, and retrieve individual resources.
- Model integration: Use a native MCP client or the OpenAI-compatible reference adapter, which can list tool schemas without calling a model.
- Deployment boundary: The MCP HTTP listener defaults to 127.0.0.1:8651; the plugin endpoint defaults to 127.0.0.1:8650 and is configured separately.
```

## Quick Start / Clone
```bash
# Default: MCP server on localhost:8651, connects to JADX plugin on localhost:8650
uv run jadx_mcp_server.py --http
```
