# Android Viewer

> Android Viewer is an open-source MCP server for developer tools. Let AI agents tap, swipe and fold Android emulators while you watch in a browser. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Windows, Linux, CLI, Self-hosted
- **Repository:** https://github.com/acertijosapps/android-viewer
- **MCP Registry name:** io.github.acertijosapps/android-viewer
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add android-viewer -- npx -y @acertijosapps/android-viewer
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "android-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/android-viewer"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "android-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/android-viewer"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "android-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/android-viewer"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add android-viewer -- npx -y @acertijosapps/android-viewer
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.android-viewer]
command = "npx"
args = ["-y", "@acertijosapps/android-viewer"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "android-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/android-viewer"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "android-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/android-viewer"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "android-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/android-viewer"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "android-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/android-viewer"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "android-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/android-viewer"
      ]
    }
  }
}
```

## Tools

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_devices` (name suggests: reads): Lists AVDs on the machine and other adb devices, with serial and boot state.
- `launch_avd`: Starts an AVD by name.
- `get_state` (name 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_posture` (name suggests: changes): Sets closed, half_opened, opened, rear_display, a state id, or resets.

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/android-viewer
