Mobile Device Control MCP server

Enables remote control of Android and iOS devices through commands for screenshots, app management, screen interactions, and UI navigation, ideal for automated testing and demonstrations.
Back to servers
Setup instructions
Provider
Mobile Next
Release date
Apr 03, 2025
Language
TypeScript
Package
Stats
112.9K downloads
2.7K stars

Mobile MCP is a server that enables scalable mobile automation and development through a platform-agnostic interface for iOS and Android devices. It allows AI agents and LLMs to interact with mobile applications using accessibility snapshots or coordinate-based interactions from screenshots, eliminating the need for platform-specific knowledge.

Installation

You can add the Mobile MCP server to your AI assistant or IDE using a standard configuration:

{
  "mcpServers": {
    "mobile-mcp": {
      "command": "npx",
      "args": ["-y", "@mobilenext/mobile-mcp@latest"]
    }
  }
}

Prerequisites

Before using Mobile MCP, ensure you have:

Tool-Specific Installation

Different AI tools require specific installation methods:

Amp

Add via the VS Code extension settings or update your settings.json:

"amp.mcpServers": {
  "mobile-mcp": {
    "command": "npx",
    "args": [
      "@mobilenext/mobile-mcp@latest"
    ]
  }
}

Or use the CLI:

amp mcp add mobile-mcp -- npx @mobilenext/mobile-mcp@latest

Claude-based Tools

For Claude Code CLI:

claude mcp add mobile-mcp -- npx -y @mobilenext/mobile-mcp@latest

Copilot

Use the interactive CLI:

/mcp add

Or edit ~/.copilot/mcp-config.json:

{
  "mcpServers": {
    "mobile-mcp": {
      "type": "local",
      "command": "npx",
      "tools": ["*"],
      "args": ["@mobilenext/mobile-mcp@latest"]
    }
  }
}

Gemini CLI

gemini mcp add mobile-mcp npx -y @mobilenext/mobile-mcp@latest

Device Setup

Simulators and Emulators

Mobile MCP can connect to iOS Simulators and Android Emulators running in the background.

For Android emulators:

  1. Start an emulator using avdmanager or the emulator command
  2. Run Mobile MCP with the appropriate flags

For iOS simulators:

  1. List available simulators: xcrun simctl list
  2. Boot a simulator: xcrun simctl boot "iPhone 16"

Usage Examples

After adding the MCP server to your AI tool, you can instruct your assistant to perform various mobile automation tasks. Here are some example workflows:

Content Interaction

Find the video called "Beginner Recipe for Tonkotsu Ramen" by Way of Ramen, click on like video, after liking write a comment "this was delicious, will make it next Friday", share the video with the first contact in your WhatsApp list.

App Installation and Rating

Find and Download a free "Pomodoro" app that has more than 1k stars. Launch the app, register with my email, after registration find how to start a pomodoro timer. When the pomodoro timer started, go back to the app store and rate the app 5 stars, and leave a comment how useful the app is.

Weather and Messaging

Open Weather app, check tomorrow's weather forecast for "Berlin", and send the summary via WhatsApp/Telegram/Slack to contact "Lauren Trown", thumbs up their response.

Calendar and Meeting Setup

Open Zoom app, schedule a meeting titled "AI Hackathon" for tomorrow at 10AM with a duration of 1 hour, copy the invitation link, and send it via Gmail to contacts "[email protected]".

Available Tools

Mobile MCP provides a comprehensive set of tools for mobile automation:

Device Management

  • List available devices
  • Get screen size and orientation
  • Set screen orientation

App Management

  • List installed apps
  • Launch, terminate, install, and uninstall apps

Screen Interaction

  • Take and save screenshots
  • List UI elements with properties
  • Tap, double-tap, and long-press at coordinates
  • Swipe in any direction

Input & Navigation

  • Type text
  • Press device buttons (HOME, BACK, etc.)
  • Open URLs in the device browser

Platform Support

Mobile MCP works with:

  • iOS: Simulators and real devices via native accessibility and WebDriverAgent
  • Android: Emulators and real devices via ADB and UI Automator
  • Cross-platform: Unified API works across both platforms

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "mobile-mcp" '{"command":"npx","args":["-y","@mobilenext/mobile-mcp@latest"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "mobile-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@mobilenext/mobile-mcp@latest"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "mobile-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@mobilenext/mobile-mcp@latest"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later