🐍 🏠 - Android device control, debugging, system analysis and UI automation, with a security framework
🤖 DroidMind 🧠
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
**Control Android devices with AI through the Model Context Protocol**
DroidMind is a powerful bridge between AI assistants and Android devices, enabling control, debugging, and system analysis through natural language. By implementing the Model Context Protocol (MCP), DroidMind allows AI models to directly interact with Android devices via ADB in a secure, structured way. When used as part of an agentic coding workflow, DroidMind can enable your assistant to build and debug with your device directly in the loop.
💫 Core Features
DroidMind empowers AI assistants to:
- 📱 **Manage Devices**: Connect via USB/TCP-IP, list devices, view properties, and reboot.
- 📊 **Analyze Systems**: Access logs (logcat, ANR, crash, battery), capture bug reports, and dump heap.
- 📂 **Handle Files**: Browse, read, write, push, pull, delete, and manage device files/directories.
- 📦 **Control Apps**: Install, uninstall, start, stop, clear data, and inspect app details (manifest, permissions, activities).
- 🖼️ **Automate UI**: Perform taps, swipes, text input, and key presses.
- 🐚 **Execute Shell Commands**: Run ADB shell commands with a security-conscious framework.
- 🔒 **Operate Securely**: Benefit from command validation, risk assessment, and sanitization.
- 💬 **Integrate Seamlessly**: Connect with any MCP-compatible client (Claude, Cursor, Cline, etc.).
For a detailed list of capabilities, see the **User Manual** and **MCP Reference**.
🚀 Getting Started
Quickstart for IDEs (Zero Install with uvx)
For the fastest way to integrate DroidMind with an MCP-compatible IDE (like Cursor), you can configure it to run DroidMind directly from its GitHub repository using uvx. This method **does not require you to manually clone or install DroidMind first**.
Add the following to your IDE's MCP configuration (e.g., .cursor/mcp.json for Cursor):
Your IDE will be configured to launch DroidMind on demand. Full instructions for this setup are in the **Quick Start Guide**.
Prerequisites
- Python 3.13 (3.14 not yet supported)
- uv (Python package manager)
- Android device with USB debugging enabled
- ADB (Android Debug Bridge) installed and in your system's PATH
Installation
For detailed instructions on setting up DroidMind, including the quick IDE integration with uvx (covered in the Quick Start), manual installation from source, or using Docker, please see our comprehensive **Installation Guide**.
Running DroidMind
How you run DroidMind depends on your setup:
- **IDE Integration (via uvx)**: Your IDE automatically manages running DroidMind as configured in its MCP settings (e.g., mcp.json). See the Quick Start Guide.
- **Manual Installation**: After installing from source, you can run DroidMind directly.
- **Stdio (for direct terminal interaction or some IDE setups):**
- **SSE (for web UIs or AI assistants like Claude Desktop):**
This usually starts a server at sse://localhost:4256/sse.
- **Docker**: Refer to the Docker Guide for commands to run DroidMind in a container.
Refer to the **Installation Guide** for more details on running DroidMind in different environments.