Back to Home
mikepenz icon

adbfriend

Verified Safe

by mikepenz

Overview

Manages Android devices via ADB, with an MCP server to integrate ADB functionalities into AI tools.

Installation

Run Command
adbfriend mcp server

Environment Variables

  • ANDROID_HOME
  • adbfriend-allowed-paths
  • adbfriend-host-allowed-paths

Security Notes

The project demonstrates good security practices by explicitly defining and enforcing `allowed_paths` on the Android device and `host_allowed_paths` on the host system, mitigating arbitrary file access. It also uses string escaping functions (`escapeForSync`, `escapeForMD5`) to help prevent common shell injection vulnerabilities when executing ADB shell commands. However, many core operations rely on `ShellCommandRequest`, which, if input sanitization were flawed or if an AI agent crafted a highly sophisticated malicious input to a tool, could still pose a risk. No hardcoded secrets or 'eval' statements were found. The inherent power of ADB operations (e.g., uninstalling apps, modifying system settings) means careful use in a controlled environment is always recommended.

Similar Servers

Stats

Interest Score43
Security Score8
Cost ClassMedium
Avg Tokens300
Stars56
Forks2
Last Update2025-11-25

Tags

ADBAndroidCLIMCP ServerDevelopmentAI ToolsFile Management