JS

juancf/scrcpy-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

145 stars 24 forks Качество 87 Тренд 22MIT

juancf/scrcpy-mcp — это кандидат для MCP-сервера, импортированный из https://github.com/juancf/scrcpy-mcp.

Обзор

juancf/scrcpy-mcp — это кандидат для MCP-сервера, импортированный из https://github.com/juancf/scrcpy-mcp.

Обзор (машинный перевод)

MCP-сервер, который предоставляет агентам ИИ полное зрение и контроль над устройствами Android через ADB и scrcpy.

Подключите любого ИИ-помощника, совместимого с MCP (Claude Code, OpenCode, Cursor, VS Code Copilot и т.д.) к вашему Android-устройству. ИИ может видеть экран, нажимать по экрану, проводить свайпом, печатать, запускать приложения, проверять элементы интерфейса, передавать файлы и выполнять команды shell.

Особенности

  • 44 инструмента охватывающих скриншоты, вводные данные, приложения, автоматизацию интерфейса, shell, файлы, буфер обмена, видеопотоковую трансляцию и аудиозапись
  • scrcpy-first: использует бинарный протокол управления scrcpy для 10-50 раз быстрее ввода и почти мгновенных скриншотов (~33 мс)
  • Запасной вариант ADB: инструменты взаимодействия работают без scrcpy — медленнее, но всегда доступное (аудиоинструменты start_audio_stream/audio_record_start и видеопоток требуют scrcpy)
  • Скриншоты, возвращающие изображение: ИИ действительно видит экран, а не просто путь к файлу
  • Поиск элементов UI: ui_find_element возвращает координаты тапов, чтобы ИИ мог реагировать на то, что он видит.
  • Аудиопоток и запись: поток аудио устройства на динамики хоста ([[T3]) или запись на .wav/.opus (audio_record_start)

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

scrcpy-mcp

MCP server that gives AI agents full vision and control over Android devices via ADB and scrcpy.

Connect any MCP-compatible AI assistant (Claude Code, OpenCode, Cursor, VS Code Copilot, etc.) to your Android device. The AI can see the screen, tap, swipe, type, launch apps, inspect UI elements, transfer files, and run shell commands.

Features

  • 44 tools covering screenshots, input, apps, UI automation, shell, files, clipboard, video streaming, and audio streaming/recording
  • scrcpy-first: uses scrcpy’s binary control protocol for 10-50x faster input and near-instant screenshots (~33ms)
  • ADB fallback: interaction tools work without scrcpy — slower but always available (the audio tools start_audio_stream/audio_record_start and the video stream require scrcpy)
  • Image-returning screenshots: the AI actually sees the screen, not just a file path
  • UI element finding: ui_find_element returns tap coordinates so the AI can act on what it sees
  • Audio streaming & recording: stream device audio to host speakers (start_audio_stream) or capture to .wav/.opus (audio_record_start)
  • Clipboard that works on Android 10+: scrcpy bypasses the restrictions that break ADB-only solutions

Prerequisites

Required

Requirement Install Verify
Node.js 24+ nodejs.org or nvm install (uses .nvmrc) node --version
ADB (Android Platform Tools) developer.android.com/tools/releases/platform-tools adb version
Android device with USB debugging (Android 11+ for audio) Settings → Developer Options → USB Debugging adb devices

Optional (for enhanced performance)

Requirement Install Benefit
scrcpy github.com/Genymobile/scrcpy 10-50x faster input, ~33ms screenshots
ffmpeg apt install ffmpeg / brew install ffmpeg Required for scrcpy video stream decoding, audio recording, and audio clip capture
ffplay Usually packaged with ffmpeg Required for audio playback and the MJPEG viewer window

Device setup

  1. Enable Developer Options: Settings → About Phone → tap “Build Number” 7 times
  2. Enable USB Debugging: Settings → Developer Options → USB Debugging
  3. Connect device via USB
  4. Accept the RSA fingerprint prompt on the device
  5. Verify: adb devices should show your device as device (not unauthorized)

Installation

# Run directly with npx (no install needed)
npx scrcpy-mcp

# Or install globally
npm install -g scrcpy-mcp

MCP Client Configuration

Claude Code

claude mcp add android -- npx scrcpy-mcp

Or add to .mcp.json in your project root:

Открыть полный README на GitHub

Установка

npx scrcpy-mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "android": { "command": "npx", "args": ["scrcpy-mcp"] } } }