
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
@codmir/mobile-connector
Advanced tools
Codmir Mobile Connector - AI-powered Android phone control via ADB and scrcpy for Claude, Cursor, and Windsurf
An MCP (Model Context Protocol) server that gives AI assistants the ability to control Android phones via ADB and scrcpy. Connect Claude, Cursor, Windsurf, or any MCP-compatible AI to a physical Android device or emulator for UI testing, automation, screenshots, and app control.
brew install android-platform-toolssudo apt install adbbrew install scrcpysudo apt install scrcpyAdd to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"codmir-mobile": {
"command": "npx",
"args": ["@codmir/mobile-connector"]
}
}
}
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"codmir-mobile": {
"command": "npx",
"args": ["@codmir/mobile-connector"]
}
}
}
Add to .windsurf/mcp.json in your project:
{
"mcpServers": {
"codmir-mobile": {
"command": "npx",
"args": ["@codmir/mobile-connector"]
}
}
}
| Tool | Description |
|---|---|
mobile_list_devices | List all connected Android devices |
mobile_get_device_info | Get detailed device info (model, OS, battery, IP) |
mobile_screenshot | Take a screenshot, returns base64 PNG |
mobile_tap | Tap at screen coordinates |
mobile_swipe | Swipe gesture between two points |
mobile_type_text | Type text on the device |
mobile_press_key | Press a hardware/software key |
mobile_back | Press the back button |
mobile_home | Press the home button |
mobile_recents | Open recent apps |
mobile_wake | Wake the screen |
mobile_launch_app | Launch an app by package name |
mobile_stop_app | Force stop an app |
mobile_list_apps | List installed third-party apps |
mobile_install_app | Install an APK file |
mobile_shell | Run a shell command on the device |
mobile_open_url | Open a URL in the device browser |
mobile_push_file | Push a file to the device |
mobile_pull_file | Pull a file from the device |
mobile_screen_record | Record the device screen |
If multiple devices are connected, pass the serial parameter to target a specific device. Use mobile_list_devices to see all available serials.
You can also import the package programmatically:
import { listDevices, screenshot, tap, typeText } from '@codmir/mobile-connector';
const devices = await listDevices();
const base64 = await screenshot(devices[0].serial);
await tap(540, 1200, devices[0].serial);
await typeText('hello world', devices[0].serial);
Apache-2.0
FAQs
Codmir Mobile Connector - AI-powered Android phone control via ADB and scrcpy for Claude, Cursor, and Windsurf
We found that @codmir/mobile-connector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.