5Lime Labs

Sheet noteHow AI connects to Xero: OAuth 2.0 and Custom Connections, per-organisation limits, webhooks, the official MCP server, and Xero's rules on AI use of data.

Sheet SY-048 · Accounting

Connecting AI to Xero

Xero runs the books for many ecommerce brands, agencies, and businesses whose accountant chose it for them. Its API is well documented and Xero publishes its own MCP server. Its developer terms also restrict how API data can be used with AI, so how we connect matters as much as what we build.

VendorXero Limited
CategoryAccounting
AccessOAuth 2.0. For one business, Xero offers Custom Connections: a premium integration that uses the client credentials grant against a single Xero organisation. The business buys a Custom Connection subscription in Xero, we create the connection and name them as the authorising user, and they approve the scopes on Xero's consent screen. For apps that serve many organisations, the standard authorization code or PKCE flow applies.
MCP serverofficial MCP server
SY-048.1What it isXero

Xero is cloud accounting software from New Zealand, used by businesses in Australia, the UK, the US, and elsewhere: invoices, quotes, bills, bank reconciliation, contacts, inventory items, tracking categories, and reports such as profit and loss, balance sheet, trial balance, and aged receivables. Developers reach it through the Xero Accounting API and related APIs. The payroll tools in Xero's MCP server only work for New Zealand and UK organisations, so for a US Xero user payroll usually lives in a separate system.

How access works

Xero publishes its MCP server on its own GitHub (XeroAPI/xero-mcp-server); it runs locally, supports Custom Connections and bearer tokens, and includes list tools for invoices, contacts, bank transactions, payments, quotes, manual journals, and reports, plus create and update tools for most of those records (payments can be created but have no update tool). Custom Connections are available for organisations in Australia, New Zealand, the UK, and the US, cost an extra monthly subscription, and can connect to the Demo Company free for testing. From 29 April 2026 new Custom Connections use granular scopes and no longer get the accounting.journals.read scope. New developer apps start in the Starter tier (5 connections, 1,000 calls per day per organisation); Core and above allow 5,000 per day. The Journals endpoint is a premium feature for apps in Xero's Advanced developer tier and above. Xero's developer pricing page also lists a remote MCP server in its AI toolkit: Demo Company only on the Starter tier, included on Core and above.

Vendor docs: https://developer.xero.com/documentation/

SY-048.2ScopeWhat an AI agent can do

Once Xero is connected.

C01Starts at step 01 Read

Answer questions from the current ledger

The agent reads the profit and loss, balance sheet, trial balance, and aged receivables and payables, and answers the owner's questions in context: which customers owe the most, how this quarter's gross margin compares to last, which tracking category is losing money. Every answer cites the report and dates used.

C02Starts at step 02 Draft

Draft invoices and quotes

When an order ships or a project milestone is signed off in another system, the agent creates the matching Xero invoice or quote as a draft with the right contact, items, tracking category, and tax rate. A person reviews and approves it inside Xero.

C03Starts at step 03 Approve

Code bank transactions with explanations

The agent looks at unreconciled bank lines, finds the likely match or account based on past coding, and proposes it with a one-line reason. The bookkeeper approves in batches; the agent never reconciles on its own until the owner turns that on for specific, repetitive transaction types.

C04Starts at step 01 Read

React to invoice and payment changes

Xero webhooks fire on contact, invoice, credit note, payment, overpayment, and prepayment events. The agent can thank a customer when a payment lands, update the CRM, or flag a credit note that wipes out a large invoice, without polling the API.

C05Starts at step 02 Draft

Prepare the month-end review

Before close, the agent lists draft invoices that never went out, bills with no attachment, and accounts with unusual movement, and writes a short note for the accountant. Adjusting journals stay with the accountant.

SY-048.3CautionsRead before connecting

What to watch.

  • Limits are tight and per organisation: 5 concurrent calls, 60 calls per minute, and 1,000 (Starter tier) or 5,000 (Core and above) calls per day. Large history pulls have to be queued and paced, and the Journals endpoint needs a higher developer tier.
  • Xero's developer terms (updated 4 December 2025) bar using API data to train or fine-tune any AI model, bar passing API data to a third party without the user's consent, and bar automated tools that simulate user actions without Xero's authorisation. We use the API only, send data only to model providers covered by the client's agreement, and never train on it.
  • Xero data egress is metered per app on paid developer tiers, so we cache report results instead of re-pulling them.
  • Approving invoices, recording payments, and manual journals stay behind a human approval. Xero's Early plan also caps how many invoices can be approved each month, and the API returns an error past that cap.

Xero and AI: questions.

Q.01Is there an official Xero MCP server?

Yes. Xero publishes one on GitHub as XeroAPI/xero-mcp-server; it runs locally and connects with a Custom Connection or a bearer token. Xero's developer pricing page also lists a remote MCP server, limited to the Demo Company on the Starter developer tier. Other Xero MCP servers in the public MCP registry come from third parties and are unofficial.

Q.02What is a Custom Connection and do I need one?

It is Xero's way for a single business to connect its own organisation to a private integration. You buy the subscription in Xero, approve the scopes yourself, and can remove it at any time. For most single-business builds it is the cleanest route.

Q.03Will Xero data be used to train an AI model?

No. Xero's developer terms forbid it, and we would not do it anyway. Your data is used to answer your questions and run your automations, through model providers whose terms prohibit training on it.

Q.04Can the AI run payroll in Xero?

Xero publishes payroll APIs for Australia, New Zealand, and the UK, and the payroll tools in its MCP server cover New Zealand and UK organisations only. A US business on Xero runs payroll in a separate system, such as Gusto, which we connect separately.

C-200Start hereReply within 1 business day

Run Xero? Tell us what else you run.

Xero is rarely the only system. List the others and the job that eats the most time, and we'll reply with what we'd connect first.

All systems · Security · How it works

Consult request
No. 0000
2026-11-28

A person on our team reads these and replies within one business day. Used only to answer you. Privacy.

Received

Got it, friend.

We'll get back to you within one business day. If it can't wait, text or call (224) 243-6864.