Android-MCP is a lightweight bridge that connects AI agents with Android devices. Running as an MCP server, it enables large language models to perform real-world tasks on Android such as app navigation, UI interaction, and automated QA testing without requiring computer vision pipelines or preprogrammed scripts.
First, clone the repository and install dependencies:
git clone https://github.com/CursorTouch/Android-MCP.git
cd Android-MCP
uv pip install -r pyproject.toml
Ensure your Android device is recognized by ADB:
adb devices
Your device should appear as "authorized" in the list. If not, check your device's developer options and USB debugging settings.
Add the following JSON configuration to your client config file (replace the placeholders with your actual paths):
{
"mcpServers": {
"android-mcp": {
"command": "{{PATH_TO_UV}}",
"args": [
"--directory",
"{{PATH_TO_SRC}}/Android-MCP",
"run",
"main.py",
"--emulator"
]
}
}
}
Note: The --emulator
flag is used by default. Remove it if you want to connect to a physical device instead.
For Claude Desktop users, save this configuration as claude_desktop_config.json
in the %APPDATA%/Claude/
directory.
After configuration, restart Claude Desktop. "Android-MCP" should appear as an integration option.
Android-MCP provides several tools that Claude can use to interact with your Android device:
When using Claude with Android-MCP integration, you can instruct Claude to perform actions like:
If you encounter issues with the Android-MCP integration:
For more detailed troubleshooting information, refer to the MCP documentation.
Android-MCP can execute arbitrary UI actions on your mobile device. For safety, use it in controlled environments such as emulators or dedicated test devices, especially when running untrusted prompts or agents.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "android-mcp" '{"command":"{{PATH_TO_UV}}","args":["--directory","{{PATH_TO_SRC}}/Android-MCP","run","main.py","--emulator"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"android-mcp": {
"command": "{{PATH_TO_UV}}",
"args": [
"--directory",
"{{PATH_TO_SRC}}/Android-MCP",
"run",
"main.py",
"--emulator"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"android-mcp": {
"command": "{{PATH_TO_UV}}",
"args": [
"--directory",
"{{PATH_TO_SRC}}/Android-MCP",
"run",
"main.py",
"--emulator"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect