MetorialDocs

Set up Xero in Metorial for Claude, ChatGPT and Cursor

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'll 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

Sign-in methods

MethodTypeWhat a person provides
Xero OAuth (default)OAuthSigns in to Xero
Custom Connection (Client Credentials)Custom credentialsclientId 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:

ScopeNameWhat it allows
openidOpenIDAccess to OpenID identity
profileProfileAccess to user profile information
emailEmailAccess to user email address
offline_accessOffline AccessMaintain connection and refresh tokens automatically
accounting.invoicesInvoicesRead and write access to invoices, credit notes, purchase orders, quotes, repeating invoices, and items
accounting.invoices.readInvoices (Read)Read-only access to invoices, credit notes, purchase orders, quotes, repeating invoices, and items
accounting.paymentsPaymentsRead and write access to payments, batch payments, prepayments, and overpayments
accounting.payments.readPayments (Read)Read-only access to payments, batch payments, prepayments, and overpayments
accounting.banktransactionsBank TransactionsRead and write access to bank transactions and bank transfers
accounting.banktransactions.readBank Transactions (Read)Read-only access to bank transactions and bank transfers
accounting.manualjournalsManual JournalsRead and write access to manual journals
accounting.manualjournals.readManual Journals (Read)Read-only access to manual journals
accounting.transactionsTransactions (Legacy)Legacy broad transaction scope for apps created before March 2, 2026. Leave unchecked for new Xero apps.
accounting.transactions.readTransactions (Legacy Read)Legacy broad transaction read scope for apps created before March 2, 2026. Leave unchecked for new Xero apps.
accounting.contactsContactsRead and write access to contacts and contact groups
accounting.contacts.readContacts (Read)Read-only access to contacts and contact groups
accounting.settingsSettingsRead and write access to chart of accounts, tax rates, currencies, etc.
accounting.settings.readSettings (Read)Read-only access to chart of accounts, tax rates, currencies, etc.
accounting.reports.aged.readAged Reports (Read)Read-only access to aged payables and aged receivables reports
accounting.reports.balancesheet.readBalance Sheet Report (Read)Read-only access to the Balance Sheet report
accounting.reports.banksummary.readBank Summary Report (Read)Read-only access to the Bank Summary report
accounting.reports.executivesummary.readExecutive Summary Report (Read)Read-only access to the Executive Summary report
accounting.reports.profitandloss.readProfit and Loss Report (Read)Read-only access to the Profit and Loss report
accounting.reports.trialbalance.readTrial Balance Report (Read)Read-only access to the Trial Balance report
accounting.reports.taxreports.readTax Reports (Read)Read-only access to GST and BAS reports
accounting.reports.readReports (Legacy Read)Legacy broad reports scope for apps created before March 2, 2026. Leave unchecked for new Xero apps.
accounting.journals.readSystem 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.attachmentsAttachmentsRead and write access to file attachments
accounting.attachments.readAttachments (Read)Read-only access to file attachments
assetsAssetsRead and write access to fixed assets
assets.readAssets (Read)Read-only access to fixed assets
projectsProjectsRead and write access to projects and time tracking
projects.readProjects (Read)Read-only access to projects and time tracking
filesFilesRead and write access to Xero Files
files.readFiles (Read)Read-only access to Xero Files
bankfeedsBank FeedsAccess to the restricted Bank Feeds API for pushing statement data. Requires Xero financial-services partner access.
payroll.auPayroll AUAccess to Australian payroll
payroll.ukPayroll UKAccess to UK payroll
payroll.nzPayroll NZAccess 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.

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.

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.

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

Open Shared Resources

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

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.

Limit the tools

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

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:

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

Employee: connect Xero

In the portal

Open Xero in the catalog

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

Authenticate

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

Confirm

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

With the CLI

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.

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.

Check it worked

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