Xero

The Xero connector gives AI agents access to your Xero accounting data — invoices, contacts, payments, accounts, bank transactions, and financial reports — as well as the ability to create new records. Authentication uses OAuth 2.0 and your credentials are stored encrypted in MCPGate's vault, never exposed to the AI client.

Required scopes#

MCPGate requests the following OAuth scopes when you connect Xero. All scopes are requested up front to cover read and write operations across the full tool set.

ScopePurpose
accounting.transactionsRead and write invoices, payments, and bank transactions
accounting.contactsRead and write contacts (customers and suppliers)
accounting.reports.readRead financial reports (ProfitAndLoss, BalanceSheet, etc.)
accounting.settingsRead chart of accounts and organisation settings
openid profile emailIdentify the connected Xero user

Tool reference#

The Xero connector exposes 11 tools: 7 read and 4 write. Use the MCP Apps page to enable or disable individual tools per app.

ToolCategoryDescription
xero_list_invoicesreadList invoices in Xero, optionally filtered by status or contact
xero_get_invoicereadGet a specific Xero invoice by ID
xero_list_contactsreadList contacts (customers and suppliers) in Xero
xero_list_paymentsreadList payments in Xero
xero_list_accountsreadList chart of accounts in Xero
xero_get_reportreadGet a financial report from Xero (e.g. ProfitAndLoss, BalanceSheet, TrialBalance)
xero_list_bank_transactionsreadList bank transactions in Xero
xero_create_invoicewriteCreate a new invoice in Xero
xero_create_contactwriteCreate a new contact in Xero
xero_create_paymentwriteRecord a payment against an invoice or credit note in Xero
xero_create_bank_transactionwriteCreate a bank transaction (spend or receive money) in Xero

Common guardrail recipes#

Read-only access#

Enable only the seven read tools and deny all four write tools. Suitable for AI assistants that answer accounting questions, generate summaries, or export data without making any changes to Xero.

Transact preset#

Use the built-in transact preset to allow reads plus xero_create_invoice and xero_create_payment, while keeping xero_create_contact and xero_create_bank_transaction denied. Agents can handle standard invoicing workflows without modifying contacts or creating manual bank entries.

Rate-limit write operations#

Xero enforces an API rate limit of 60 calls per minute per app. Apply the cooldown guardrail template to write tools to prevent the agent from hitting rate limits during bulk operations. A 2-second minimum interval between write calls is recommended.

Troubleshooting#

  • AuthenticationUnsuccessful — The OAuth token has expired or been revoked. Xero access tokens expire after 30 minutes; refresh tokens last 60 days. MCPGate refreshes automatically — if this fails, reconnect the Xero connector.
  • Organisation not connected — Xero connections are scoped to a specific organisation. If you have multiple Xero organisations, you must connect each one separately in MCPGate.
  • Report not available — Some Xero reports require specific subscription tiers. If xero_get_report returns a subscription error, verify your Xero plan includes the requested report type.