{"id":50897662,"url":"https://github.com/youichi-uda/droidpilot","last_synced_at":"2026-06-16T01:31:21.704Z","repository":{"id":362847179,"uuid":"1190704313","full_name":"youichi-uda/droidpilot","owner":"youichi-uda","description":"Stable Android device automation for AI agents. Uses Accessibility Service + MCP protocol — no ADB, no OCR, just native OS APIs over WiFi.","archived":false,"fork":false,"pushed_at":"2026-06-06T06:42:26.000Z","size":84,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-06-06T08:15:13.965Z","etag":null,"topics":["accessibility-service","ai-agents","android","android-automation","automation","claude","kotlin","llm","mcp","mcp-server","mobile-automation","model-context-protocol","rpa","typescript","websocket"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/youichi-uda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-24T14:39:37.000Z","updated_at":"2026-06-06T06:42:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/youichi-uda/droidpilot","commit_stats":null,"previous_names":["youichi-uda/droidpilot"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/youichi-uda/droidpilot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youichi-uda%2Fdroidpilot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youichi-uda%2Fdroidpilot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youichi-uda%2Fdroidpilot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youichi-uda%2Fdroidpilot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youichi-uda","download_url":"https://codeload.github.com/youichi-uda/droidpilot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youichi-uda%2Fdroidpilot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34387472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accessibility-service","ai-agents","android","android-automation","automation","claude","kotlin","llm","mcp","mcp-server","mobile-automation","model-context-protocol","rpa","typescript","websocket"],"created_at":"2026-06-16T01:31:20.952Z","updated_at":"2026-06-16T01:31:21.699Z","avatar_url":"https://github.com/youichi-uda.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DroidPilot\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Android 11+](https://img.shields.io/badge/Android-11%2B-green.svg)](https://developer.android.com)\n[![MCP Compatible](https://img.shields.io/badge/MCP-Compatible-blue.svg)](https://modelcontextprotocol.io)\n\n**Stable Android device automation for AI agents via Accessibility Service + MCP (Model Context Protocol).**\n\n\u003e Control any Android device from Claude, ChatGPT, or any MCP-compatible AI — no ADB, no USB, no screen mirroring. Just WiFi.\n\nDroidPilot uses Android's native Accessibility Service to directly access the UI tree and perform gestures through OS APIs. This is fundamentally more reliable than ADB-based or OCR-based approaches used by other mobile automation tools.\n\n## Key Features\n\n- **No ADB required** — communicates over WiFi via WebSocket\n- **Native UI tree access** — no screenshot OCR or computer vision needed\n- **Reliable gesture execution** — taps, swipes, and text input via OS APIs\n- **MCP native** — works with Claude Desktop, Claude Code, and any MCP client\n- **18 automation tools** — tap, swipe, type, screenshot, find element, and more\n- **Low token cost** — structured UI data instead of expensive image analysis\n- **Simple setup** — install APK, enable service, connect\n\n## How It Works\n\n```\n┌──────────────┐     MCP/stdio     ┌──────────────┐    WebSocket    ┌──────────────────┐\n│  AI Agent    │ ◄──────────────► │  MCP Server  │ ◄────────────► │  Android Device  │\n│  (Claude,    │                   │  (Node.js)   │    WiFi/LAN    │  (Accessibility   │\n│   ChatGPT)   │                   │              │                │   Service + WS)   │\n└──────────────┘                   └──────────────┘                └──────────────────┘\n```\n\n## Why DroidPilot?\n\n| Approach | Reliability | Speed | LLM Token Cost | Setup |\n|----------|-------------|-------|----------------|-------|\n| ADB-based (droidrun etc.) | Low — connection drops, limited UI access | Medium | High (screenshot analysis) | USB/WiFi ADB |\n| Screen mirroring + OCR | Low — OCR errors, high latency | Slow | Very High | Complex |\n| **DroidPilot (Accessibility Service)** | **High — native OS integration** | **Fast** | **Low (structured data)** | **Install APK** |\n\n## Available MCP Tools\n\n| Tool | Description |\n|------|-------------|\n| `connect` | Connect to Android device by IP |\n| `disconnect` | Disconnect from device |\n| `get_device_info` | Device manufacturer, model, screen size, Android version |\n| `screenshot` | Capture screen as base64 JPEG image |\n| `get_ui_tree` | Full UI hierarchy with all element properties |\n| `find_element` | Search elements by text, ID, class, content description |\n| `tap` | Tap at screen coordinates |\n| `long_press` | Long press at coordinates |\n| `swipe` | Swipe gesture from point A to B |\n| `scroll` | Scroll in a direction (up/down/left/right) |\n| `pinch` | Pinch zoom in/out |\n| `type_text` | Append text to currently focused input |\n| `set_text` | Replace text in focused input |\n| `press_key` | System keys: back, home, recents, notifications, etc. |\n| `click_element` | Find and click element by text/ID (more reliable than coordinates) |\n| `wait_for_element` | Wait for element to appear on screen (with timeout) |\n| `open_app` | Launch app by package name |\n| `get_focused` | Get info about currently focused input element |\n\n## Quick Start\n\n### 1. Android APK\n\n**Requirements:** Android 11+ (API 30+), WiFi (same network as PC)\n\n```bash\ncd android\n./gradlew assembleDebug\nadb install app/build/outputs/apk/debug/app-debug.apk\n```\n\nOr open `android/` in Android Studio and build from there.\n\nThen on the device:\n1. Open DroidPilot app\n2. Tap **\"Open Accessibility Settings\"**\n3. Enable **\"Mobile MCP Pro\"**\n4. Return to app, tap **\"Start Server\"**\n5. Note the **IP address** displayed\n\n### 2. MCP Server\n\n```bash\ncd mcp-server\nnpm install\nnpm run build\n```\n\n### 3. Configure Your AI Client\n\n**Claude Desktop** — add to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"droidpilot\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/droidpilot/mcp-server/dist/index.js\"]\n    }\n  }\n}\n```\n\n**Claude Code** — add to MCP settings:\n\n```json\n{\n  \"mcpServers\": {\n    \"droidpilot\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/droidpilot/mcp-server/dist/index.js\"]\n    }\n  }\n}\n```\n\n### 4. Use It\n\nTell the AI:\n\n```\nConnect to my Android device at 192.168.1.100\n```\n\nThen give natural language commands:\n\n```\nTake a screenshot of the current screen\nOpen Chrome and navigate to google.com\nFind the search bar and type \"hello world\"\nScroll down the page\nPress the back button\n```\n\n## Protocol\n\nCommunication between MCP Server and Android uses JSON over WebSocket:\n\n**Request:**\n```json\n{\n  \"id\": \"req_1_1234567890\",\n  \"command\": \"tap\",\n  \"params\": { \"x\": 500, \"y\": 1000 }\n}\n```\n\n**Response:**\n```json\n{\n  \"id\": \"req_1_1234567890\",\n  \"success\": true,\n  \"data\": { \"action\": \"tap(500.0, 1000.0)\" }\n}\n```\n\n## Use Cases\n\n- **AI-powered mobile testing** — let AI agents run QA flows on real devices\n- **Mobile RPA** — automate repetitive tasks across any Android app\n- **Accessibility automation** — build assistive workflows for users\n- **App monitoring** — periodic screenshots and UI state checks\n- **Cross-app workflows** — orchestrate actions across multiple apps\n\n## Security\n\n- WebSocket runs on **local network only** (no internet exposure)\n- Optional **auth token** support for WebSocket connections\n- No data is sent to external servers\n- All communication stays between your PC and your device on your LAN\n\n## Tech Stack\n\n- **Android**: Kotlin, AccessibilityService, Java-WebSocket\n- **MCP Server**: TypeScript, Node.js, @modelcontextprotocol/sdk\n- **Communication**: WebSocket (JSON protocol)\n\n## Contributing\n\nContributions are welcome! Feel free to open issues and pull requests.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyouichi-uda%2Fdroidpilot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyouichi-uda%2Fdroidpilot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyouichi-uda%2Fdroidpilot/lists"}