xero-mcp-enhanced
Provides tools for interacting with Xero's API, enabling AI agents to manage accounting entities such as invoices, contacts, bank transactions, payroll, tax rates, and more within a Xero organisation.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@xero-mcp-enhancedshow me my unpaid invoices"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
xero-mcp-enhanced
An enhanced Model Context Protocol (MCP) server for Xero, forked and significantly improved from the official Xero MCP server.
Point Claude Desktop (or any MCP-compatible client) at this server to interact with your Xero organisation using natural language.
What's improved over the official server
Area | Change |
Auth scopes | Scopes are now configurable via |
Token refresh | Custom-connection tokens are now cached and only refreshed when they're within 60 seconds of expiry — instead of making an extra HTTP round-trip on every single API call. |
Bearer token warnings | If |
Error messages | Xero validation errors, |
Bank transactions |
|
New tools | See table below. |
Related MCP server: Xero MCP Server
New tools
Tool | Description |
| Fetch all transactions for a contact across a date range in one call (auto-paginating). |
| Bulk-update tax type on all bank transaction line items for a contact in a date range. Skips DELETED/VOIDED transactions and those already on the target tax type. Note: transactions reconciled with a bank statement cannot be edited via the Xero API — unreconcile them in the Xero UI first. |
| List transfers between bank accounts, with optional date range filter. |
| Transfer funds between two Xero bank accounts. |
| List all recurring invoice templates (schedule, contact, amount, status). |
| List currencies enabled in the organisation. |
| Get full contact details by ID (addresses, phones, balances, tax settings, deep link). |
| List prepayments (advance payments), optionally filtered by contact. |
| List overpayments (excess payments), optionally filtered by contact. |
Prerequisites
Node.js 18+
A Xero account with either:
A Custom Connection app (recommended for persistent use), or
A manual Bearer token (expires after 30 minutes — useful for testing)
Setting up a Custom Connection app
Go to developer.xero.com/app/manage and create a new app
Select Custom Connection as the integration type
Under Scopes, select the scopes you need (see defaults below)
Copy the Client ID and Client Secret
Installation
Option A — run directly with npx (recommended for Claude Desktop)
{
"mcpServers": {
"xero": {
"command": "npx",
"args": ["-y", "github:danielreddd/xero-mcp-enhanced"],
"env": {
"XERO_CLIENT_ID": "your_client_id",
"XERO_CLIENT_SECRET": "your_client_secret"
}
}
}
}Option B — clone and build locally
git clone https://github.com/danielreddd/xero-mcp-enhanced.git
cd xero-mcp-enhanced
npm install
npm run buildThen in your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on Mac or %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"xero": {
"command": "node",
"args": ["/absolute/path/to/xero-mcp-enhanced/dist/index.js"],
"env": {
"XERO_CLIENT_ID": "your_client_id",
"XERO_CLIENT_SECRET": "your_client_secret"
}
}
}
}Configuration
Copy .env.example to .env and fill in your credentials, or pass environment variables directly in your MCP client config as shown above.
Environment variables
Variable | Required | Description |
| Yes (unless using bearer token) | Client ID from your Xero app |
| Yes (unless using bearer token) | Client secret from your Xero app |
| Alternative to client ID/secret | Manual bearer token (expires in 30 min) |
| No | Space-separated OAuth scopes. See defaults below. |
Default scopes
openid profile email accounting.transactions accounting.contacts accounting.settings accounting.reports.read accounting.attachments payroll.settings payroll.employees payroll.timesheetsFor apps created before 2 March 2026 using the old broad scopes, you can override this to the shorter set:
accounting.transactions accounting.contacts accounting.settings accounting.reports.read payroll.settings payroll.employees payroll.timesheetsComplete tool list
List tools
list-accounts— chart of accountslist-bank-transactions— with bankAccountId, contactId, fromDate, toDate filterslist-bank-transactions-by-contact— all transactions for a contact (auto-paginated)list-bank-transfers— transfers between accountslist-contacts— search by namelist-contact-groupslist-credit-noteslist-currencieslist-invoices— filter by contact or invoice numberlist-items— products/serviceslist-manual-journalslist-organisation-detailslist-overpayments— filter by contactlist-payments— filter by invoice, referencelist-prepayments— filter by contactlist-profit-and-losslist-quoteslist-repeating-invoiceslist-report-balance-sheetlist-tax-rateslist-tracking-categorieslist-trial-balancelist-aged-receivables-by-contactlist-aged-payables-by-contactPayroll:
list-payroll-employees,list-payroll-timesheets,list-payroll-employee-leave,list-payroll-leave-types,list-payroll-leave-periods,list-payroll-employee-leave-types,list-payroll-employee-leave-balances
Get tools
get-contact— full contact details including addresses, phones, balancesget-payroll-timesheet
Create tools
create-bank-transactioncreate-bank-transfercreate-contactcreate-credit-notecreate-invoicecreate-itemcreate-manual-journalcreate-paymentcreate-quotecreate-payroll-timesheetcreate-tracking-category/create-tracking-options
Update tools
update-bank-transactionfix-gst-for-contact— bulk tax-type fix on bank transactionsupdate-contactupdate-credit-noteupdate-invoiceupdate-itemupdate-manual-journalupdate-quoteupdate-tracking-category/update-tracking-optionsPayroll:
approve-payroll-timesheet,revert-payroll-timesheet,update-payroll-timesheet-add-line,update-payroll-timesheet-update-line
Delete tools
delete-payroll-timesheet
Using fix-gst-for-contact
This tool is designed for accountants who need to bulk-correct the tax type on bank transactions — for example, if a supplier was set up without GST and all their transactions need to be updated to INPUT2.
Recommended workflow:
Find the contact ID: use
list-contactsand search by namePreview transactions: use
list-bank-transactions-by-contactwith your date rangeCheck the tax rates: use
list-tax-ratesto confirm the correct tax type codeRun the fix:
fix-gst-for-contactwith the contactId, newTaxType, fromDate, toDate
Common Australian tax type codes:
Code | Description |
| GST on Income (15%) |
| GST on Expenses (15%) |
| BAS Excluded on Sales |
| BAS Excluded on Purchases |
| No Tax |
| Zero Rated Expenses |
Note: This modifies reconciled transactions. Review the results and verify your bank reconciliation afterwards.
Security
Credentials are read from environment variables — never hardcoded
No credentials are logged or transmitted to any service other than Xero's own APIs
Tokens are cached in-memory only and discarded when the process exits
License
MIT — see LICENSE
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielreddd/xero-mcp-enhanced'
If you have feedback or need assistance with the MCP directory API, please join our Discord server