> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Xero in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/xero
Last updated: 2026-11-24

Share Xero with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or custom connection sign-in, 42 tools (19 read-only).

---

To give your team Xero in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Xero integration in a Metorial portal, and each person signs in to Xero with their own account. Agents can manage accounting, invoicing, and financial operations for small and medium-sized businesses. The integration has 42 tools, 19 read-only, 21 write and 2 destructive, plus 4 triggers.

**What you will learn**

- How an admin shares Xero in a portal and how each person connects
- The 39 OAuth scopes Xero can request, and what each one allows
- How to keep the 19 read-only tools and reject the other 23

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Xero for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **Xero OAuth** (default) | OAuth | Signs in to Xero |
| **Custom Connection (Client Credentials)** | Custom credentials | `clientId` and `clientSecret` |

The portal and `metorial setup` use **Xero OAuth** unless someone picks another method.

### Xero OAuth

People sign in to Xero and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `openid` | OpenID | Access to OpenID identity |
| `profile` | Profile | Access to user profile information |
| `email` | Email | Access to user email address |
| `offline_access` | Offline Access | Maintain connection and refresh tokens automatically |
| `accounting.invoices` | Invoices | Read and write access to invoices, credit notes, purchase orders, quotes, repeating invoices, and items |
| `accounting.invoices.read` | Invoices (Read) | Read-only access to invoices, credit notes, purchase orders, quotes, repeating invoices, and items |
| `accounting.payments` | Payments | Read and write access to payments, batch payments, prepayments, and overpayments |
| `accounting.payments.read` | Payments (Read) | Read-only access to payments, batch payments, prepayments, and overpayments |
| `accounting.banktransactions` | Bank Transactions | Read and write access to bank transactions and bank transfers |
| `accounting.banktransactions.read` | Bank Transactions (Read) | Read-only access to bank transactions and bank transfers |
| `accounting.manualjournals` | Manual Journals | Read and write access to manual journals |
| `accounting.manualjournals.read` | Manual Journals (Read) | Read-only access to manual journals |
| `accounting.transactions` | Transactions (Legacy) | Legacy broad transaction scope for apps created before March 2, 2026. Leave unchecked for new Xero apps. |
| `accounting.transactions.read` | Transactions (Legacy Read) | Legacy broad transaction read scope for apps created before March 2, 2026. Leave unchecked for new Xero apps. |
| `accounting.contacts` | Contacts | Read and write access to contacts and contact groups |
| `accounting.contacts.read` | Contacts (Read) | Read-only access to contacts and contact groups |
| `accounting.settings` | Settings | Read and write access to chart of accounts, tax rates, currencies, etc. |
| `accounting.settings.read` | Settings (Read) | Read-only access to chart of accounts, tax rates, currencies, etc. |
| `accounting.reports.aged.read` | Aged Reports (Read) | Read-only access to aged payables and aged receivables reports |
| `accounting.reports.balancesheet.read` | Balance Sheet Report (Read) | Read-only access to the Balance Sheet report |
| `accounting.reports.banksummary.read` | Bank Summary Report (Read) | Read-only access to the Bank Summary report |
| `accounting.reports.executivesummary.read` | Executive Summary Report (Read) | Read-only access to the Executive Summary report |
| `accounting.reports.profitandloss.read` | Profit and Loss Report (Read) | Read-only access to the Profit and Loss report |
| `accounting.reports.trialbalance.read` | Trial Balance Report (Read) | Read-only access to the Trial Balance report |
| `accounting.reports.taxreports.read` | Tax Reports (Read) | Read-only access to GST and BAS reports |
| `accounting.reports.read` | Reports (Legacy Read) | Legacy broad reports scope for apps created before March 2, 2026. Leave unchecked for new Xero apps. |
| `accounting.journals.read` | System Journals (Read) | Read-only access to system-generated journal entries. This is a legacy or premium-gated Xero scope, not needed for manual journals. |
| `accounting.attachments` | Attachments | Read and write access to file attachments |
| `accounting.attachments.read` | Attachments (Read) | Read-only access to file attachments |
| `assets` | Assets | Read and write access to fixed assets |
| `assets.read` | Assets (Read) | Read-only access to fixed assets |
| `projects` | Projects | Read and write access to projects and time tracking |
| `projects.read` | Projects (Read) | Read-only access to projects and time tracking |
| `files` | Files | Read and write access to Xero Files |
| `files.read` | Files (Read) | Read-only access to Xero Files |
| `bankfeeds` | Bank Feeds | Access to the restricted Bank Feeds API for pushing statement data. Requires Xero financial-services partner access. |
| `payroll.au` | Payroll AU | Access to Australian payroll |
| `payroll.uk` | Payroll UK | Access to UK payroll |
| `payroll.nz` | Payroll NZ | Access to New Zealand payroll |

### Custom Connection (Client Credentials)

To connect, a person enters these values:

- `clientId`: Client ID from Xero Developer Portal
- `clientSecret`: Client Secret from Xero Developer Portal

### Setup settings

Whichever method you pick, setup also asks for:

- `tenantId` (optional): Xero organisation (tenant) ID. Required for multi-tenant OAuth apps. If not set, the first connected organisation will be used. Custom Connections do not require this value.

## Use your own Xero OAuth app

With your own OAuth app, people see your company's name on the Xero consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose Xero and copy the **Redirect URI**.

2. **Register the app with Xero**

   Create an OAuth app or client in Xero and add the redirect URI from Metorial as its redirect or callback URL. The vendor documents this in [OAuth documentation](https://developer.xero.com/documentation/guides/oauth2/auth-flow/).

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the Xero integration.

## Admin: share Xero in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Xero. Under **Auth Method**, keep **Xero OAuth** or pick another. For how members connect, choose **Each person connects**, so everyone signs in to Xero as themselves.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Xero.

4. **Choose who gets it**

   Add the access groups that should see Xero. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Xero integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search xero
```

## Employee: connect Xero

### In the portal

1. **Open Xero in the catalog**

   Sign in to your portal and open Xero. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A Xero sign-in tab opens. Sign in and approve the permissions listed.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search xero
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **Xero OAuth**. To connect with **Custom Connection (Client Credentials)** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Xero connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list xero
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 19 read-only tools, such as `get_report` and `list_items`, and lose the 21 write tools, such as `create_item` or `update_item`, and the 2 destructive tools, such as `delete_payment` or `remove_contact_from_contact_group`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list xero
metorial tools <integration-id>
metorial call <integration-id> get_organisation -d '{}'
```

`metorial tools` lists the 42 tools, minus any you rejected. `get_organisation` takes no input. 

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (19)

- `list_payments`: Lists payments recorded in Xero.
- `list_accounts`: Lists all accounts in the chart of accounts.
- `get_settings`: Retrieves key organisation settings from Xero including tax rates, tracking categories, currencies, and branding themes.
- `list_bank_transactions`: Lists spend and receive money transactions from Xero.
- `get_contact`: Retrieves a single contact by ID with full details including addresses, phone numbers, and financial information. Needs `contactId`.
- `list_quotes`: Lists quotes from Xero with filtering options.
- `list_invoices`: Lists invoices and bills from Xero with filtering options.
- `list_purchase_orders`: Lists purchase orders from Xero with filtering options.
- `list_items`: Lists inventory items from Xero.
- `list_manual_journals`: Lists manual journal entries from Xero with optional filtering by status, date, or modification time.
- `get_invoice`: Retrieves a single invoice or bill by its ID, returning full details including line items, payment status, and contact information. Needs `invoiceId`.
- `get_organisation`: Retrieves details about the connected Xero organisation, including name, legal name, country, currency, tax settings, financial year dates, and timezone.
- `list_contacts`: Lists contacts from Xero with filtering and search.
- `get_report`: Generates a financial report from Xero. Needs `reportType`.
- `list_credit_notes`: Lists credit notes from Xero with optional filtering.
- `list_bank_transfers`: Lists bank transfers between bank accounts in Xero.
- `get_bank_transfer`: Retrieves a single Xero bank transfer by ID, including source and destination bank accounts, linked bank transaction IDs, amount, reconciliation state, and attachment state. Needs `bankTransferId`.
- `get_contact_group`: Retrieves a single Xero contact group by ID, including the contacts returned by Xero for that group. Needs `contactGroupId`.
- `list_contact_groups`: Lists active Xero contact groups.

### Write tools (21)

- `create_credit_note`: Creates a new credit note in Xero. Needs `type`, `contactId` and `lineItems`.
- `create_quote`: Creates a new quote (estimate) in Xero. Needs `contactId` and `lineItems`.
- `create_account`: Creates a new account in the chart of accounts. Needs `code`, `name` and `type`.
- `create_manual_journal`: Creates a manual journal entry in Xero. Needs `narration` and `journalLines`.
- `create_payment`: Records a payment against an invoice or credit note in Xero. Needs `accountCode` and `amount`.
- `create_invoice`: Creates a new sales invoice (ACCREC) or purchase bill (ACCPAY) in Xero. Needs `type`, `contactId` and `lineItems`.
- `create_contact`: Creates a new contact (customer or supplier) in Xero. Needs `name`.
- `update_credit_note`: Updates a credit note in Xero. Needs `creditNoteId`.
- `update_account`: Updates an existing account in the chart of accounts. Needs `accountId`.
- `create_item`: Creates a new inventory item in Xero. Needs `code`.
- `update_quote`: Updates an existing quote in Xero. Needs `quoteId`.
- `update_invoice`: Updates an existing invoice or bill in Xero. Needs `invoiceId`.
- `update_contact`: Updates an existing contact in Xero. Needs `contactId`.
- `create_purchase_order`: Creates a new purchase order for a supplier in Xero. Needs `contactId` and `lineItems`.
- `create_bank_transaction`: Creates a spend or receive money transaction in Xero. Needs `type`, `contactId`, `bankAccountId` and `lineItems`.
- `update_item`: Updates an existing inventory item in Xero. Needs `itemId`.
- `update_purchase_order`: Updates an existing purchase order. Needs `purchaseOrderId`.
- `create_bank_transfer`: Creates a transfer between two Xero bank accounts. Needs `amount`.
- `add_contacts_to_contact_group`: Adds one or more existing Xero contacts to a contact group. Needs `contactGroupId` and `contactIds`.
- `create_contact_group`: Creates a new Xero contact group for segmenting contacts. Needs `name`.
- `update_contact_group`: Updates a Xero contact group name or status. Needs `contactGroupId`.

### Destructive tools (2)

- `delete_payment`: Deletes (removes) a payment from Xero. Needs `paymentId`.
- `remove_contact_from_contact_group`: Removes a single contact from a Xero contact group. Needs `contactGroupId` and `contactId`.

## Triggers

Xero has 4 triggers, which fire on events in Xero:

- `invoice_changes`: Triggers when invoices or bills are created or updated in Xero, including status changes (authorised, paid, voided).
- `inbound_webhook`
- `contact_changes`: Triggers when contacts (customers or suppliers) are created or updated in Xero.
- `payment_changes`: Triggers when payments are created, updated, or reconciled in Xero.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Xero there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Xero on metorial.com](https://metorial.com/integrations/xero): the integration overview