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" } } } }
ℹ️ Info:
Xero is making changes to its accounting api scopes. For Apps created after 2nd March 2026, please use
xero-mcp@betainstead ofxero-mcp@latest. These 2 tags will consolidate by the end of April, when Xero finishes the api scope migration for old Apps.
-
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
-
get_bank_transactionRetrieves a single spent or received money transaction by its Xero bank transaction ID
-
get_invoiceRetrieves a single sales invoice or purchase bill by its Xero invoice ID
-
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
-
update_bank_transactionUpdates an existing spent or received money transaction (e.g. line items, contact, bank account) by bank transaction ID
-
update_invoiceUpdates an existing sales invoice or purchase bill (typically a draft), including line items and account codes
Examples
-
"Visualize my financial position over the last month"
-
"Track my spendings over last week"
-
"Add all transactions from the monthly statement into my revenue account (account code 201) as receive money"
License
MIT
Recommend MCP Servers 💡
defi-yields-mcp
An MCP server for AI agents to explore DeFi yield opportunities, powered by DefiLlama.
monarch-money
A Model Context Protocol (MCP) server that provides read-only access to Monarch Money financial data. This allows AI assistants like Claude Desktop to analyze your financial information, transactions, budgets, and cashflow data.
plaid-dashboard-mcp-server
Plaid's MCP server for AI tools to monitor Plaid integration health, analyze Link analytics, and track usage via SSE.
@paperinvest/mcp-server
Enables AI assistants to interact with Paper's trading platform API for account management, portfolio operations, trading, and market data.
Morningstar MCP Server
An MCP server by Morningstar that exposes financial tools, including a Datapoint Tool for market data and an Articles Tool for investment research and analysis.
minhyeoky/mcp-ledger
A Model Context Protocol server for interacting with Ledger CLI, a powerful double-entry accounting system. This server enables Large Language Models to query and analyze financial data through a standardized interface, making it easy for AI assistants to help with financial reporting, budget analysis, and accounting tasks.