Android Viewer
Let AI agents tap, swipe and fold Android emulators while you watch in a browser
Android Viewer is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- macOS, Windows, Linux
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- Version
- 1.0.2
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add android-viewer -- npx -y @acertijosapps/android-viewerAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"android-viewer": {
"command": "npx",
"args": [
"-y",
"@acertijosapps/android-viewer"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"android-viewer": {
"command": "npx",
"args": [
"-y",
"@acertijosapps/android-viewer"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"android-viewer": {
"command": "npx",
"args": [
"-y",
"@acertijosapps/android-viewer"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"android-viewer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@acertijosapps/android-viewer"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add android-viewer -- npx -y @acertijosapps/android-viewerOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.android-viewer]
command = "npx"
args = ["-y", "@acertijosapps/android-viewer"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"android-viewer": {
"command": "npx",
"args": [
"-y",
"@acertijosapps/android-viewer"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "android-viewer": { "command": "npx", "args": [ "-y", "@acertijosapps/android-viewer" ] } } }Or run: gemini mcp add -s user android-viewer npx -- -y @acertijosapps/android-viewer
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "android-viewer": { "command": "npx", "args": [ "-y", "@acertijosapps/android-viewer" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "android-viewer": { "command": "npx", "args": [ "-y", "@acertijosapps/android-viewer" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "android-viewer": { "command": "npx", "args": [ "-y", "@acertijosapps/android-viewer" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "android-viewer": { "command": "npx", "args": [ "-y", "@acertijosapps/android-viewer" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "android-viewer": { "command": "npx", "args": [ "-y", "@acertijosapps/android-viewer" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "android-viewer": { "command": "npx", "args": [ "-y", "@acertijosapps/android-viewer" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "android-viewer": { "command": "npx", "args": [ "-y", "@acertijosapps/android-viewer" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
ANDROID_VIEWER_URLViewer to show actions live (default http://localhost:8093); without it, adb is used directlyANDROID_HOMEAndroid SDK location, if adb and emulator are not found automatically
About Android Viewer
The package does two jobs. Run on its own, it starts a browser viewer that streams any Android Virtual Device on your machine over WebSocket, using adb screenrecord video decoded with WebCodecs. Started with the mcp argument, it becomes a stdio MCP server whose tools perform the same actions, so the agent's taps appear live in the viewer you have open.
Its distinguishing feature is foldable support. The agent or the user can switch an emulator between closed, half-opened, opened and rear-display postures, and the stream follows whichever panel is active. Nothing is installed on the device: only adb and, to list and start AVDs, the Android emulator.
The README lists limits: drags are sent on release rather than live, there is no keyboard passthrough or audio, latency is higher than scrcpy, and several emulators recording at once slow the software encoder. Coordinates are normalized from 0 to 1 over the screenshot, so they hold across postures and rotations.
Tools this server provides (10)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 10 tools changes data; 7 names don't say.
From the server's own tool labels and tool names; not verified by us.
- list_devicesName suggests: reads
- Lists AVDs on the machine and other adb devices, with serial and boot state.
- launch_avd
- Starts an AVD by name.
- get_stateName suggests: reads
- Returns display size, rotation, current and available postures, and the viewer URL.
- screenshot
- Returns a PNG of the active display, longest side up to 1024 px.
- tap
- Taps a normalized position on the screen.
- swipe
- Swipes between two points; same start and end held 500 ms or more is a long press.
- press_key
- Presses back, home, recents, power, wakeup, volume, enter, delete, tab or escape.
- type_text
- Types printable ASCII text.
- rotate
- Rotates the emulator 90 degrees left or right.
- set_postureName suggests: changes
- Sets closed, half_opened, opened, rear_display, a state id, or resets.
What it does
- Live browser viewer
- Streams the emulator screen to a browser tab, shared by every open tab for that device.
- Foldable postures
- Switch between closed, half-opened, opened and rear-display states on emulators.
- Normalized coordinates
- Taps and swipes use 0 to 1 positions, so they work in any orientation or posture.
- Works without the viewer
- If no viewer is running, the MCP server drives the device through adb directly.
- No device-side install
- Needs no APK or pushed server, only adb on the host.
- Emulator controls
- Back, Home, Recents, Power, Volume, rotate and full-resolution screenshots.
Good for
- Let a coding agent test an Android app on an emulator
- Check a layout across foldable postures
- Watch an agent's taps in real time in a browser pane
- Capture screenshots of an app screen for review
- Start a named AVD from an agent conversation
Pricing
Open source
MIT licence; free to run
Android Viewer FAQ
What do I need installed?
Node.js 18 or later and the Android SDK platform tools (adb). The emulator is needed to list and start AVDs.
Which operating systems work?
The README says macOS, Linux and Windows.
Do I have to run the viewer?
No. The viewer is optional; without it the MCP server uses adb directly, but you will not see actions live.
How do I add Android Viewer to Claude Code?
Run `claude mcp add android-viewer -- npx -y @acertijosapps/android-viewer mcp`.
Can other websites control my emulators?
The README says POST requests need a JSON content type and a local origin, so other sites cannot drive your devices.
Is Android Viewer free?
Yes. Android Viewer is open source, so you can use and self-host it for free.
What are the best alternatives to Android Viewer?
The closest alternatives to Android Viewer are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


