xero-blade-mcp
Provides tools for interacting with Xero Accounting and Payroll AU APIs, enabling AI agents to read and write contacts, invoices, bills, bank transactions, payments, credit notes, purchase orders, quotes, manual journals, chart of accounts, financial reports, payroll employees, timesheets, and payslips, with token-efficient responses and write/confirm gating.
Click on "Deploy 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-blade-mcp list my overdue invoices and total amount due"
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-blade-mcp
Xero Accounting + Payroll AU MCP server for Claude and other LLM agents. Token-efficient, security-first, Sidereal-native.
53 tools covering contacts, invoices, bills, bank transactions, payments, credit notes, purchase orders, quotes, manual journals, chart of accounts, financial reports, tax rates, currencies, tracking categories, payroll employees, timesheets, payslips, and webhook verification.
Why another Xero MCP?
The official Xero MCP is a raw API passthrough. It returns complete JSON payloads (800+ tokens per list response), has no write protection, no credential scrubbing, and no published test suite. Community alternatives are either expense-only, read-only (SQL), or limited to 4-16 tools.
xero-blade-mcp is purpose-built for LLM agents operating on financial data:
SecOps -- Mandatory write gating, confirm gate for destructive operations (void, delete, archive), credential scrubbing in all error paths, OAuth2 token auto-refresh, in-memory-only tokens for client_credentials mode (no secrets written to disk)
Token efficiency -- Pipe-delimited lists, field selection, human-readable money (A$150.00 AUD), null-field omission, date formatting, pagination hints -- not raw JSON dumps
Sidereal ecosystem --
accounting-v1contract, plugin manifest, webhook HMAC-SHA256 verification for dispatch integration, HTTP transport mode for daemon routing
Related MCP server: Python Xero MCP Server for BYB
Comparison
Capability | xero-blade-mcp | XeroAPI/xero-mcp-server | john-zhang-dev/xero-mcp |
Tools | 53 | 50+ | 16 |
Token-efficient responses | Pipe-delimited, field selection, summarised | Raw JSON (full objects) | Raw JSON |
Write gating | Per-operation env var gate | None | None |
Destructive op confirmation |
| None | None |
Credential scrubbing | JWT, Bearer, hex token scrubbing | None | None |
Rate limiting | Built-in (60/min, 5 concurrent, 429 retry) | None | None |
Payroll AU | Employees, timesheets, payslips | Claimed | None |
Webhook HMAC verification | Built-in tool (HMAC-SHA256) | None | None |
Reports | P&L, Balance Sheet, Trial Balance, Aged AR/AP | Yes | Limited |
Multi-tenant | XERO_TENANT_ID + discovery tool | Yes | Yes |
Auth modes | Custom Connection + PKCE + static token | Custom Connection + Bearer | OAuth2 |
Tests | 414 unit tests | Undisclosed | Partial |
Sidereal integration | accounting-v1 contract, plugin manifest | None | None |
Runtime | Python (uv) | Node.js (npx) | Node.js |
Token efficiency: before and after
XeroAPI/xero-mcp-server (raw JSON, ~1200 tokens):
{"Invoices":[{"InvoiceID":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","InvoiceNumber":"INV-0001","Type":"ACCREC","Contact":{"ContactID":"f1e2d3c4-b5a6-7890-fedc-ba0987654321","Name":"Acme Corp","ContactStatus":"ACTIVE","EmailAddress":"billing@acme.com","IsCustomer":true,"IsSupplier":false},"DateString":"2026-03-15T00:00:00","DueDateString":"2026-04-14T00:00:00","Status":"AUTHORISED","SubTotal":1500.00,"TotalTax":150.00,"Total":1650.00,"AmountDue":1650.00,"AmountPaid":0.00,"CurrencyCode":"AUD","LineItems":[{"Description":"Consulting services - March 2026","Quantity":10.0,"UnitAmount":150.00,"LineAmount":1500.00,"AccountCode":"200","TaxType":"OUTPUT"}]}]}xero-blade-mcp (pipe-delimited, ~60 tokens):
INV-0001 | Acme Corp | AUTHORISED | A$1,650.00 AUD | 2026-04-14 | due=A$1,650.00 AUD16x fewer tokens for the same information. For a P&L report the savings are even larger -- structured table output vs nested JSON arrays.
Quick start
# Install
uv tool install xero-blade-mcp
# Configure (Custom Connection -- recommended)
export XERO_CLIENT_ID="your_client_id"
export XERO_CLIENT_SECRET="your_client_secret"
export XERO_TENANT_ID="your_tenant_id"
# Run
xero-blade-mcpClaude Desktop / Claude Code
{
"mcpServers": {
"xero": {
"command": "uvx",
"args": ["xero-blade-mcp"],
"env": {
"XERO_CLIENT_ID": "your_client_id",
"XERO_CLIENT_SECRET": "your_client_secret",
"XERO_TENANT_ID": "your_tenant_id"
}
}
}
}HTTP transport (remote/tunnel access)
export XERO_MCP_TRANSPORT="http"
export XERO_MCP_HOST="127.0.0.1"
export XERO_MCP_PORT="8770"
export XERO_MCP_API_TOKEN="your-bearer-token" # optional, enables auth
xero-blade-mcpAuthentication
Three modes, in priority order:
Mode | Env Vars | Use Case |
Static token |
| Testing, short-lived (30 min expiry) |
Custom Connection |
| Production MCP (recommended, auto-refresh) |
Stored tokens |
| After initial PKCE flow (tokens persisted to |
Setting up a Custom Connection
Go to developer.xero.com and create a new app
Select "Custom connection" as the app type
Select the organisation to connect
Grant scopes:
accounting.transactions,accounting.contacts,accounting.settings,accounting.reports.read,payroll.employees,payroll.timesheets,payroll.payslipsNote the Client ID and Client Secret
Use
xero_connectionstool to find your Tenant ID
Security model
Write gate
All create, update, delete, and void operations require XERO_WRITE_ENABLED=true. Without it, the server is read-only.
Confirm gate
Destructive operations that are difficult to reverse require confirm=true as a parameter:
Operation | Gate |
| write + confirm |
| write + confirm |
| write + confirm |
| write + confirm |
| write + confirm |
| write + confirm |
Credential scrubbing
All error messages are scrubbed of:
JWT tokens (
eyJ...patterns)Bearer authorization headers
Long hexadecimal strings (OAuth tokens, secrets)
Rate limiting
Built-in rate limiter respects Xero's API limits:
60 API calls per minute per tenant
5 concurrent requests
Automatic retry on 429 with Retry-After header
Configuration
Variable | Required | Description |
| Yes* | OAuth2 client ID |
| Yes* | OAuth2 client secret (Custom Connection) |
| Recommended | Active organisation tenant ID |
| No | Pre-obtained access token (overrides OAuth) |
| No | Set to |
| No | Webhook signing key for HMAC verification |
| No |
|
| No | HTTP host (default: |
| No | HTTP port (default: |
| No | Bearer token for HTTP transport auth |
* Either XERO_CLIENT_ID + XERO_CLIENT_SECRET or XERO_ACCESS_TOKEN required.
Tools
Meta (3 tools)
Tool | Description | R/W |
| Connection status, active tenant, config | R |
| List connected tenants/organisations | R |
| Organisation details, currency, tax settings | R |
Contacts (5 tools)
Tool | Description | R/W |
| List contacts with search, status filter | R |
| Contact detail with field selection | R |
| Create contact | W |
| Update contact fields | W |
| Archive contact (confirm required) | W+C |
Invoices (6 tools)
Tool | Description | R/W |
| List sales invoices with filters | R |
| Invoice detail with line items, payments | R |
| Create sales invoice | W |
| Update draft/submitted invoice | W |
| Void invoice (confirm required) | W+C |
| Email invoice to contact | W |
Bills (4 tools)
Tool | Description | R/W |
| List purchase bills | R |
| Bill detail with line items | R |
| Create purchase bill | W |
| Void bill (confirm required) | W+C |
Bank Transactions (3 tools)
Tool | Description | R/W |
| List bank transactions | R |
| Transaction detail | R |
| Create spend/receive transaction | W |
Payments (4 tools)
Tool | Description | R/W |
| List payments | R |
| Payment detail | R |
| Record payment against invoice/bill | W |
| Delete payment (confirm required) | W+C |
Credit Notes (3 tools)
Tool | Description | R/W |
| List credit notes | R |
| Create credit note | W |
| Void credit note (confirm required) | W+C |
Purchase Orders (2 tools)
Tool | Description | R/W |
| List purchase orders | R |
| Create purchase order | W |
Quotes (2 tools)
Tool | Description | R/W |
| List quotes | R |
| Create quote | W |
Accounts (2 tools)
Tool | Description | R/W |
| Chart of accounts with type/class filter | R |
| Account detail | R |
Manual Journals (1 tool)
Tool | Description | R/W |
| List manual journal entries | R |
Reports (5 tools)
Tool | Description | R/W |
| P&L report with date range, periods | R |
| Balance sheet as at date | R |
| Trial balance as at date | R |
| Aged receivables with breakdown | R |
| Aged payables with breakdown | R |
Reference Data (4 tools)
Tool | Description | R/W |
| Tax rates and effective percentages | R |
| Active currencies | R |
| Tracking categories and options | R |
| Branding themes for documents | R |
Payroll AU (8 tools)
Tool | Description | R/W |
| List payroll employees | R |
| Employee detail (tax, super, leave) | R |
| List timesheets | R |
| Timesheet detail with lines | R |
| Create timesheet | W |
| Approve timesheet (confirm required) | W+C |
| List payslips for a pay run | R |
| Payslip detail (earnings, deductions, super) | R |
Webhooks (1 tool)
Tool | Description | R/W |
| HMAC-SHA256 signature verification | R |
Development
# Setup
git clone https://github.com/groupthink-dev/xero-blade-mcp.git
cd xero-blade-mcp
make install-dev
# Test
make test # 414 unit tests
make test-cov # with coverage report
# Quality
make lint # ruff linter
make format # ruff formatter
make type-check # mypy
make check # all of the aboveSidereal integration
Implements the accounting-v1 service contract. Registered in the Sidereal Plugin Registry.
# sidereal-plugin.yaml
contract: accounting-v1
tier: certified
tools: 53Xero API scope requirements
Scope | APIs Covered |
| Invoices, Bills, Bank Transactions, Payments, Credit Notes, POs, Quotes |
| Contacts |
| Accounts, Tax Rates, Currencies, Tracking, Branding |
| P&L, Balance Sheet, Trial Balance, Aged AR/AP |
| Employees |
| Timesheets |
| Pay Runs, Payslips |
License
MIT
Available Tools
53 toolsxero_accountXero AccountC
Get account detail — type, class, tax type, bank info.
Inputs: account_id (required), fields. Returns: result
xero_accountsXero AccountsC
List chart of accounts.
Inputs: account_type, account_class. Returns: result
xero_aged_payablesXero Aged PayablesC
Get Aged Payables report with period breakdown.
Inputs: date, contact_id. Returns: result
xero_aged_receivablesXero Aged ReceivablesC
Get Aged Receivables report with period breakdown.
Inputs: date, contact_id. Returns: result
xero_approve_timesheetXero Approve TimesheetA
Approve a timesheet. Requires XERO_WRITE_ENABLED=true and confirm=true.
Inputs: timesheet_id (required), confirm. Returns: result
xero_archive_contactXero Archive ContactB
Archive a contact. Requires XERO_WRITE_ENABLED=true and confirm=true.
Inputs: contact_id (required), confirm. Returns: result
xero_balance_sheetXero Balance SheetC
Get Balance Sheet report as at a given date.
Inputs: date, periods, timeframe. Returns: result
xero_bank_transactionXero Bank TransactionB
Get bank transaction detail — line items, account, contact.
Inputs: txn_id (required), fields. Returns: result
xero_bank_transactionsXero Bank TransactionsC
List bank transactions (spend/receive money).
Inputs: page, bank_account. Returns: result
xero_billXero BillC
Get bill detail — line items, payments, totals.
Inputs: bill_id (required), fields. Returns: result
xero_billsXero BillsC
List purchase bills with optional filters.
Inputs: page, order, status. Returns: result
xero_branding_themesXero Branding ThemesA
List branding themes for invoice/quote customisation.
Inputs: no named parameters. Returns: result
xero_connectionsXero ConnectionsA
List connected Xero tenants/organisations. Use the tenantId to set XERO_TENANT_ID.
Inputs: no named parameters. Returns: result
xero_contactXero ContactC
Get contact detail — addresses, phone numbers, balances.
Inputs: contact_id (required), fields. Returns: result
xero_contactsXero ContactsA
List contacts (customers and suppliers) with optional filters.
Inputs: page, search, status, include_archived. Returns: result
xero_create_bank_transactionXero Create Bank TransactionA
Create a bank transaction (spend or receive money). Requires XERO_WRITE_ENABLED=true.
Inputs: txn_type (required), contact_id (required), line_items (required), bank_account_id (required), +2 more. Returns: result
xero_create_billXero Create BillB
Create a purchase bill. Requires XERO_WRITE_ENABLED=true.
Inputs: contact_id (required), line_items (required), date, status, +2 more. Returns: result
xero_create_contactXero Create ContactB
Create a new contact. Requires XERO_WRITE_ENABLED=true.
Inputs: name (required), email, phone, last_name, +3 more. Returns: result
xero_create_credit_noteXero Create Credit NoteC
Create a credit note. Requires XERO_WRITE_ENABLED=true.
Inputs: contact_id (required), line_items (required), date, reference, +1 more. Returns: result
xero_create_invoiceXero Create InvoiceB
Create a sales invoice. Requires XERO_WRITE_ENABLED=true.
Inputs: contact_id (required), line_items (required), date, status, +3 more. Returns: result
xero_create_paymentXero Create PaymentA
Record a payment against an invoice or bill. Requires XERO_WRITE_ENABLED=true.
Inputs: amount (required), account_id (required), invoice_id (required), date, +1 more. Returns: result
xero_create_purchase_orderXero Create Purchase OrderB
Create a purchase order. Requires XERO_WRITE_ENABLED=true.
Inputs: contact_id (required), line_items (required), date, reference, +1 more. Returns: result
xero_create_quoteXero Create QuoteB
Create a quote. Requires XERO_WRITE_ENABLED=true.
Inputs: contact_id (required), line_items (required), date, title, +3 more. Returns: result
xero_create_timesheetXero Create TimesheetC
Create a timesheet. Requires XERO_WRITE_ENABLED=true.
Inputs: end_date (required), start_date (required), employee_id (required), timesheet_lines (required). Returns: result
xero_credit_notesXero Credit NotesC
List credit notes.
Inputs: page, status. Returns: result
xero_currenciesXero CurrenciesA
List active currencies configured for the organisation.
Inputs: no named parameters. Returns: result
xero_delete_paymentXero Delete PaymentA
Delete a payment. Requires XERO_WRITE_ENABLED=true and confirm=true.
Inputs: payment_id (required), confirm. Returns: result
xero_email_invoiceXero Email InvoiceA
Email an invoice to its contact. Requires XERO_WRITE_ENABLED=true.
Inputs: invoice_id (required). Returns: result
xero_employeeXero EmployeeA
Get employee detail — tax declaration, super, leave, address.
Inputs: employee_id (required). Returns: result
xero_employeesXero EmployeesB
List payroll employees (AU Payroll API).
Inputs: page, status. Returns: result
xero_infoXero InfoB
Show Xero connection status, active tenant, and configuration.
Inputs: no named parameters. Returns: result
xero_invoiceXero InvoiceA
Get invoice detail — line items, payments, totals.
Inputs: invoice_id (required), fields. Returns: result
xero_invoicesXero InvoicesC
List sales invoices with optional filters.
Inputs: page, order, status, contact_id. Returns: result
xero_manual_journalsXero Manual JournalsC
List manual journal entries.
Inputs: page. Returns: result
xero_organisationXero OrganisationA
Get organisation details — name, country, currency, tax settings, financial year.
Inputs: no named parameters. Returns: result
xero_paymentXero PaymentB
Get payment detail — amount, date, invoice, account.
Inputs: payment_id (required), fields. Returns: result
xero_paymentsXero PaymentsC
List payments.
Inputs: page. Returns: result
xero_payslipXero PayslipB
Get payslip detail — earnings, deductions, super, tax.
Inputs: payslip_id (required). Returns: result
xero_payslipsXero PayslipsA
List payslips for a pay run (AU Payroll API).
Inputs: payrun_id (required). Returns: result
xero_profit_lossXero Profit LossC
Get Profit & Loss report for a date range.
Inputs: periods, to_date, from_date, timeframe. Returns: result
xero_purchase_ordersXero Purchase OrdersC
List purchase orders.
Inputs: page, status. Returns: result
xero_quotesXero QuotesC
List quotes.
Inputs: page, status. Returns: result
xero_tax_ratesXero Tax RatesB
List tax rates and their effective percentages.
Inputs: no named parameters. Returns: result
xero_timesheetXero TimesheetB
Get timesheet detail — lines, hours, earnings rates.
Inputs: timesheet_id (required). Returns: result
xero_timesheetsXero TimesheetsB
List payroll timesheets (AU Payroll API).
Inputs: page, status. Returns: result
xero_tracking_categoriesXero Tracking CategoriesA
List tracking categories and their options for cost allocation.
Inputs: no named parameters. Returns: result
xero_trial_balanceXero Trial BalanceC
Get Trial Balance report as at a given date.
Inputs: date. Returns: result
xero_update_contactXero Update ContactC
Update a contact. Requires XERO_WRITE_ENABLED=true.
Inputs: contact_id (required), name, email, phone, +3 more. Returns: result
xero_update_invoiceXero Update InvoiceB
Update a draft or submitted invoice. Requires XERO_WRITE_ENABLED=true.
Inputs: invoice_id (required), status, due_date, reference. Returns: result
xero_verify_webhookXero Verify WebhookA
Verify a Xero webhook HMAC-SHA256 signature.
Xero signs webhook payloads with HMAC-SHA256 using your webhook key. The signature is base64-encoded in the X-Xero-Signature header.
Inputs: raw_body (required), signature_header (required). Returns: result
xero_void_billXero Void BillA
Void a bill. Irreversible. Requires XERO_WRITE_ENABLED=true and confirm=true.
Inputs: bill_id (required), confirm. Returns: result
xero_void_credit_noteXero Void Credit NoteA
Void a credit note. Irreversible. Requires XERO_WRITE_ENABLED=true and confirm=true.
Inputs: credit_note_id (required), confirm. Returns: result
xero_void_invoiceXero Void InvoiceA
Void an invoice. Irreversible. Requires XERO_WRITE_ENABLED=true and confirm=true.
Inputs: invoice_id (required), confirm. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 53 tools
The singular/plural resource pattern (xero_invoices = list, xero_invoice = get detail) plus explicit action prefixes makes nearly every tool unambiguous. The one soft spot is that a careless agent could pick the plural lister when it wanted the singular detail tool (e.g. xero_bills vs xero_bill), but descriptions make the intent clear.
Everything is snake_case with a uniform xero_ prefix, and action tools consistently use verb_resource ordering (create_invoice, void_bill, archive_contact, approve_timesheet). The only deviation is the noun-only convention for reads (xero_bills, xero_payslip) instead of list_/get_ prefixes, but plural=list / singular=get is applied consistently across all resources.
At 53 tools this is well past the heavy threshold and the surface is dominated by repetitive singular/plural read pairs across ~20 resources. The breadth mirrors the Xero API, but several read-only pairs (e.g. accounts, manual journals, quotes) add volume without adding capability.
Contacts, payments, invoices and timesheets have solid lifecycle coverage, but there are notable holes: no credit note detail tool, no update for bills/quotes/purchase orders, no create for manual journals or accounts, and no attachments support. Agents can read most things but will hit dead ends on common write workflows outside invoices/contacts.
Maintenance
Related MCP Connectors
Connect Xero to AI agents with secure read or write access across multiple organisations.
Query and export Xero finance data and prepare accounting drafts in your xpnAI Workspace.
Connect QuickBooks Online to AI agents with secure read or write access across multiple companies.
Accounts receivable automation for Xero and QuickBooks Online, inside your AI assistant. Ask Claude, ChatGPT or any MCP client for a receivables summary, find customers and invoices, read the email and SMS replies your customers sent, and see what Paidnice sent or skipped. Ask why a reminder, late fee or statement did or did not go out, and update a customer's contact people straight into your ledger. Secure OAuth sign-in. One connection covers every organisation you tick, with Read or Read and Write access.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables interaction with the Xero Accounting API to manage contacts, invoices, payments, accounts, and financial reports. It provides a suite of tools for natural language access to accounting records and business performance data.201Apache 2.0
- -licenseNot gradedqualityDmaintenanceEnables interaction with Xero accounting API for financial reporting, sales analysis, grant tracking, and bill management using natural language.1-
- AlicenseAqualityDmaintenanceEnables natural language interaction with Xero accounting data, managing contacts, invoices, and accounts across multiple organisations via OAuth2.12MIT
- FlicenseNot gradedqualityBmaintenanceEnables natural-language interaction with Xero accounting data, including invoices and intents, with role-based access control and audit trail.-