Skip to main content
Glama

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-v1 contract, 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

confirm=true required for void/delete/archive

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 AUD

16x 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-mcp

Claude 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-mcp

Authentication

Three modes, in priority order:

Mode

Env Vars

Use Case

Static token

XERO_ACCESS_TOKEN

Testing, short-lived (30 min expiry)

Custom Connection

XERO_CLIENT_ID + XERO_CLIENT_SECRET

Production MCP (recommended, auto-refresh)

Stored tokens

XERO_CLIENT_ID

After initial PKCE flow (tokens persisted to ~/.xero-blade-mcp/tokens.json only when refresh_token is present)

Setting up a Custom Connection

  1. Go to developer.xero.com and create a new app

  2. Select "Custom connection" as the app type

  3. Select the organisation to connect

  4. Grant scopes: accounting.transactions, accounting.contacts, accounting.settings, accounting.reports.read, payroll.employees, payroll.timesheets, payroll.payslips

  5. Note the Client ID and Client Secret

  6. Use xero_connections tool 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

xero_archive_contact

write + confirm

xero_void_invoice

write + confirm

xero_void_bill

write + confirm

xero_delete_payment

write + confirm

xero_void_credit_note

write + confirm

xero_approve_timesheet

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

XERO_CLIENT_ID

Yes*

OAuth2 client ID

XERO_CLIENT_SECRET

Yes*

OAuth2 client secret (Custom Connection)

XERO_TENANT_ID

Recommended

Active organisation tenant ID

XERO_ACCESS_TOKEN

No

Pre-obtained access token (overrides OAuth)

XERO_WRITE_ENABLED

No

Set to true to enable write operations

XERO_WEBHOOK_KEY

No

Webhook signing key for HMAC verification

XERO_MCP_TRANSPORT

No

stdio (default) or http

XERO_MCP_HOST

No

HTTP host (default: 127.0.0.1)

XERO_MCP_PORT

No

HTTP port (default: 8770)

XERO_MCP_API_TOKEN

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

xero_info

Connection status, active tenant, config

R

xero_connections

List connected tenants/organisations

R

xero_organisation

Organisation details, currency, tax settings

R

Contacts (5 tools)

Tool

Description

R/W

xero_contacts

List contacts with search, status filter

R

xero_contact

Contact detail with field selection

R

xero_create_contact

Create contact

W

xero_update_contact

Update contact fields

W

xero_archive_contact

Archive contact (confirm required)

W+C

Invoices (6 tools)

Tool

Description

R/W

xero_invoices

List sales invoices with filters

R

xero_invoice

Invoice detail with line items, payments

R

xero_create_invoice

Create sales invoice

W

xero_update_invoice

Update draft/submitted invoice

W

xero_void_invoice

Void invoice (confirm required)

W+C

xero_email_invoice

Email invoice to contact

W

Bills (4 tools)

Tool

Description

R/W

xero_bills

List purchase bills

R

xero_bill

Bill detail with line items

R

xero_create_bill

Create purchase bill

W

xero_void_bill

Void bill (confirm required)

W+C

Bank Transactions (3 tools)

Tool

Description

R/W

xero_bank_transactions

List bank transactions

R

xero_bank_transaction

Transaction detail

R

xero_create_bank_transaction

Create spend/receive transaction

W

Payments (4 tools)

Tool

Description

R/W

xero_payments

List payments

R

xero_payment

Payment detail

R

xero_create_payment

Record payment against invoice/bill

W

xero_delete_payment

Delete payment (confirm required)

W+C

Credit Notes (3 tools)

Tool

Description

R/W

xero_credit_notes

List credit notes

R

xero_create_credit_note

Create credit note

W

xero_void_credit_note

Void credit note (confirm required)

W+C

Purchase Orders (2 tools)

Tool

Description

R/W

xero_purchase_orders

List purchase orders

R

xero_create_purchase_order

Create purchase order

W

Quotes (2 tools)

Tool

Description

R/W

xero_quotes

List quotes

R

xero_create_quote

Create quote

W

Accounts (2 tools)

Tool

Description

R/W

xero_accounts

Chart of accounts with type/class filter

R

xero_account

Account detail

R

Manual Journals (1 tool)

Tool

Description

R/W

xero_manual_journals

List manual journal entries

R

Reports (5 tools)

Tool

Description

R/W

xero_profit_loss

P&L report with date range, periods

R

xero_balance_sheet

Balance sheet as at date

R

xero_trial_balance

Trial balance as at date

R

xero_aged_receivables

Aged receivables with breakdown

R

xero_aged_payables

Aged payables with breakdown

R

Reference Data (4 tools)

Tool

Description

R/W

xero_tax_rates

Tax rates and effective percentages

R

xero_currencies

Active currencies

R

xero_tracking_categories

Tracking categories and options

R

xero_branding_themes

Branding themes for documents

R

Payroll AU (8 tools)

Tool

Description

R/W

xero_employees

List payroll employees

R

xero_employee

Employee detail (tax, super, leave)

R

xero_timesheets

List timesheets

R

xero_timesheet

Timesheet detail with lines

R

xero_create_timesheet

Create timesheet

W

xero_approve_timesheet

Approve timesheet (confirm required)

W+C

xero_payslips

List payslips for a pay run

R

xero_payslip

Payslip detail (earnings, deductions, super)

R

Webhooks (1 tool)

Tool

Description

R/W

xero_verify_webhook

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 above

Sidereal integration

Implements the accounting-v1 service contract. Registered in the Sidereal Plugin Registry.

# sidereal-plugin.yaml
contract: accounting-v1
tier: certified
tools: 53

Xero API scope requirements

Scope

APIs Covered

accounting.transactions

Invoices, Bills, Bank Transactions, Payments, Credit Notes, POs, Quotes

accounting.contacts

Contacts

accounting.settings

Accounts, Tax Rates, Currencies, Tracking, Branding

accounting.reports.read

P&L, Balance Sheet, Trial Balance, Aged AR/AP

payroll.employees

Employees

payroll.timesheets

Timesheets

payroll.payslips

Pay Runs, Payslips

License

MIT

Available Tools

53 tools
xero_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

    C2.9/5.0

    Scored across 53 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count2/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      20
      1
      Apache 2.0
    • -
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with Xero accounting API for financial reporting, sales analysis, grant tracking, and bill management using natural language.
      1
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables natural language interaction with Xero accounting data, managing contacts, invoices, and accounts across multiple organisations via OAuth2.
      12
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables natural-language interaction with Xero accounting data, including invoices and intents, with role-based access control and audit trail.
      -