JS

juancf/scrcpy-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

145 stars 24 forks 品質 87 トレンド 22MIT

juancf/scrcpy-mcpは、https://github.com/juancf/scrcpy-mcp.からインポートされたMCPサーバー候補です。

概要

juancf/scrcpy-mcpは、https://github.com/juancf/scrcpy-mcp.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

ADBやSCRCPYを通じて、AIエージェントがAndroidデバイスを完全に把握・制御できるMCPサーバーです。

MCP対応のAIアシスタント(Claude Code、OpenCode、Cursor、VS Code Copilotなど)をAndroidデバイスに接続できます。AIは画面を見て、タップし、スワイプし、入力し、アプリを起動し、UI要素をチェックし、ファイルを転送し、シェルコマンドを実行できます。

特徴

  • スクリーンショット、入力、アプリ、UI自動化、シェル、ファイル、クリップボード、動画ストリーミング、音声ストリーミング/録音をカバーする44のツール
  • scrcpy-first:SCRCPYのバイナリ制御プロトコルを使用し、入力速度が10〜50倍速く、ほぼ瞬時にスクリーンショット(約33ms)を実現します。
  • ADBフォールバック:インタラクションツールはscrcpyなしで動作します — 遅いですが常に利用可能(オーディオツールstart_audio_stream/[audio_record_start]およびビデオストリームはSCRCPYが必要です)
  • 画像返却スクリーンショット:AIはファイルパスだけでなく実際に画面を見ています
  • UI要素検索:ui_find_elementは座標をタップして返し、AIが見たものに基づいて行動できるようにします
  • オーディオストリーミングおよび録音:デバイスの音声をホストスピーカー(start_audio_stream)にストリーミングするか、.wav/.opus(audio_record_start)にキャプチャ

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

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:

GitHub で README 全文を見る

インストール

npx scrcpy-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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