mcp-ldplayer
Provides tools for controlling LDPlayer Android emulator instances and running Android security assessments via ADB, including emulator lifecycle management, APK installation and analysis, device reconnaissance, filesystem inspection, intent fuzzing, and Frida-based instrumentation.
Supports configuring the Android emulator to route traffic through Burp Suite as an interception proxy, including proxy setup/removal and companion SSL bypass and CA certificate installation workflows.
Enables starting and stopping packet capture on the emulator and downloading the resulting pcap file for analysis in Wireshark.
Supports configuring the Android emulator to route traffic through ZAP as an interception proxy, including proxy setup/removal and companion SSL bypass and CA certificate installation workflows.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-ldplayer
MCP Server for Android Pentesting via LDPlayer Emulator
What is this?
A Model Context Protocol (MCP) server that turns LDPlayer Android emulator into a full pentesting workstation. It exposes 38 tools that AI assistants (Claude, Copilot, etc.) can call to control emulators, run ADB commands, and execute Android security assessments — all through natural language.
Zero external dependencies. Pure Python 3.10+ standard library. Just install and run.
Related MCP server: MCP Emulator Controller
Architecture
┌──────────────────────────────────────────────────────────┐
│ AI Assistant (Claude, Copilot) │
│ ▼ MCP Protocol (stdio) │
├──────────────────────────────────────────────────────────┤
│ mcp-ldplayer Server │
│ ┌─────────────┐ ┌──────────────┐ ┌────────────────┐ │
│ │ LD Controller│ │Pentest Toolkit│ │ Frida Scripts │ │
│ │ (ldconsole) │ │ (22 tools) │ │ (6 built-in) │ │
│ └──────┬───────┘ └──────┬───────┘ └────────────────┘ │
│ │ │ │
│ ▼ ▼ │
│ ┌─────────────────────────────┐ │
│ │ LDPlayer 9 (ldconsole) │ │
│ │ + ADB 34.x │ │
│ └──────────┬──────────────────┘ │
│ ▼ │
│ ┌─────────────────────────────┐ │
│ │ Android Emulator Instance │ │
│ │ (ARM/x86, rooted, ADB) │ │
│ └─────────────────────────────┘ │
└──────────────────────────────────────────────────────────┘Features
Emulator Management (9 tools)
Tool | Description |
| List all emulator instances with status/PID |
| Start an instance |
| Stop an instance |
| Restart an instance |
| Create new instance |
| Change CPU, memory, resolution, root, identity |
| Capture screenshot |
| Full instance backup |
| Restore backup |
ADB Commands (7 tools)
Tool | Description |
| Execute any shell command (with optional root) |
| Install APK |
| Pull file from emulator |
| Push file to emulator |
| List installed packages |
| Open app by package name |
| Kill running app |
Pentest Arsenal (22 tools)
Tool | Description |
| Full device reconnaissance (30+ properties) |
| Network scan: interfaces, routes, DNS, connections, ports |
| Port scan from emulator (no nmap needed) |
| Deep APK analysis: permissions, components, risk score |
| Extract APK for local analysis (jadx, apktool) |
| Start packet capture (tcpdump → pcap) |
| Stop capture and download pcap |
| Configure proxy (Burp/mitmproxy/ZAP) with iptables |
| Remove proxy config |
| Inject built-in Frida scripts |
| Inject custom JavaScript Frida scripts |
| SSL Pinning bypass (OkHttp3, TrustManager, WebView, Conscrypt) |
| Root detection bypass (File.exists, Runtime.exec, Build.TAGS) |
| Install CA certificate in system trust store |
| List installed CA certificates |
| Intent fuzzing with XSS, SQLi, path traversal payloads |
| Test deep links extracted from manifest |
| Spoof identity (samsung/pixel/xiaomi/huawei/oneplus) |
| Drozer-style security audit |
| Log capture with sensitive data detection |
| App filesystem analysis (root) |
| GPS location spoofing |
Built-in Frida Scripts
Script | What it does |
| Bypass SSL pinning (TrustManager, OkHttp3, WebView, Conscrypt) |
| Bypass root detection (su checks, Build.TAGS, SystemProperties) |
| Monitor all EditText input events |
| Intercept Cipher encrypt/decrypt + SharedPreferences reads |
| Monitor OkHttp3 requests and URL.openConnection |
| Bypass Debug.isDebuggerConnected and TracerPid checks |
Installation
Prerequisites
Python 3.10+
LDPlayer 9 installed (auto-detected at common paths)
Windows (LDPlayer is Windows-only)
Setup
# Clone
git clone https://github.com/ThiagoFrag/mcp-ldplayer.git
cd mcp-ldplayer
# Install (optional, can run directly)
pip install -e .Configure in VS Code
Add to your .vscode/mcp.json:
{
"mcpServers": {
"pt-ldplayer": {
"command": "python",
"args": ["path/to/mcp-ldplayer/mcp_ldplayer/mcp_server.py"]
}
}
}Or if installed via pip:
{
"mcpServers": {
"pt-ldplayer": {
"command": "mcp-ldplayer"
}
}
}Configure in Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"pt-ldplayer": {
"command": "python",
"args": ["C:/path/to/mcp-ldplayer/mcp_ldplayer/mcp_server.py"]
}
}
}Usage
Via AI Assistant
Once configured, just ask naturally:
"List my LDPlayer instances"
"Run a full security assessment on com.example.app"
"Set up Burp Suite proxy on 10.0.2.2:8080 with SSL bypass"
"Spoof this emulator as a Samsung Galaxy S21"
"Capture network traffic for 60 seconds and download the pcap"
"Fuzz all exported intents of com.target.app"
Via CLI
# List all 38 tools
python -m mcp_ldplayer.mcp_server --list-tools
# Run as MCP server (stdio)
python -m mcp_ldplayer.mcp_server
# Specify LDPlayer path manually
python -m mcp_ldplayer.mcp_server --ldplayer-path "D:\LDPlayer\LDPlayer9"Via Python
from mcp_ldplayer import LDController, PentestToolkit
# Auto-detect LDPlayer
ld = LDController()
# List instances
for instance in ld.list_instances():
print(f"{instance.name}: {instance.status}")
# Pentest toolkit
pt = PentestToolkit(ld)
# Device reconnaissance
recon = pt.device_recon("LDPlayer")
# Security assessment
audit = pt.security_assessment("LDPlayer", "com.target.app")
# SSL bypass
bypass = pt.inject_frida_script("LDPlayer", "ssl_bypass", "com.target.app")Pentest Workflows
Full App Assessment
1. pt_recon → Device info + security posture
2. pt_apk_analyze → Permissions, components, risk
3. pt_security_assessment → Drozer-style audit
4. pt_intent_fuzz → Test exported activities
5. pt_deeplink_test → Test URI schemes
6. pt_logcat → Check for sensitive data leaks
7. pt_filesystem → Analyze app data directoryTraffic Interception
1. pt_proxy_setup → Configure Burp/mitmproxy
2. pt_cert_install → Install CA cert in system store
3. pt_ssl_bypass → Bypass SSL pinning
4. pt_traffic_start → Start packet capture
5. [interact with app]
6. pt_traffic_stop → Download pcap for WiresharkStealth Mode
1. pt_spoof_device → Change IMEI, MAC, model
2. pt_root_bypass → Hide root from apps
3. pt_gps_spoof → Fake location
4. pt_frida_inject anti_debug → Bypass debugger detectionMCP Resources
URI | Description |
| Server status, LDPlayer path, instances |
| Available Frida scripts with previews |
MCP Prompts
Prompt | Description |
| Full pentest workflow for an app |
| Configure interception environment |
| Configure emulator stealth |
Project Structure
mcp-ldplayer/
├── mcp_ldplayer/
│ ├── __init__.py # Package exports
│ ├── ld_controller.py # LDPlayer interface (ldconsole + ADB)
│ ├── pentest_toolkit.py # Pentest arsenal (22 tools)
│ └── mcp_server.py # MCP protocol server (38 tools)
├── frida_scripts/
│ ├── ssl_bypass.js # SSL Pinning bypass
│ ├── root_bypass.js # Root detection bypass
│ ├── keylogger.js # Input monitoring
│ ├── crypto_hook.js # Crypto + SharedPrefs interception
│ ├── network_hook.js # HTTP/HTTPS monitoring
│ └── anti_debug.js # Anti-debug bypass
├── examples/
│ ├── quick_test.py # Quick connectivity test
│ ├── pentest_workflow.py # Full pentest example
│ └── intercept_setup.py # Traffic interception setup
├── tests/
│ ├── test_controller.py # LDController unit tests
│ ├── test_toolkit.py # PentestToolkit unit tests
│ └── test_mcp_protocol.py # MCP protocol compliance tests
├── pyproject.toml
├── requirements.txt
├── LICENSE
└── README.mdLDPlayer Path Auto-Detection
The server searches these paths in order:
C:\LDPlayer\LDPlayer9C:\LDPlayer\LDPlayer4.0C:\Program Files\LDPlayer\LDPlayer9C:\Program Files (x86)\LDPlayer\LDPlayer9%LOCALAPPDATA%\LDPlayer\LDPlayer9D:\LDPlayer\LDPlayer9
Override with --ldplayer-path if installed elsewhere.
Protocol Compliance
Tested against MCP specification 2024-11-05:
Test | Status |
| OK |
| OK |
| OK |
| OK |
| OK |
| OK |
Error handling (-32601, -32603) | OK |
Unknown method rejection | OK |
CLI | OK |
Security Notice
This tool is designed for authorized security testing only. Use responsibly and only on systems you have permission to test. The authors are not responsible for misuse.
License
Author
ThiagoFrag - GitHub
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Give your AI agent a real cloud Android phone: push APKs, drive it, get screenshots and logs.
Let AI agents control Android and iOS devices on Mobilerun Cloud: screen, input, apps, workflows.
Cloud Android phones for AI agents: create a phone, read the screen, tap, type, install APKs, park.
Disposable cloud Android emulators for coding agents: run an APK or PR build, tap, type, screenshot.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Android devices and emulators through ADB, allowing control actions like tapping, text input, screenshots, UI inspection, and app launching through natural language.8-
- FlicenseNot gradedqualityDmaintenanceEnables control of Android emulators (MumuEmulator or ADB-connected devices) through natural language, supporting app management, screen interactions (tap/swipe), screenshots, and device information retrieval.2-
- AlicenseBqualityNot gradedmaintenanceEnables LLMs to control and manage Android devices via ADB, including app installation, UI interaction, and device monitoring.3512GPL 3.0
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with Android devices and emulators via ADB, providing tools for screenshots, UI inspection, touch and text input, app management, and device control.42143 npm23MIT