An MCP (Model Context Protocol) server for integration with the JEB Pro reverse-engineering tool. It allows AI assistants to interact with JEB Pro to analyze Android APK files.
This project is a bridge between AI assistants (like Cline) and JEB Pro, a professional tool for analyzing and decompiling mobile applications. It enables AI to automate the process of analyzing APK files.
-
Install dependencies:
cd jeb-mcp && pip install -e .
-
Copy the script to JEB Pro:
copy jeb-mcp\src\jeb_mcp\MCP.py [JEB_PRO_DIR]\scripts\samples\
-
Run the script in JEB Pro:
- Open JEB Pro
File -> Scripts -> Registered(or dragMCP.pyinto JEB Pro window)- Select
MCP.pyand click "Run" - Verify these messages appear in console (
View -> Console):[I] Initializing Jython, please wait... [MCP] Plugin loaded [MCP] Plugin running [MCP] Server started at http://localhost:16161
-
Start the MCP server:
cd jeb-mcp/src/jeb_mcp && python server.py
-
Configure your AI assistant using
sample_cline_mcp_settings.json -
Restart MCP server in Cursor:
Ctrl+Shift+Pβ "MCP: Restart Server"
β Done! Now AI can analyze APK files via JEB Pro.
- JEB Pro - installed and licensed (tested on version 5.30.0)
- Python 3.7+ - for the MCP server
- uv - recommended Python package manager (optional)
β
JEB Pro 5.30.0 - fully supported
β
JEB Pro 5.x - compatible
git clone <repository-url>
cd jebmcp/jeb-mcp
pip install -e .
# Or with uv: uv installCopy MCP.py to JEB Pro's scripts folder:
[JEB_PRO_DIR]\scripts\samples\MCP.py
Methods to run the script:
- Recommended: Drag
MCP.pyfile into JEB Pro window File -> Scripts -> Registeredβ SelectMCP.pyβ RunFile -> Scripts -> Run Script...β Browse toMCP.py
Check JEB Pro console (View -> Console, "Output" tab) for:
[I] Initializing Jython, please wait...
[MCP] Plugin loaded
[MCP] Plugin running
[MCP] Server started at http://localhost:16161
cd jeb-mcp/src/jeb_mcp
python server.py
# Or: uv --directory jeb-mcp/src/jeb_mcp run server.pyUse configuration from sample_cline_mcp_settings.json:
{
"mcpServers": {
"jeb": {
"command": "cmd",
"args": ["/c", "uv", "--directory", "path\\to\\jeb-mcp\\src\\jeb_mcp", "run", "server.py"],
"timeout": 1800,
"disabled": false,
"autoApprove": ["get_manifest", "get_method_callers", "get_class_decompiled_code", "get_method_decompiled_code", "check_connection", "ping", "get_method_overrides"]
}
}
}- Restart MCP server in Cursor:
Ctrl+Shift+Pβ "MCP: Restart Server" - Load APK in JEB Pro before analysis
- Test connection through AI assistant
- Begin analysis using full file paths
ping()- Check connection with JEB Procheck_connection()- Verify plugin is running
get_manifest(filepath)- Get APK manifestget_class_decompiled_code(filepath, class_signature)- Decompile entire classget_method_decompiled_code(filepath, method_signature)- Decompile specific methodget_method_callers(filepath, method_signature)- Find method call locationsget_method_overrides(filepath, method_signature)- Find method overrides
Use Java-style internal addresses:
- Package:
Lcom/example/ - Class:
Lcom/example/MyClass; - Method:
Lcom/example/MyClass;->myMethod(Ljava/lang/String;)V - Field:
Lcom/example/MyClass;->myField:I
# Check connection
status = check_connection()
# Get manifest
manifest = get_manifest("/path/to/app.apk")
# Decompile class
code = get_class_decompiled_code("/path/to/app.apk", "Lcom/example/MainActivity;")
# Find method callers
callers = get_method_callers("/path/to/app.apk", "Lcom/example/Utils;->encrypt(Ljava/lang/String;)Ljava/lang/String;")- Script not found: Use drag-and-drop or
File -> Scripts -> Run Script... - Script terminates: Check JEB Pro console for errors, ensure port 16161 is free
- No output: Check
View -> Consoleβ "Output" tab
- Connection failed: Ensure JEB Pro and script are running, port 16161 is free
- Plugin not found: Restart script in JEB Pro, verify console messages
- Method/Class not found: Check signature format, ensure APK is loaded in JEB Pro
- File not found: Use full absolute paths
pip install --upgrade fastmcp # Or: uv syncChange log level in server.py for debugging:
mcp = FastMCP("github.com/flankerhqd/jeb-pro-mcp", log_level="DEBUG")Based on ida-pro-mcp architecture.
Tested on:
- JEB Pro 5.30.0.202506111623
- Windows 10/11
- Python 3.7+
MIT license from ida-pro-mcp.
