# Cursor

## Add via settings UI[​](#add-via-settings-ui "Direct link to Add via settings UI")

1. Open `Cursor Settings`.
2. Navigate to `MCP`.
3. Click `Add new MCP Server`.
4. Set the type to `command` and enter the value:

```
npx -y @mobilenext/mobile-mcp@latest
```

## Add via config file[​](#add-via-config-file "Direct link to Add via config file")

Alternatively, edit your Cursor MCP configuration file directly and add the following entry under `mcpServers`:

```
{

  "mcpServers": {

    "mobile-mcp": {

      "command": "npx",

      "args": ["-y", "@mobilenext/mobile-mcp@latest"]

    }

  }

}
```

Save the file and restart Cursor if prompted. Mobile MCP will start automatically when Cursor needs to call a mobile tool.
