device-manager-mcp
MCP server for fast Android device interaction with scrcpy acceleration (~50ms latency).
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"device-manager-mcp": {
"args": [
"device-manager-mcp@1.0.7"
],
"command": "uvx"
}
}
}
可用工具 (5 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
tavily_search 14 个参数 需填 1 项
Search the web for current information on any topic. Use for news, facts, or data beyond your knowledge cutoff. Returns snippets and source URLs.
必填参数:query
tavily_extract 6 个参数 需填 1 项
Extract content from URLs. Returns raw page content in markdown or text format.
必填参数:urls
tavily_crawl 11 个参数 需填 1 项
Crawl a website starting from a URL. Extracts content from pages with configurable depth and breadth.
必填参数:url
tavily_map 8 个参数 需填 1 项
Map a website's structure. Returns a list of URLs found starting from the base URL.
必填参数:url
tavily_research 2 个参数 需填 1 项
Perform comprehensive research on a given topic or question. Use this tool when you need to gather information from multiple sources to answer a question or complete a task. Returns a detailed response based on the research findings.
必填参数:input
服务介绍
screen-buffer-mcp
MCP server for fast Android screenshots via scrcpy frame buffer (~50ms latency).
<!- - mcp-name: io.github.vladkarpman/screen-buffer-mcp - ->
# Features
- Fast screenshots via scrcpy frame buffer (~50ms vs ~500ms with adb)
- 10-frame circular buffer for instant access to recent frames
- Historical frame access via
device_get_framefor debugging/recording - Automatic fallback to adb when scrcpy unavailable
- Works with Claude Code and any MCP-compatible client
# Requirements
- macOS 12+ or Linux
- Python 3.11+
- adb (Android Debug Bridge)
- scrcpy 3.x installed
- Android device connected via USB
# Usage with Claude Code
Add to your .mcp.json:
{
"mcpServers": {
"screen-buffer": {
"command": "uvx",
"args": ["screen-buffer-mcp"]
}
}
}
Or add globally:
claude mcp add screen-buffer -s user - - uvx screen-buffer-mcp
# Available Tools
| Tool | Description | Latency |
|- -- -- -|- -- -- -- -- -- --|- -- -- -- --|
| device_screenshot | Capture latest frame from buffer | ~50ms (scrcpy) / ~500ms (adb) |
| device_get_frame | Get historical frame at offset | ~10ms |
| device_list | List connected devices | ~100ms |
| device_screen_size | Get screen dimensions | ~10ms |
| device_backend_status | Check active backend | instant |
# How It Works
The server maintains a 10-frame circular buffer from the scrcpy video stream:
-
scrcpy backend (preferred): Connects to scrcpy server on device in video-only mode. Continuously captures frames at ~60fps into a circular buffer. Screenshots return the latest buffered frame instantly.
-
adb backend (fallback): Uses
adb exec-out screencap -pfor screenshots. Works everywhere but slower (~500ms per screenshot).
# Frame Buffer
The frame buffer stores the last 10 frames (~160ms at 60fps), enabling:
- Instant screenshots: Latest frame always ready, no capture delay
- Historical access: Get frames from before an action for debugging
- Recording support: Extract frames at specific offsets
# Get latest screenshot
device_screenshot()
# Get frame from 100ms ago (offset 6 at 60fps)
device_get_frame(offset=6)
# Configuration
# # Environment Variables
SCREEN_BUFFER_LOG_LEVEL: Set logging level (DEBUG, INFO, WARNING, ERROR)
# # Multiple Devices
Specify device ID for multi-device setups:
device_screenshot(device="RFCW318P7NV")
# Use with mobile-mcp
For full device control (taps, swipes, typing), combine with mobile-mcp:
{
"mcpServers": {
"screen-buffer": {
"command": "uvx",
"args": ["screen-buffer-mcp"]
},
"mobile-mcp": {
"command": "npx",
"args": ["-y", "@mobilenext/mobile-mcp@latest"]
}
}
}
- screen-buffer-mcp: Fast screenshots (~50ms)
- mobile-mcp: Device input (tap, swipe, type)
# Development
git clone https://github.com/vladkarpman/screen-buffer-mcp
cd screen-buffer-mcp
pip install -e ".[dev]"
pytest
# License
MIT License - see LICENSE for details.
# Related Projects
- mobile-mcp - Official Anthropic mobile MCP
- MYScrcpy - Python scrcpy client
- Claude Code - AI coding assistant