mobile-agent-mcp
MCP server for mobile device testing with iOS simulators, Android emulators, and USB devices, managing Maestro flows, device diagnostics, screenshots, logs, and React Native/Expo development plumbing.
README
mobile-agent-mcp
MCP + CLI for iOS sims, Android emulators, and USB devices. Maestro runs flows; this handles config, doctor, logs, screenshots, RN diagnosis, and Expo/Android host plumbing.
Quick start
npm install -D mobile-agent-mcp
mobile-agent doctor
mobile-agent run-with-context smoke-login ios --json
Requires Node 20+, Maestro, Xcode (iOS), adb (Android).
Config
mobile-agent.config.json in repo root. See mobile-agent.config.example.json, examples/expo.config.json, examples/bare-rn.config.json.
Set MOBILE_AGENT_PROJECT_ROOT if MCP starts from the wrong cwd.
MCP tools
| Tool | Purpose |
|---|---|
doctor |
Preflight checks |
run_flow_with_context |
Flow + logs + screenshot + diagnosis |
run_maestro_flow / run_smoke_flows |
Flow execution |
screenshot |
PNG + inline image |
collect_logs / tail_logs |
Metro, logcat, sim logs |
metro_status / reload_app / boot_simulator |
Dev lifecycle |
validate_flow / write_flow |
Flow authoring |
adb_reverse / open_url / open_dev_url |
RN/Expo plumbing |
Resource: mobile-agent://screenshot/latest
Responses: docs/mcp-response-schema.md. Agent loop: docs/agent-skill.md.
MCP config:
{
"mcpServers": {
"mobile-agent": {
"command": "npx",
"args": ["-y", "mobile-agent-mcp"],
"env": { "MOBILE_AGENT_PROJECT_ROOT": "/absolute/path/to/your/project" }
}
}
}
CLI
mobile-agent doctor [--json]
mobile-agent run-with-context <flow> [ios|android] [--json]
mobile-agent run-all [ios|android] [--json]
mobile-agent logs [ios|android] [--json] [--duration-ms 3000]
mobile-agent screenshot [ios|android] [--json]
mobile-agent metro-status | reload-app | boot-simulator [--json]
mobile-agent validate-flow <flow> | write-flow <flow> [--template smoke] [--json]
mobile-agent adb-reverse 8081
mobile-agent open-dev-url [ios|android]
Flags: --project-root, --flows-dir, --screenshot-dir.
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
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.