アイリ Android MCP
proj-airi/airi-android · 17 stars · TypeScript · MIT
MCP server A MCP server to allow LLM to use Android Device.
Install
The repo has no one-line install. Follow its README.
Files
アイリ 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.4
For 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 start
Development 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 typecheck
Contributing
See AGENTS.md for code guidelines.
Environment Variables
| Variable | Description | Default |
|---|---|---|
USE_STDIO |
Set to true to use stdio transport mode |
false |
ADB_HOST |
ADB server host address | localhost |
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
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 17
- License
- MIT
- Language
- TypeScript
- Last push
- 2026-01-14
- Forks
- 3
- Topics
- adb, airi, android, llm, mcp-server
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k