Hermes Phone Agent
Enables AI-driven phone management for Android and iOS devices, including flashing, unlocking, and automation via MCP.
README
Hermes Phone Agent
Hermes Agent with MCP servers for Android/iOS phone flashing, unlocking, and management
What is this?
Hermes Phone Agent extends Hermes Agent with Model Context Protocol (MCP) servers for controlling Android and iOS devices. It provides AI-powered phone management, flashing, unlocking, and automation.
Features
Android Support
- ADB: Full device control (shell, screenshots, input, file transfer)
- Fastboot: Flash partitions, unlock bootloader, reboot modes
- Heimdall: Samsung-specific flashing and PIT extraction
- App Management: Install, uninstall, list packages
- Screen Control: Screenshots, tap, swipe, text input, key events
- System Info: Battery, storage, logs, device properties
iOS Support
- libimobiledevice: Device info, app management, screenshots
- SSH/SFTP: Full access to jailbroken devices
- AFC: Apple File Conduit for file system access
- Backup/Restore: Full device backups
- Jailbreak Tools: checkra1n, palera1n instructions and status
Integration
- MCP Protocol: Works with Claude, Codex, Cursor, and any MCP client
- Hermes Agent: Telegram, Discord, Slack, WhatsApp, Signal gateway
- Windows Desktop: Native Windows support with one-click installer
Quick Start
Windows (Recommended)
- Download the latest release from Releases
- Run
install.ps1in PowerShell - Launch from desktop shortcut or Start Menu
Manual Install
# Clone the repository
git clone https://github.com/petrobumaga/hermes-phone-agent.git
cd hermes-phone-agent
# Install dependencies
npm install
# Start the agent
npm start
MCP-Only Mode
If you just want the MCP servers without Hermes Agent:
# Android MCP server only
npm run android-mcp
# iOS MCP server only
npm run ios-mcp
Configuration
Configuration file: ~/.hermes-phone-agent/config.yaml
android:
enabled: true
adbPath: auto # Auto-detect or path to adb
fastbootPath: auto
heimdallPath: auto
ios:
enabled: true
sshUser: root
sshPassword: alpine # CHANGE THIS!
sshPort: 22
hermes:
enabled: true
configPath: ~/.hermes/config.yaml
Available Tools
Android Tools (28 tools)
| Tool | Description |
|---|---|
android_list_devices |
List connected devices |
android_device_info |
Get device properties |
android_shell |
Execute shell commands |
android_screenshot |
Capture screen |
android_tap |
Tap at coordinates |
android_swipe |
Swipe gesture |
android_input_text |
Type text |
android_press_key |
Press key (HOME, BACK, POWER, etc.) |
android_list_packages |
List installed apps |
android_install_apk |
Install APK |
android_uninstall_app |
Uninstall app |
android_push_file |
Push file to device |
android_pull_file |
Pull file from device |
android_logcat |
Get system logs |
android_battery |
Battery status |
android_storage |
Storage info |
android_reboot |
Reboot device |
fastboot_devices |
List fastboot devices |
fastboot_flash |
Flash partition |
fastboot_unlock |
Unlock bootloader |
fastboot_reboot |
Reboot from fastboot |
fastboot_getvar |
Get fastboot variable |
heimdall_detect |
Detect Samsung device |
heimdall_flash |
Flash Samsung partition |
heimdall_download_pit |
Download PIT table |
iOS Tools (18 tools)
| Tool | Description |
|---|---|
ios_list_devices |
List connected devices |
ios_device_info |
Get device info |
ios_list_apps |
List installed apps |
ios_install_ipa |
Install IPA |
ios_uninstall_app |
Uninstall app |
ios_screenshot |
Take screenshot |
ios_syslog |
Get system logs |
ios_backup |
Backup device |
ios_ssh_command |
Execute SSH command |
ios_ssh_pull |
Pull file via SSH |
ios_ssh_push |
Push file via SSH |
ios_mount_afc |
Mount AFC filesystem |
ios_detect_jailbreak |
Check jailbreak status |
ios_checkra1n_info |
checkra1n info |
ios_palera1n_info |
palera1n info |
ios_dfu_instructions |
DFU mode instructions |
ios_reboot |
Reboot device |
ios_shutdown |
Shutdown device |
Use Cases
- Phone Repair: Diagnose and fix bootloops, soft bricks
- Flashing: Install custom ROMs, stock firmware
- Unlocking: Bootloader unlock, FRP bypass
- Jailbreaking: iPhone jailbreak with checkra1n/palera1n
- Automation: Automated testing, UI automation
- Data Recovery: Backup and restore, file extraction
- Security Research: Device analysis, forensic examination
Prerequisites
Android
- Android SDK Platform Tools (ADB, Fastboot)
- USB Debugging enabled on device
- (Optional) Heimdall for Samsung devices
iOS
- libimobiledevice utilities
- (For jailbroken) OpenSSH installed on device
- USB or WiFi connection
Development
# Install dev dependencies
npm install
# Run Android MCP server
npm run android-mcp
# Run iOS MCP server
npm run ios-mcp
# Start all services
npm start
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Hermes Agent by Nous Research
- MCP Protocol by Anthropic
- libimobiledevice for iOS support
- Android SDK for Android support
- Heimdall for Samsung flashing
Disclaimer
This tool is for educational and authorized testing purposes only. Always ensure you have proper authorization before modifying device software. The authors are not responsible for any damage caused by misuse of this software.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。