Xero MCP Server
Published
At a glance
- Category
- Business & payments
- GitHub repository
- XeroAPI/xero-mcp-server
- Watch out for
- The server can write financial records, including invoices, payments, bank transactions and manual journals, and can approve, revert and delete payroll timesheets, so grant only the scopes you need.
Xero publishes its MCP server under the XeroAPI GitHub organisation as the npm package @xeroapi/xero-mcp-server. It bridges MCP and Xero's public API so an agent can read and write accounting data: contacts, the chart of accounts, invoices, payments, reports and, for NZ and UK organisations, payroll.
It is a Node.js server (v18 or higher) that runs locally over stdio, normally launched with npx. You authenticate either with a Xero custom connection (client ID and secret for one organisation) or with a bearer token, which suits setups where the MCP client runs its own OAuth flow such as PKCE across several Xero accounts. Xero also runs a separate hosted Remote MCP server at https://api.xero.com/mcp/v1; its FAQ says Custom Connection apps cannot use that one.
This is not a read-only connector. Alongside the list tools there are create, update, approve and delete tools, so what the agent can do depends on the scopes you grant.
How it connects
Your AI app
An assistant or agent that supports MCP
Xero MCP Server
Runs as
- npx (Node.js)
Gives the agent
- Contacts and settings
- Invoices, quotes and credit notes
- Payments and bank transactions
- Financial reports
- Payroll
- Items and tracking
Xero
Signs in with
- OAuth / browser sign-in
What it can do
- Contacts and settings
- list-contacts, create-contact, update-contact and list-contact-groups manage customers and suppliers; list-accounts, list-tax-rates and list-organisation-details read settings.
- Invoices, quotes and credit notes
- list-invoices, create-invoice and update-invoice (drafts only), plus list-quotes, create-quote, update-quote, list-credit-notes and create-credit-note.
- Payments and bank transactions
- list-payments and create-payment, list-bank-transactions, create-bank-transaction and update-bank-transaction, plus manual journal tools such as create-manual-journal.
- Financial reports
- list-profit-and-loss, list-trial-balance, list-report-balance-sheet, list-aged-receivables-by-contact and list-aged-payables-by-contact.
- Payroll
- list-payroll-employees, leave tools like list-payroll-employee-leave-balances, and timesheet tools including create-payroll-timesheet, approve-payroll-timesheet and delete-payroll-timesheet.
- Items and tracking
- list-items, create-item, update-item, list-tracking-categories, create-tracking-category and update-tracking-options.
Setting it up
Create a Xero developer account and set up a Custom Connection; Xero says testing against the demo company is free. Add every scope in the relevant list: connections created before 29 Apr 2026 use the bundled SCOPES_V1 list, newer ones the granular SCOPES_V2 list, and the server tries V1 first. In Claude Desktop, open Settings, Developer, Edit config and add a "xero" entry to claude_desktop_config.json with "command": "npx", args ["-y", "@xeroapi/xero-mcp-server@latest"] and env values XERO_CLIENT_ID and XERO_CLIENT_SECRET. XERO_SCOPES is optional and takes a space-separated list, for example accounting.invoices accounting.contacts accounting.settings. To use a token from your own OAuth flow instead, set XERO_CLIENT_BEARER_TOKEN, which takes precedence over XERO_CLIENT_ID. If you use nvm, replace npx with the full path to the npx binary. Xero recommends starting with the Demo Company, which has sample data you can reset from My Xero.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Pull a profit and loss report or balance sheet and summarise it for a month-end review.
- List aged receivables for a contact and draft follow-ups on overdue invoices.
- Create a draft invoice or quote from details in a conversation, then review it in Xero before sending.
- Check payroll leave balances or timesheets for an NZ or UK organisation.
Limitations and things to watch
- The server can write financial records, including invoices, payments, bank transactions and manual journals, and can approve, revert and delete payroll timesheets, so grant only the scopes you need.
- A Custom Connection covers one organisation in Australia, New Zealand, the UK or the US. Xero says no new Custom Connection apps can be created from 1 December 2026; existing ones keep working, and bearer token mode is the alternative.
- Required scopes depend on when the custom connection was created (bundled V1 scopes before 29 Apr 2026, granular V2 scopes after), and the README marks accounting.transactions and accounting.reports.read as deprecated.
- update-invoice, update-quote and update-credit-note only work on drafts, and payroll queries need an NZ or UK organisation.
- API calls count against your Xero developer plan, which Xero lists as 1,000 calls per day per organisation on the free Starter tier and 5,000 on Core.
Sources
Written from the project's own documentation, checked November 2026.
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.