Skip to main content
Glama
xero-mcp

xero-mcp

by david-buck

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
XERO_CLIENT_IDYesClient ID from your Xero OAuth Web app.
XERO_TENANT_IDNoOptional. The Xero organisation (tenant) ID. If not set, the first connected organisation is used.
XERO_CLIENT_SECRETYesClient Secret from your Xero OAuth Web app.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

For Xero review requests, use xero_review_context to establish connected-organisation context and xero_review_guide (or the xero_review prompt) to shape scope. Require explicit dates; preserve report rows and source IDs, follow paginated lists until nextPage is null, and disclose incomplete evidence. Separate facts from hypotheses. Do not claim bank transactions are statement lines, manual journals are the complete general journal, or GST figures prove filing status; do not auto-reconcile or give tax advice. Keep review read-only and any draft-invoice write request separate and explicitly user-directed. For explicitly requested draft-invoice edits, first read xero_get_invoice and pass its revision as expectedRevision. Prefer lineItemPatches for narrow changes; preserve discounts and other omitted fields. Report changeSummary fields and resulting totals. Choose tax types using names and codes together, never the percentage alone. For recent contact billing, use xero_list_invoices with contactId and includeLineItems: true.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
xero_find_contactB

Search Xero contacts by name or email and return their identifying information, including ContactID.

xero_get_contact_defaultsA

Get a contact's invoice-relevant sales defaults, including its preferred account code and tax type.

xero_list_revenue_accountsA

List active revenue/sales accounts and their valid account codes for draft invoice line items.

xero_list_revenue_tax_ratesA

List active tax types that Xero says can be applied to revenue invoice lines.

xero_list_invoicesA

List one page of invoices, newest by invoice date first. Optional contact and exact invoice-number filters combine. Use includeLineItems for a contact billing lookup with full invoice details in one response. Increment page until fewer than limit records are returned.

xero_get_invoiceA

Fetch one Xero invoice including line items and a revision required as expectedRevision for any update.

xero_create_draft_invoiceA

Create an ACCREC sales invoice with status DRAFT only. It never approves, emails, or sends invoices.

xero_update_draft_invoiceA

Update only a DRAFT invoice using expectedRevision from xero_get_invoice. Prefer lineItemPatches for narrow edits: omitted fields and other lines are preserved. lineItems intentionally replaces the complete line set; existing IDs preserve omitted discounts. Returns actual before/after changes and totals. Rejects stale revisions before writing; external edits during the request cannot be locked.

xero_list_quotesA

Read one page of up to 100 sales quotes, including lines. Increment page until fewer than 100 results; ContactID and Status filters combine.

xero_get_quoteC

Read quote details and revision required for draft editing.

xero_create_draft_quoteA

Create DRAFT only; never send, accept or invoice. Currency, dates, tax basis and monetary line tax/account codes are explicit. Xero calculates totals and any omitted currency exchange rate. Reconcile an uncertain creation before retrying.

xero_update_draft_quoteA

Edit only DRAFT using expectedRevision from xero_get_quote. Omitted fields are preserved; lineItems explicitly replaces ALL lines including discounts/tracking. Read and review before replacement. No send/status transition. External edits during the request cannot be locked.

xero_get_quote_pdfA

Retrieve original Xero quote PDF as an embedded binary file resource. Requires client support for MCP blob resources; no uploads or local paths.

xero_get_invoice_pdfA

Retrieve original Xero invoice PDF as an embedded binary file resource. Requires client support for MCP blob resources; no uploads or local paths.

xero_list_accountsA

Read the chart of accounts, including archived accounts, so report account codes can be identified. This is not a general-ledger transaction listing.

xero_list_period_invoicesA

Read one Xero page (up to 100) of invoices and supplier bills dated within a period. Filter by ACCREC or ACCPAY, status, or contact; use xero_get_invoice for complete lines. Invoice date is not payment date.

xero_list_bank_transactionsA

Read one date-bounded page of spend/receive money transactions. Includes Xero IDs, account, contact, line items when returned, and reconciliation status. Use get_bank_transaction for complete lines; this is not a bank statement feed.

xero_get_bank_transactionA

Read one bank transaction by Xero ID, including all returned line items and reconciliation status.

xero_list_paymentsB

Read one date-bounded page of payments, with payment, invoice, contact and bank-account identifiers. The API may not identify the matching bank statement line.

xero_list_manual_journalsA

Read one date-bounded page of manual journals, including lines where returned. Use get_manual_journal for full lines.

xero_get_manual_journalB

Read one manual journal by Xero ID, including its journal lines and date.

xero_get_profit_and_lossA

Read the Xero Profit and Loss report for one explicit date range, at most 366 days. Choose cash-only or accrual basis explicitly; preserves report rows and cells.

xero_get_balance_sheetA

Read the Xero Balance Sheet as at an explicit date. Choose cash-only or accrual basis explicitly; preserves report rows and cells.

xero_get_trial_balanceA

Read the Xero Trial Balance as at an explicit date. Choose cash-only or accrual basis explicitly; preserves report rows and cells.

xero_list_gst_reportsA

Read Xero's report catalogue and return only GSTReturn entries overlapping an explicit date range. Use the returned report ID with get_gst_report. This does not show filing status.

xero_get_gst_reportA

Read a saved GSTReturn report by its catalogue ID, after verifying it is a GST report. Returns tax fields and period. Filing or submission status is not supplied by this API response.

xero_review_contextA

Read the connected organisation's reporting context and saved OAuth scope names before shaping a year-end request. No credentials are returned. A granted scope is not proof of the user's endpoint permissions.

xero_list_credit_notesA

Read one date-bounded page of customer and supplier credit notes. Xero pages credit notes (up to 100 per page) and includes line items; follow nextPage until null for a complete result. Filter by customer/supplier type, status, or contact. Credit-note date is not necessarily its allocation or payment date. This is read-only.

xero_get_credit_noteA

Read one credit note by Xero CreditNoteID, including lines, allocations to invoices, payments, remaining credit, and key identifiers. This is read-only.

xero_review_guideA

Guidance only: shape a year comparison, trace a figure, review debtors/creditors, or inspect GST figures. Makes no Xero API calls and does not change records.

Prompts

Interactive templates invoked by user choice

NameDescription
xero_reviewGuided, evidence-led workflow for year comparisons, tracing figures, debtors/creditors, or GST. Clarify scope, paginate fully, and disclose limits.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 30 tools

Disambiguation4/5

Most tools map cleanly to a single resource+action, and descriptions explicitly disambiguate near-pairs (list_invoices vs list_period_invoices, list_accounts vs list_revenue_accounts, get_quote_pdf vs get_invoice_pdf). A few boundaries remain soft — two invoice listing tools with overlapping filters, and review_guide/review_context are both meta helpers — but descriptions make the intended choice clear.

Naming Consistency5/5

Every tool follows the same xero_verb_noun snake_case pattern (xero_list_quotes, xero_get_invoice, xero_create_draft_quote, xero_update_draft_invoice). Verbs are used predictably: list for paged collections, get for single-record reads, create/update for writes.

Tool Count3/5

30 tools is on the heavy side and sits above the comfortable 3-15 range, but the surface covers a genuinely broad domain (quotes, invoices, contacts, accounts, GST, reports, credit notes, bank transactions, journals) and each tool targets a distinct operation. It is defensible breadth rather than padding, though it is borderline.

Completeness3/5

Read coverage is strong across the accounting domain, but the write surface is thin: drafts can be created and updated for quotes and invoices, yet there is no approve/void/delete, no payment, credit-note, manual-journal, or bank-transaction creation, and no contact creation/update. Agents can read and draft but cannot complete full document lifecycles.