airi-android
Allows control of Android devices, including input simulation (tap, swipe, text), device information retrieval (screen size, battery, CPU), UI hierarchy access, and device management (connect, reset, shell commands).
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@airi-androidtap on the screen at 300 500"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
アイリ Android
A MCP server that allows airi all LLMs to control Android devices. This project is a child project of airi.
Features
Input Control
input_tap- Tap on the screen at given coordinatesinput_swipe- Swipe from one coordinate to anotherinput_text- Input text on the deviceinput_keyevent- Send a key event to the deviceinput_press- Press the current keyinput_roll- Roll the trackball
Device Information
wm_size- Get the physical screen sizewm_density- Get the display densitycpu_percent- Get CPU usage percentagecpu_count- Get the number of CPU coresbattery_level- Get battery levelbattery_stats- Get detailed battery statistics
UI & Activity
ui_get_hierarchy- Get UI hierarchy (XML)utils_top_activity- Get the top activityutils_top_activities- Get all top activitiesutils_package_version- Get package version info
Device Management
device_connect- Connect to a device at specified host and portdevice_reset- Reset device connectionshell_execute- Execute any shell command
Usage
Docker (Recommended)
docker run --rm -it -p 3000:3000 -e ADB_HOST=host.docker.internal ghcr.io/proj-airi/airi-android:v0.3.4
# or stdio mode
docker run --rm -i -e USE_STDIO=true -e ADB_HOST=host.docker.internal ghcr.io/proj-airi/airi-android:v0.3.4For agents supporting MCP, you can use the following configuration:
// mcp.json
{
"mcpServers": {
// http mode
"airi-android-http": {
"url": "http://localhost:3000/mcp"
},
// stdio mode
"airi-android-stdio": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"USE_STDIO=true",
"-e",
"ADB_HOST",
"ghcr.io/proj-airi/airi-android:v0.3.4"
],
"env": {
"ADB_HOST": "host.docker.internal"
}
}
}
}Run Directly
Requires Bun to be installed.
# Install dependencies
bun install
# Start server (HTTP mode, port 3000)
bun run start
# Or use stdio mode
USE_STDIO=true bun run startDevelopment Setup
Prerequisites
Install Bun
Install Android Platform Tools
Connect an Android device (via USB or
adb connectfor emulators)
Commands
# Install dependencies
bun install
# Run tests
bun test
# Start development server
bun run dev
# Build binary
bun run build
# Lint code
bun run lint
# Type check
bun run typecheckContributing
See AGENTS.md for code guidelines.
Environment Variables
Variable | Description | Default |
| Set to |
|
| ADB server host address |
|
Tech Stack
Bun - JavaScript runtime
TypeScript - Type-safe JavaScript
MCP SDK - Model Context Protocol SDK
adbkit - ADB client library
Hono - Web framework
Zod - Schema validation
License
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/proj-airi/airi-android'
If you have feedback or need assistance with the MCP directory API, please join our Discord server