> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobilerun.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor

> Connect Cursor to Mobilerun phones through the Model Context Protocol.

Cursor is an AI code editor. Mobilerun gives its agent access to a phone for inspecting mobile apps while you develop.

## Setup

1. [Set up a phone](https://docs.mobilerun.ai/devices.md) and install Cursor.

2. [Install the Mobilerun MCP server in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=mobilerun\&config=eyJ1cmwiOiJodHRwczovL2Nsb3VkLm1vYmlsZXJ1bi5haS9hcGkvbWNwIn0%3D) and confirm the installation.

   Alternatively, merge this configuration into `~/.cursor/mcp.json` for all projects, or `.cursor/mcp.json` in your project:

   ```json ~/.cursor/mcp.json theme={null}
   {
     "mcpServers": {
       "mobilerun": {
         "url": "https://cloud.mobilerun.ai/api/mcp"
       }
     }
   }
   ```

3. Open Cursor's MCP settings and sign in to Mobilerun when prompted.

Alternatively, use the [mobile-harness skill](https://docs.mobilerun.ai/skills/mobile-harness.md) for Python-based device control.

## First task

> List my Mobilerun devices and take a screenshot of the ready device.

Review tool permissions before approving actions. See [MCP Server](https://docs.mobilerun.ai/mcp-server.md) for available tools and authentication.

See the [Cursor MCP documentation](https://cursor.com/docs/mcp).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.