android-mcp-harness
Local MCP server for Android emulator control, exposing tools to get emulator status, inspect UI tree, capture screenshots, and open App settings via Appium and ADB.
README
Android MCP Harness
Arquitectura SUME + STDG activa: mapa global, registro de cambios y guía de estructura.
El flujo ya no vive en un único script: entrada, contratos, sesión Appium, navegación, evidencia y salida están separados para que el futuro MCP escale sin mezclar responsabilidades.
Harness local para observar y controlar un emulador Android mediante Appium, UiAutomator2 y ADB. El objetivo inicial es demostrar la cadena completa:
Python → Appium → UiAutomator2 → ADB → Android Emulator
Estado actual
Fase 1: demo segura que abre Ajustes, localiza Apps, pulsa el elemento y guarda
una captura en artifacts/.
No integra todavía agentes, Auralis, Trinidad ni Glas: serán clientes del MCP, no una ampliación de autoridad sobre Android.
Preparación local
-
Arrancar un emulador Android desde Android Studio.
-
Crear el entorno Python e instalar el cliente:
python -m venv .venv .\.venv\Scripts\python -m pip install -r requirements.txt -
En otra terminal, iniciar Appium:
$env:JAVA_HOME = 'C:\Program Files\Eclipse Adoptium\jdk-17.0.17.10-hotspot' $env:ANDROID_HOME = 'C:\Users\gatak\AppData\Local\Android\Sdk' $env:Path = "$env:JAVA_HOME\bin;$env:ANDROID_HOME\platform-tools;$env:Path" .\node_modules\.bin\appium.cmd -
Ejecutar el demo:
.\.venv\Scripts\python scripts\demo_settings.py
El script solo se conecta al emulador emulator-5554 salvo que se indique otro
valor mediante ANDROID_UDID.
MCP local y campaña ECA
El arnés ya expone un servidor MCP local por stdio, sin abrir un puerto de
red. Sus cuatro herramientas son emulator.get_status, ui.get_tree,
screen.capture y settings.open_apps. Las tres primeras son observación; la
última es la única navegación declarada: Ajustes → Apps.
Un cliente MCP, como Trinidad en una fase posterior, debe iniciar este comando:
.\.venv\Scripts\python -m entradas.mcp.server
Para comprobar el comportamiento con el AVD y Appium activos, ejecutar la campaña ECA real:
$env:ANDROID_MCP_RUN_EMULATOR = '1'
.\.venv\Scripts\python -m unittest tests.test_mcp_emulator_e2e -v
La campaña comprueba observación sin cambio de pantalla, navegación con evidencia local y el protocolo stdio en un proceso separado.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.