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
- A portal with at least one access group
- An account with Xero for each person who connects
- For the CLI steps: the Metorial 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 | 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 PortalclientSecret: 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:
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
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.
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 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. NeedscontactId.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. NeedsinvoiceId.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. NeedsreportType.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. NeedsbankTransferId.get_contact_group: Retrieves a single Xero contact group by ID, including the contacts returned by Xero for that group. NeedscontactGroupId.list_contact_groups: Lists active Xero contact groups.
Write tools (21)
create_credit_note: Creates a new credit note in Xero. Needstype,contactIdandlineItems.create_quote: Creates a new quote (estimate) in Xero. NeedscontactIdandlineItems.create_account: Creates a new account in the chart of accounts. Needscode,nameandtype.create_manual_journal: Creates a manual journal entry in Xero. NeedsnarrationandjournalLines.create_payment: Records a payment against an invoice or credit note in Xero. NeedsaccountCodeandamount.create_invoice: Creates a new sales invoice (ACCREC) or purchase bill (ACCPAY) in Xero. Needstype,contactIdandlineItems.create_contact: Creates a new contact (customer or supplier) in Xero. Needsname.update_credit_note: Updates a credit note in Xero. NeedscreditNoteId.update_account: Updates an existing account in the chart of accounts. NeedsaccountId.create_item: Creates a new inventory item in Xero. Needscode.update_quote: Updates an existing quote in Xero. NeedsquoteId.update_invoice: Updates an existing invoice or bill in Xero. NeedsinvoiceId.update_contact: Updates an existing contact in Xero. NeedscontactId.create_purchase_order: Creates a new purchase order for a supplier in Xero. NeedscontactIdandlineItems.create_bank_transaction: Creates a spend or receive money transaction in Xero. Needstype,contactId,bankAccountIdandlineItems.update_item: Updates an existing inventory item in Xero. NeedsitemId.update_purchase_order: Updates an existing purchase order. NeedspurchaseOrderId.create_bank_transfer: Creates a transfer between two Xero bank accounts. Needsamount.add_contacts_to_contact_group: Adds one or more existing Xero contacts to a contact group. NeedscontactGroupIdandcontactIds.create_contact_group: Creates a new Xero contact group for segmenting contacts. Needsname.update_contact_group: Updates a Xero contact group name or status. NeedscontactGroupId.
Destructive tools (2)
delete_payment: Deletes (removes) a payment from Xero. NeedspaymentId.remove_contact_from_contact_group: Removes a single contact from a Xero contact group. NeedscontactGroupIdandcontactId.
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_webhookcontact_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, Cursor, Codex and ChatGPT: connect each client to your portal and use Xero there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Xero on metorial.com: the integration overview