Android MCP
@tomdwipo
关于 Android MCP
A lightweight MCP server for Android operating system automation. This server provides tools to interact directly with Android devices, enabling automated testing, app interaction, and device control.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"android-mcp": {
"type": "stdio",
"command": "bash",
"args": [
"-c",
"cd /path/to/agent/mcp/android && source .venv/bin/activate && uv run main.py --emulator"
],
"alwaysAllow": [
"State-Tool",
"Click-Tool",
"Type-Tool",
"Swipe-Tool"
]
}
}
}工具
9Click on specific coordinates
Get device state with optional screenshot
Long press on coordinates
Swipe between coordinates
Type text at coordinates
Drag and drop between coordinates
Press hardware buttons
Access notification panel
Wait for specified duration
概览
What is Android MCP?
Android MCP is a lightweight MCP server for Android operating system automation. It provides tools to interact directly with Android devices, enabling automated testing, app interaction, and device control.
How to use Android MCP?
Install Python 3.13+, uv package manager, and set up the project with uv sync. Connect an Android device with USB debugging enabled, or use an emulator with the --emulator flag. Run the server via uv run main.py or configure it in MCP client settings such as Claude Desktop.
Key features of Android MCP
- Click, long click, swipe, drag, and type on Android devices.
- Get device state with optional visual screenshots.
- Press hardware buttons and access notifications.
- Wait functionality for timing control.
- Works with both physical devices and Android emulators.
Use cases of Android MCP
- Automated app testing and UI interaction.
- Remote device control and scripting.
- Repetitive task automation on Android devices.
- Integration with AI assistants for device manipulation.
FAQ from Android MCP
What dependencies are required?
Python 3.13 or higher, uv package manager, ADB (Android Debug Bridge), and an Android device or emulator with USB debugging enabled.
How do I connect a physical device?
Enable Developer Options and USB debugging on the Android device, then connect via USB and verify with adb devices. Run uv run main.py (without the --emulator flag).
How do I use the server with an emulator?
Start the emulator, verify connection with adb connect emulator-5554, then run uv run main.py --emulator.
What tools are available?
Click, State, Long-Click, Swipe, Type, Drag, Press, Notification, and Wait tools. See the README for exact parameters.
How do I resolve “device not found” issues?
Ensure USB debugging is enabled, check adb devices output, try different cables/ports, or restart ADB with adb kill-server && adb start-server.
AI 与智能体 分类下的更多 MCP 服务器
欢迎来到 智言平台
Shy2593666979AgentChat 是一个基于 LLM 的智能体交流平台,内置默认 Agent 并支持用户自定义 Agent。通过多轮对话和任务协作,Agent 可以理解并协助完成复杂任务。项目集成 LangChain、Function Call、MCP 协议、RAG、Memory、HITL、Skill、Milvus 和 ElasticSearch 等技术,实现高效的知识检索与工具调用,使用 FastAPI 构建高性能后端服务。
MCP Client for Ollama (ollmcp)
joniglHarness the power of local LLMs with this TUI MCP Client for Ollama. Featuring all core MCP primitives (tools, prompts, resources), agent mode, multi-server, model switching, streaming responses, human-in-the-loop, thinking mode, model params config, system prompts, and saved pre
Unreal Engine Generative AI Support Plugin
prajwalshettydevUnreal Engine plugin for LLM/GenAI models & MCP UE5 server. OpenAI GPT-5, Deepseek R1, Claude Opus/Sonnet, Gemini 3, Grok 4, Alibaba Qwen, Kimi, ElevenLabs TTS, Inworld, OpenRouter, Groq, GLM, Ollama, Local, Meshy, Tripo, Hunyuan3D, Rodin, fal, Dashscope, Seedream. NPC AI, agenti
Shell and Coding agent for Claude and other mcp clients
rusiaamanShell and coding agent on mcp clients
MCP Claude Code
SDGLBLMCP implementation of Claude Code capabilities and more
评论