# Use the CLI and local MCP server

Download the [CLI script](/downloads/luca.mjs).
Node.js 18 or later runs the script without other packages.

```bash
node luca.mjs --brand pay overview
node luca.mjs --brand plus search --query 'Xero connection'
node luca.mjs --brand pay answer --question 'How do I sign up?'
node luca.mjs --brand pay assess --goal pay_bills \
  --active-abn yes --gst-registered yes --accounting xero
```

The script uses the live Pages previews by default.
The Node CLI and native binaries call public API and MCP routes without a password.
Set `LUCA_BASE_URL` or `--base` to use another deployment.

Run the same script as a local stdio MCP server:

```bash
node luca.mjs --brand pay mcp
```

For a client configuration, use the absolute path to the downloaded script:

```json
{
  "mcpServers": {
    "luca-pay": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/luca.mjs", "--brand", "pay", "mcp"]
    }
  }
}
```

Replace `/ABSOLUTE/PATH/TO/luca.mjs` with the actual absolute path.
The local server sends requests to the selected public MCP endpoint.
