Xero Accounting▌

by john-zhang-dev
Seamlessly connect with Xero software to access accounts, transactions, and invoices for efficient financial analysis an
Integrates with Xero Accounting Software to access financial data including accounts, transactions, contacts, invoices, and more through authenticated API connections for financial analysis and bookkeeping tasks.
best for
- / Accountants analyzing client financial data
- / Business owners tracking expenses and revenue
- / Developers building financial reporting tools
- / Automating bookkeeping workflows
capabilities
- / Authenticate with Xero via OAuth2
- / Access accounts and transaction data
- / Retrieve invoices and billing information
- / Query contact and customer records
- / Create bank transactions
- / Pull financial reports and data
what it does
Connects to Xero accounting software to retrieve financial data like accounts, invoices, and transactions through authenticated API access. Requires OAuth setup with Xero developer credentials.
about
Xero Accounting is a community-built MCP server published by john-zhang-dev that provides AI assistants with tools and capabilities via the Model Context Protocol. Seamlessly connect with Xero software to access accounts, transactions, and invoices for efficient financial analysis an It is categorized under finance.
how to install
You can install Xero Accounting in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
license
MIT
Xero Accounting is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
Xero MCP Server
This MCP server allows Clients to interact with Xero Accounting Software.
Get Started
-
Make sure node and Claude Desktop are installed.
-
Create an OAuth 2.0 app in Xero to get a CLIENT_ID and CLIENT_SECRET.
- Create a free Xero user account (if you don't have one)
- Login to Xero Developer center https://developer.xero.com/app/manage/
- Click New app
- Enter a name for your app
- Select Web app
- Provide a valid URL (can be anything valid eg. https://www.myapp.com)
- Enter redirect URI:
http://localhost:5000/callback - Tick to Accept the Terms & Conditions and click Create app
- On the left-hand side of the screen select Configuration
- Click Generate a secret
-
Modify
claude_desktop_config.jsonfile{ "mcpServers": { "xero-mcp": { "command": "npx", "args": ["-y", "xero-mcp@latest"], "env": { "XERO_CLIENT_ID": "YOUR_CLIENT_ID", "XERO_CLIENT_SECRET": "YOUR_CLIENT_SECRET", "XERO_REDIRECT_URI": "http://localhost:5000/callback" } } } } -
Restart Claude Desktop
-
When the Client decides to access a Xero tool for the first time, a Xero login page will pop up to ask your consent. Complete the auth flow and manually close the web page (as the Xero page will not auto close in this version)
Privacy alert: after completing the Xero OAuth2 flow, your Xero data may go through the LLM that you use. If you are doing testing you should authorize to your Xero Demo Company.
Tools
-
authenticateAuthenticate with Xero using OAuth2
-
create_bank_transactionsCreates one or more spent or received money transaction
-
create_contactsCreates one or multiple contacts in a Xero organisation
-
get_balance_sheetRetrieves report for balancesheet
-
list_accountsRetrieves the full chart of accounts
-
list_bank_transactionsRetrieves any spent or received money transactions
-
list_contactsRetrieves all contacts in a Xero organisation
-
list_invoicesRetrieves sales invoices or purchase bills
-
list_journalsRetrieves journals
-
list_organisationsRetrieves Xero organisation details
-
list_paymentsRetrieves payments for invoices and credit notes
-
list_quotesRetrieves sales quotes
Examples
-
"Visualize my financial position over the last month"
<img src="https://github.com/john-zhang-dev/assets/blob/main/xero-mcp/demo1.jpg?raw=true" width=50% height=50%> -
"Track my spendings over last week"
<img src="https://github.com/john-zhang-dev/assets/blob/main/xero-mcp/demo2.jpg?raw=true" width=50% height=50%> -
"Add all transactions from the monthly statement into my revenue account (account code 201) as receive money"
License
MIT