# AndroidMCP Framework

> AndroidMCP Framework is an open-source MCP server for developer tools. Build, run and test Android and Flutter apps from a coding agent. It runs locally on your machine and is started by your AI client.

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

## About

This server drives the Android toolchain through adb, so a coding agent can build, install and launch an app on an emulator or a physical device, then inspect it. UI automation is plain TypeScript plus platform-tools, with no Python runtime. When no target is named, it tries an explicit target, then the session default, then the single connected device.

The larger half is a change-aware testing workflow. It analyses native Android and Flutter workspaces, saves test cases, audits screens and writes timestamped Markdown and JSON reports. It can plan a run from Git changes without executing anything, keeps candidate, approved and executed states separate, and falls back to a broad regression when changed files are not mapped to tests.

It speaks stdio only, so Android Studio's HTTP-only MCP client cannot use it yet. `setup` writes a project config and a skill file for the agent you use, and the CLI is also available as `amf`.

## Features

- **Device control:** Build, install and launch apps on emulators and physical devices through adb.
- **Semantic UI automation:** Take screenshots and accessibility-tree snapshots saved under the project.
- **Change-aware test plans:** Map Git changes to saved test cases and flag unmapped files.
- **Test evidence checks:** Validate reports for freshness, matching Git HEAD and passing suites.
- **Selector repair:** Propose a new selector, require approval, back up and audit the change.
- **Agent skill generation:** Write a project-local skill for Claude Code, Codex, Cursor and others.

## Good for

- Let an agent launch the app and check a screen after a change
- Plan which tests to run for a Git diff
- Gather crash and logcat evidence from a device
- Run Flutter unit and device integration tests from the agent

## Install

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

```sh
claude mcp add androidmcp-framework -- npx -y androidmcp-framework
```

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": {
    "androidmcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "androidmcp-framework"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "androidmcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "androidmcp-framework"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "androidmcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "androidmcp-framework"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "androidmcp-framework": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "androidmcp-framework"
      ]
    }
  }
}
```

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 androidmcp-framework -- npx -y androidmcp-framework
```

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

```toml
[mcp_servers.androidmcp-framework]
command = "npx"
args = ["-y", "androidmcp-framework"]
```

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

```json
{
  "mcpServers": {
    "androidmcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "androidmcp-framework"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user androidmcp-framework npx -- -y androidmcp-framework

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

```json
{
  "mcpServers": {
    "androidmcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "androidmcp-framework"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "androidmcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "androidmcp-framework"
      ]
    }
  }
}
```

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": {
    "androidmcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "androidmcp-framework"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "androidmcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "androidmcp-framework"
      ]
    }
  }
}
```

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": {
    "androidmcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "androidmcp-framework"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "androidmcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "androidmcp-framework"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "androidmcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "androidmcp-framework"
      ]
    }
  }
}
```

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": {
    "androidmcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "androidmcp-framework"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 4 of 15 tools change data; 7 names don't say. From the server's own tool labels and tool names; not verified by us.

- `analyze_test_project` (name suggests: reads): Analyses a native Android or Flutter workspace for testing.
- `audit_screen`: Audits a screen as part of the testing workflow.
- `save_test_case`: Saves a test case definition.
- `write_test_report` (name suggests: changes): Writes a timestamped test report.
- `test_device`: Runs Flutter unit, widget or device integration tests.
- `screenshot`: Saves a screenshot and returns its path.
- `snapshot_ui`: Saves the full accessibility tree and returns a summary.
- `run_unified_test_run` (name suggests: changes): Coordinates native, Flutter and saved UI suites under one resumable run.
- `plan_change_aware_test_run`: Builds a reviewable plan from Git changes without running tests.
- `validate_test_evidence_bundle` (name suggests: reads): Checks reports for freshness, Git HEAD match and passing outcomes.
- `inspect_test_runtime` (name suggests: reads): Read-only overview of config, locks, manifests and the latest report.
- `analyze_test_quality` (name suggests: reads): Combines test inventory, coverage and flaky-test signals in one report.
- `evaluate_test_quality_gate`: Applies coverage thresholds and baseline regression policy.
- `run_test_suite_matrix` (name suggests: changes): Previews or runs selected Flutter and Gradle suites.
- `approve_selector_repair` (name suggests: changes): Validates and applies an approved selector fix with backup and audit.

## FAQ

### Does AndroidMCP Framework support HTTP?

No, stdio only; streamable HTTP is not implemented yet.

### Which coding agents are supported?

Claude Code, Codex, Gemini CLI, Antigravity, Cursor, GitHub Copilot and a generic agent.

### Do I need Python?

No, the Python uiautomator2 bridge was removed.

### What licence?

MIT.

### Is AndroidMCP Framework free?

Yes. AndroidMCP Framework is open source, so you can use and self-host it for free.

### How do I add AndroidMCP Framework to Claude Code?

Run this command in your terminal: claude mcp add androidmcp-framework -- npx -y androidmcp-framework

### What are the best alternatives to AndroidMCP Framework?

The closest alternatives to AndroidMCP Framework 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/androidmcp-framework
