# VS Code

## Add via command palette[​](#add-via-command-palette "Direct link to Add via command palette")

Open the command palette (`Cmd+Shift+P` on macOS, `Ctrl+Shift+P` on Windows and Linux), run `MCP: Add Server`, and paste the configuration when prompted.

## Add via settings.json[​](#add-via-settingsjson "Direct link to Add via settings.json")

Add the following to your user `settings.json` or to a workspace-level MCP configuration file:

```
{

  "mcp": {

    "servers": {

      "mobile-mcp": {

        "command": "npx",

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

        "type": "stdio"

      }

    }

  }

}
```

Save the file. VS Code will start Mobile MCP automatically when an MCP-aware feature needs to call a mobile tool. No restart is required if you are using a workspace config; for changes to user settings, reload the window.
