NM

nim444/mcp-android-server-python

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

60 stars 13 forks 품질 66 트렌드 0MIT

nim444/mcp-android-server-python은 MCP 서버 후보가 https://github.com/nim444/mcp-android-server-python.에서 수입되었습니다

개요

nim444/mcp-android-server-python은 MCP 서버 후보가 https://github.com/nim444/mcp-android-server-python.에서 수입되었습니다

개요(AI 번역)

이 프로젝트는 MCP (Model Context Protocol) uiautomator2를 사용하여 Android 기기를 자동화하기위한 서버입니다. GitHub Copilot Chat, Claude, Open Interpreter와 같은 AI 에이전트에 쉽게 연결되도록 설계되었습니다.

모듈 구조

서버는 기능에 의해 조직된 공구를 가진 청결한, 모듈 구조로 refactored:

모듈 건축의 이점

  • Maintainability: 메인 서버에 터치하지 않고/modify/remove 도구를 추가
  • 조직: 도구 그룹으로 로그인하여 기능
  • 테스트: 개별 도구 모듈은 별도로 테스트 할 수 있습니다. -Reusability: 도구 모듈은 다른 프로젝트에 재사용될 수 있습니다.
  • Scalability: 새로운 도구 범주는 별도의 모듈로 추가될 수 있습니다. -Clean Code: 메인 서버가 1321 라인에서 61 라인으로 감소했습니다.

빠른 데모

·

요구 사항

  • Python 3.13 이상
  • Android Debug Bridge (adb) 설치 및 PATH
  • USB 디버깅 활성화를 가진 연결된 안드로이드 장치
  • uiautomator2 호환 안드로이드 장치

특징

장치 관리

  • Smart Device Detection: 자동 발견 및 사용 가능한 장치에 연결

이 페이지는 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
GitHub에서 전체 README 보기

설치

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" ] } } }