
nim444/mcp-android-server-python
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
nim444/mcp-android-server-python は [https://github.com/nim444/mcp-android-server-python.] からインポートされた MCP サーバーの候補です
概要
nim444/mcp-android-server-python は [https://github.com/nim444/mcp-android-server-python.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
このプロジェクトは、uiautomator2を使用してAndroidデバイスを自動化するための**MCP(モデルコンテキストプロトコル)**サーバーを提供します。 GitHub Copilot Chat、Claude、Open InterpreterなどのAIエージェントに簡単に接続できるように設計されています。
モジュラーアーキテクチャ
サーバは、機能によって組織されるツールで、クリーンでモジュラーなアーキテクチャに再構築されています。
モジュラーアーキテクチャの利点
- 維持: メインサーバに触れずにツールを追加/修正/削除するのが簡単
- 組織: 機能によってグループ化された論理的に用具
- テスト: 個々のツールモジュールは別々にテストされる単位である場合もあります -Reusability:他のプロジェクトでツールモジュールを再使用することができます -Scalability:別のモジュールとして新しいツールカテゴリを追加できます
- クリーンコード: 1321行から61行までのメインサーバ
クイックデモ
お問い合わせ
要件
- Python 3.13以上
- アンドロイドデバッグブリッジ(adb)をインストールしてPATH
- USBデバッグ機能を備えた接続されたAndroidデバイス
- uiautomator2の多用性がある人間の特徴をもつ装置
##特徴
デバイス管理
-スマートデバイス検出:利用可能なデバイスを自動的に見つけ、接続します
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Android Agent
This project provides an MCP (Model Context Protocol) server for automating Android devices using uiautomator2. It’s designed to be easily plugged into AI agents like GitHub Copilot Chat, Claude, or Open Interpreter to control Android devices through natural language.
Modular Architecture
The server has been refactored into a clean, modular architecture with tools organized by functionality:
mcp-android-server-python/
├── server.py # Main server (61 lines - clean & focused)
├── server_original_backup.py # Backup of original monolithic version
└── tools/ # 🆕 Modular tools package
├── __init__.py # Central registration & imports
├── device_tools.py # Device connection & status tools
├── app_tools.py # Application management tools
├── screen_tools.py # Screen control & unlock tools
├── input_tools.py # User input simulation (click, swipe, text)
├── inspection_tools.py # UI inspection & screenshots
└── advanced_tools.py # Advanced features (toast, activity wait)
Benefits of Modular Architecture
- Maintainability: Easy to add/modify/remove tools without touching main server
- Organization: Tools grouped logically by functionality
- Testing: Individual tool modules can be unit tested separately
- Reusability: Tool modules can be reused in other projects
- Scalability: New tool categories can be added as separate modules
- Clean Code: Main server reduced from 1321 lines to 61 lines
Quick Demo
Requirements
- Python 3.13 or higher
- Android Debug Bridge (adb) installed and in PATH
- Connected Android device with USB debugging enabled
- uiautomator2 compatible Android device
Features
Device Management
- Smart Device Detection: Automatically finds and connects to available devices
- Comprehensive Device Info: Get serial, resolution, battery, WiFi IP, Android version
- ADB Diagnostics: Check ADB availability and connection status
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"mcp-android": {
"type": "stdio",
"command": "bash",
"args": [
"-c",
"cd /path/to/mcp-adb && source .venv/bin/activate && uv run python server.py"
]
}
}
}