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 agen
Add this skill
npx mdskills install hyperb1iss/droidmindMCP server bridging AI assistants to Android devices via ADB with comprehensive device control
1<div align="center">23# ๐ค DroidMind ๐ง45<img src="docs/assets/images/logo_neon_glow_icon.png" alt="DroidMind Logo" width="180" />67[](https://www.python.org/downloads/)8[](LICENSE)9[](docs/plan.md)10[](https://github.com/astral-sh/ruff)11[](https://github.com/microsoft/pyright)12[](https://modelcontextprotocol.io/)13[](https://www.android.com/)14[](https://hyperb1iss.github.io/droidmind/)1516**Control Android devices with AI through the Model Context Protocol**1718</div>1920DroidMind 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.2122## ๐ซ Core Features2324DroidMind empowers AI assistants to:2526- ๐ฑ **Manage Devices**: Connect via USB/TCP-IP, list devices, view properties, and reboot.27- ๐ **Analyze Systems**: Access logs (logcat, ANR, crash, battery), capture bug reports, and dump heap.28- ๐ **Handle Files**: Browse, read, write, push, pull, delete, and manage device files/directories.29- ๐ฆ **Control Apps**: Install, uninstall, start, stop, clear data, and inspect app details (manifest, permissions, activities).30- ๐ผ๏ธ **Automate UI**: Perform taps, swipes, text input, and key presses.31- ๐ **Execute Shell Commands**: Run ADB shell commands with a security-conscious framework.32- ๐ **Operate Securely**: Benefit from command validation, risk assessment, and sanitization.33- ๐ฌ **Integrate Seamlessly**: Connect with any MCP-compatible client (Claude, Cursor, Cline, etc.).3435For a detailed list of capabilities, see the **[User Manual](docs/user_manual/index.md)** and **[MCP Reference](docs/mcp-reference.md)**.3637## ๐ Getting Started3839### Quickstart for IDEs (Zero Install with `uvx`)4041For 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**.4243Add the following to your IDE's MCP configuration (e.g., `.cursor/mcp.json` for Cursor):4445```json46{47 "mcpServers": {48 "droidmind": {49 "command": "uvx",50 "args": [51 "--from",52 "git+https://github.com/hyperb1iss/droidmind",53 "droidmind",54 "--transport",55 "stdio" // The default and preferred mode for most IDE integrations56 ]57 }58 }59}60```6162Your IDE will be configured to launch DroidMind on demand. Full instructions for this setup are in the **[Quick Start Guide](docs/quickstart.md#1-configure-your-ide-to-run-droidmind-via-uvx)**.6364### Prerequisites6566- Python 3.13 (3.14 not yet supported)67- `uv` (Python package manager)68- Android device with USB debugging enabled69- ADB (Android Debug Bridge) installed and in your system's PATH7071### Installation7273For 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](docs/installation.md)**.7475### Running DroidMind7677How you run DroidMind depends on your setup:7879- **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](docs/quickstart.md).80- **Manual Installation**: After installing from source, you can run DroidMind directly.81 - **Stdio (for direct terminal interaction or some IDE setups):**82 ```bash83 droidmind --transport stdio84 ```85 - **SSE (for web UIs or AI assistants like Claude Desktop):**86 ```bash87 droidmind --transport sse88 ```89 This usually starts a server at `sse://localhost:4256/sse`.90- **Docker**: Refer to the [Docker Guide](docs/docker.md) for commands to run DroidMind in a container.9192Refer to the **[Installation Guide](docs/installation.md)** for more details on running DroidMind in different environments.9394## ๐ณ Running with Docker9596DroidMind can also be run using Docker for a consistent, containerized environment. This is particularly useful for deployment and isolating dependencies.9798For comprehensive instructions on building the Docker image and running DroidMind in a container with `stdio` or `SSE` transport, including notes on ADB device access, please refer to our **[Docker Guide](docs/docker.md)**.99100## ๐ฎ Example AI Assistant Queries101102With an AI assistant connected to DroidMind, you can make requests like:103104- "List all connected Android devices and show their properties."105- "Take a screenshot of my Pixel."106- "Install this APK on `emulator-5554`."107- "Show me the recent crash logs from `your_device_serial`."108- "Tap the 'Next' button on the current screen of `emulator-5554`."109110For more inspiration, check out our **[Example Queries and Workflows](docs/user_manual/example_queries.md)** in the User Manual.111112## ๐ Security113114DroidMind incorporates a security framework to protect your devices:115116- **Command Validation & Sanitization**117- **Risk Assessment Categorization**118- **Protected Path Operations**119- **Comprehensive Logging**120121High-risk operations are flagged, and critical ones are blocked by default. Learn more in our **[Security Considerations](docs/user_manual/security.md)** chapter.122123## ๐ป Development124125DroidMind uses `uv` for dependency management and development workflows.126127```bash128# Install/update dependencies (creates/updates `.venv`)129uv sync --all-groups130131# Run tests132uv run pytest133134# Run linting135uv run ruff check .136137# Run type checking138uv run pyright139```140141## ๐ค Contributing142143Contributions are welcome! Please feel free to submit a Pull Request.1441451. Fork the repository.1462. Create your feature branch (`git checkout -b feature/amazing-feature`).1473. Set up your development environment with `uv`.1484. Make your changes.1495. Run tests, linting, and type checking.1506. Commit your changes (`git commit -m 'Add some amazing feature'`).1517. Push to the branch (`git push origin feature/amazing-feature`).1528. Open a Pull Request.153154## ๐ License155156This project is licensed under the Apache License - see the [LICENSE](LICENSE) file for details.157158---159160<div align="center">161162Created by [Stefanie Jane ๐ ](https://github.com/hyperb1iss)163164If you find DroidMind useful, [buy me a Monster Ultra Violet โก๏ธ](https://ko-fi.com/hyperb1iss)165166</div>167
Full transparency โ inspect the skill content before installing.