Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, email [email protected] and we’ll put it right.

io.github.codespar/mcp-xero

NPM · @CODESPAR/MCP-XERO · SCANNED AUG 4

MCP server for Xero — global cloud accounting: contacts, invoices, payments, items, reports

Available components

+24 this week 69 Trust /100
Trust breakdown (6 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →

Supply Chain Security86
  • No malware found by supply-chain analysis.Pass
  • Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.Partial
  • No install/post-install scripts declared.Pass
  • Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency45
Schema Quality & AI Usability72
  • AI-judged instruction clarity (good).Pass
  • Context-footprint check failed: tool/resource definitions use about 2873 tokens (~119/item across 24 items; 24 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management30
  • Stability observed for 9 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Install

Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.

npm · @codespar/mcp-xero

# add to Claude Code
claude mcp add codespar-mcp-xero -- npx -y @codespar/mcp-xero
# add to Codex CLI
codex mcp add codespar-mcp-xero -- npx -y @codespar/mcp-xero
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "codespar-mcp-xero": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@codespar/mcp-xero"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add codespar-mcp-xero --command npx --arg -y --arg @codespar/mcp-xero
# ~/.hermes/config.yaml
mcp_servers:
  codespar-mcp-xero:
    command: "npx"
    args: ["-y", "@codespar/mcp-xero"]
// mcp.json
{
  "mcpServers": {
    "codespar-mcp-xero": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-xero"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 4 Aug 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 27 to 30. That category is still filling its 30-day observation window: 8 days of observed history at the previous scan, 9 at this one. The score rises as the window fills, whether or not the server changes.

  • 2 Aug 26 +43
    • Provenance: unverified → fail security
    • Install scripts: unverified → pass security
    • Known CVEs: unverified → partial security
    • Malware scan: unverified → pass security
    • Stability: Stability not yet verified: we do not have a sandbox capture of the MCP schema this version of the package serves yet. security
    • Capabilities: pass → unverified functional
    • License: unverified → pass functional
    • Stability: unverified → 0.23 functional
    • Dependency health: unverified → partial functional
    • Maintenance: unverified → pass functional
    • Schema quality: unverified → good functional
    • Licence: MIT functional
  • 1 Aug 26 +5
    • Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window). security
    • MCP protocol: unverified → pass functional
  • 31 Jul 26 −25
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 27 Jul 26 45

    First indexed and scored.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 4 Aug 2026 · Analysed npm/@codespar/[email protected]

Provenance none

Ecosystem: npm · Outcome: none

Dependencies 94 packages

94 packages in the resolved dependency tree · 94 deprecated · 29 stale.

The dependency tree was only partially resolved, so these counts may be incomplete.

MCP tools — 24 exposed · ~2,806 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.

Tool Tokens
archive_contact ~47

Archive a Xero contact by setting ContactStatus=ARCHIVED. Archived contacts are hidden from default lists but history is preserved.

NameTypeReqDescription
ContactIDstringyesXero Contact UUID to archive.

No output schema declared.

No examples provided.

create_bank_transaction ~188

Create a bank transaction (SPEND = money out, RECEIVE = money in) directly on a bank account — for transactions without a matching invoice/bill (fees, transfers, one-off expenses).

NameTypeReqDescription
BankAccountobjectyesBank account reference — provide AccountID or Code.
ContactobjectyesContact reference — provide ContactID.
CurrencyCodestringISO-4217 currency code.
DatestringTransaction date YYYY-MM-DD.
IsReconciledbooleanMark as reconciled on creation.
LineAmountTypesstringLine amount tax treatment.
LineItemsarrayyesArray of line items (Description, Quantity, UnitAmount, AccountCode, TaxType).
ReferencestringFree-text reference.
TypestringyesTransaction type. SPEND/RECEIVE are the common values.

No output schema declared.

No examples provided.

create_contact ~271

Create a Xero contact (customer or supplier — Xero uses one unified Contact object with IsCustomer/IsSupplier flags inferred from transactions).

NameTypeReqDescription
AccountNumberstringMerchant-side account number for this contact.
AddressesarrayArray of address objects with AddressType (POBOX/STREET), AddressLine1..4, City, Region, PostalCode, Country.
ContactNumberstringExternal system identifier (max 50 chars).
DefaultCurrencystringISO-4217 currency code used as default on invoices for this contact.
EmailAddressstringPrimary email address.
FirstNamestringContact first name (for individuals).
IsCustomerbooleanHint that this contact is a customer.
IsSupplierbooleanHint that this contact is a supplier.
LastNamestringContact last name (for individuals).
NamestringyesFull name of the contact. Required and must be unique within the tenant.
PhonesarrayArray of phone objects with PhoneType (DEFAULT/DDI/MOBILE/FAX), PhoneNumber, PhoneAreaCode, PhoneCountryCode.
TaxNumberstringTax number (VAT, ABN, GST, EIN, etc.) — country-dependent.

No output schema declared.

No examples provided.

create_credit_note ~196

Create a credit note. Type ACCRECCREDIT = credit to a customer (offsets an AR invoice), ACCPAYCREDIT = credit from a supplier (offsets an AP bill).

NameTypeReqDescription
ContactobjectyesContact reference — provide ContactID.
CreditNoteNumberstringMerchant credit note number (auto-assigned for ACCRECCREDIT if omitted).
CurrencyCodestringISO-4217 currency.
DatestringCredit note date YYYY-MM-DD.
LineAmountTypesstringLine amount tax treatment.
LineItemsarrayyesArray of line items (Description, Quantity, UnitAmount, AccountCode, TaxType).
ReferencestringFree-text reference.
StatusstringCredit note status. Defaults to DRAFT.
TypestringyesACCRECCREDIT (customer credit) or ACCPAYCREDIT (supplier credit).

No output schema declared.

No examples provided.

create_invoice ~268

Create an invoice in Xero. Type ACCREC = accounts-receivable (sales invoice to a customer), ACCPAY = accounts-payable (bill from a supplier). Default Status=DRAFT; set AUTHORISED to issue immediately.

NameTypeReqDescription
ContactobjectyesContact reference — provide ContactID of an existing contact.
CurrencyCodestringISO-4217 currency code. Defaults to organization base currency.
DatestringInvoice date, YYYY-MM-DD.
DueDatestringPayment due date, YYYY-MM-DD.
InvoiceNumberstringOptional merchant invoice number. If omitted, Xero auto-numbers (ACCREC only).
LineAmountTypesstringWhether LineItem UnitAmount is tax-exclusive, tax-inclusive, or tax-free.
LineItemsarrayyesArray of line items. Each: Description, Quantity, UnitAmount, AccountCode (or ItemCode), TaxType, DiscountRate.
ReferencestringACCREC only — free-text reference visible on invoice.
StatusstringDRAFT (default), SUBMITTED (awaiting approval), or AUTHORISED (live/issued).
TypestringyesACCREC (sales/AR) or ACCPAY (bill/AP).

No output schema declared.

No examples provided.

create_item ~222

Create a Xero inventory/product item. Items can be sales-only, purchase-only, or tracked inventory (requires IsTrackedAsInventory + InventoryAssetAccountCode).

NameTypeReqDescription
CodestringyesUser-defined item code (required, unique within tenant).
DescriptionstringSales description shown on invoices.
InventoryAssetAccountCodestringInventory asset account code (required when IsTrackedAsInventory is true).
IsPurchasedbooleanTrue if item is available for purchase (appears on bills).
IsSoldbooleanTrue if item is available for sale (appears on invoices).
IsTrackedAsInventorybooleanTrue to track stock on hand — requires InventoryAssetAccountCode.
NamestringItem display name.
PurchaseDescriptionstringPurchase description shown on bills.
PurchaseDetailsobjectPurchase pricing: UnitPrice, AccountCode (expense account), TaxType.
SalesDetailsobjectSales pricing: UnitPrice, AccountCode (revenue account), TaxType.

No output schema declared.

No examples provided.

create_payment ~136

Record a payment against an invoice or credit note. Reduces the invoice's AmountDue and posts to the specified bank/payment account.

NameTypeReqDescription
AccountobjectyesBank/payment account reference — provide AccountID or Code (e.g. '090' for a bank account).
AmountnumberyesPayment amount in invoice currency.
CurrencyRatenumberFX rate if invoice currency differs from org base currency.
DatestringPayment date, YYYY-MM-DD.
InvoiceobjectyesInvoice reference — provide InvoiceID.
ReferencestringFree-text reference (bank ref, check number, etc).

No output schema declared.

No examples provided.

email_invoice ~62

Email an AUTHORISED invoice to the contact's email address on file. Xero uses the default invoice email template. No body required.

NameTypeReqDescription
InvoiceIDstringyesXero Invoice UUID. Invoice must be AUTHORISED and contact must have an EmailAddress.

No output schema declared.

No examples provided.

get_balance_sheet ~151

Retrieve the Balance Sheet report for the tenant. Returns assets, liabilities, and equity grouped by account as of a given date.

NameTypeReqDescription
datestringReport date YYYY-MM-DD. Defaults to today.
paymentsOnlybooleanCash-basis report if true (ignore accrual).
periodsnumberNumber of comparison periods (1-11).
standardLayoutbooleanIf true, return the standard (non-customised) layout.
timeframestringPeriod size when 'periods' > 0.
trackingOptionID1stringTracking category option to filter the report.
trackingOptionID2stringSecond tracking category option.

No output schema declared.

No examples provided.

get_contact ~32

Retrieve a single Xero contact by ContactID (UUID).

NameTypeReqDescription
ContactIDstringyesXero Contact UUID.

No output schema declared.

No examples provided.

get_invoice ~45

Retrieve a single invoice by InvoiceID (UUID) or InvoiceNumber.

NameTypeReqDescription
InvoiceIDstringyesXero Invoice UUID or InvoiceNumber (e.g. INV-0042).

No output schema declared.

No examples provided.

get_payment ~28

Retrieve a single payment by PaymentID.

NameTypeReqDescription
PaymentIDstringyesXero Payment UUID.

No output schema declared.

No examples provided.

list_accounts ~76

List the Xero chart of accounts. Use this to discover AccountCodes/AccountIDs needed for invoice line items and payments.

NameTypeReqDescription
orderstringOrdering, e.g. 'Code ASC'.
wherestringXero where clause, e.g. 'Class=="REVENUE"' or 'Type=="BANK"'.

No output schema declared.

No examples provided.

list_bank_transactions ~92

List bank transactions (spend/receive entries on bank accounts). Supports where-clause filtering by BankAccount.AccountID, Type, Date, etc.

NameTypeReqDescription
orderstringOrdering, e.g. 'Date DESC'.
pagenumberPage number (100 per page).
wherestringXero where clause, e.g. 'BankAccount.AccountID==guid("...")'.

No output schema declared.

No examples provided.

list_contacts ~122

List Xero contacts. Supports Xero's where clause for server-side filtering (e.g. 'Name=="ACME Ltd"', 'IsCustomer==true').

NameTypeReqDescription
includeArchivedbooleanIf true, include archived contacts in results.
orderstringOrdering clause, e.g. 'Name ASC' or 'UpdatedDateUTC DESC'.
pagenumberPage number (100 contacts per page).
wherestringXero where clause, e.g. 'Name.Contains("ACME")' or 'IsCustomer==true'.

No output schema declared.

No examples provided.

list_credit_notes ~87

List credit notes. Supports where-clause filtering by Type, Status, Contact.ContactID, Date.

NameTypeReqDescription
orderstringOrdering, e.g. 'Date DESC'.
pagenumberPage number (100 per page).
wherestringXero where clause, e.g. 'Type=="ACCRECCREDIT" AND Status=="AUTHORISED"'.

No output schema declared.

No examples provided.

list_invoices ~136

List invoices with optional Xero where-clause filtering. Common filters: Status=="AUTHORISED", Type=="ACCREC", Contact.ContactID==guid("..."), Date>=DateTime(2026,1,1).

NameTypeReqDescription
orderstringOrdering, e.g. 'Date DESC'.
pagenumberPage number (100 invoices per page).
statusesstringComma-separated statuses filter, e.g. 'DRAFT,AUTHORISED'.
wherestringXero where clause, e.g. 'Status=="AUTHORISED" AND Type=="ACCREC"'.

No output schema declared.

No examples provided.

list_items ~66

List all items/products in the Xero tenant. Supports where clause, e.g. 'IsSold==true'.

NameTypeReqDescription
orderstringOrdering, e.g. 'Code ASC'.
wherestringXero where clause, e.g. 'IsSold==true'.

No output schema declared.

No examples provided.

list_organisations ~42

Retrieve the Xero organisation(s) the access token has access to — returns name, base currency, country, fiscal year start, tax settings, and edition.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

list_payments ~85

List payments recorded in Xero. Supports where-clause filtering (e.g. 'Status=="AUTHORISED"', 'Date>=DateTime(2026,1,1)').

NameTypeReqDescription
orderstringOrdering, e.g. 'Date DESC'.
pagenumberPage number (100 per page).
wherestringXero where clause.

No output schema declared.

No examples provided.

list_tax_rates ~77

List tax rates configured in the Xero tenant. Use the returned TaxType codes on invoice/bill line items. Supports where clause like 'Status=="ACTIVE"'.

NameTypeReqDescription
orderstringOrdering, e.g. 'Name ASC'.
wherestringXero where clause, e.g. 'Status=="ACTIVE"'.

No output schema declared.

No examples provided.

update_contact ~180

Update an existing Xero contact. POSTs to /Contacts/{ContactID}. Only include fields you want changed; Xero merges updates.

NameTypeReqDescription
AccountNumberstringMerchant-side account number.
AddressesarrayAddresses array (replaces existing).
ContactIDstringyesXero Contact UUID to update.
ContactNumberstringExternal system identifier.
DefaultCurrencystringISO-4217 default currency.
EmailAddressstringPrimary email address.
FirstNamestringContact first name.
LastNamestringContact last name.
NamestringUpdated name (must remain unique within tenant).
PhonesarrayPhones array (replaces existing).
TaxNumberstringTax number (VAT/ABN/GST/EIN).

No output schema declared.

No examples provided.

update_invoice ~145

Update an existing invoice. POSTs to /Invoices/{InvoiceID}. DRAFT/SUBMITTED invoices are fully editable; AUTHORISED invoices have limited editable fields (Reference, DueDate, etc).

NameTypeReqDescription
DatestringInvoice date YYYY-MM-DD.
DueDatestringPayment due date YYYY-MM-DD.
InvoiceIDstringyesXero Invoice UUID to update.
InvoiceNumberstringMerchant invoice number.
LineAmountTypesstringTax treatment for line amounts.
LineItemsarrayReplacement line items array.
ReferencestringFree-text reference.
StatusstringNew invoice status.

No output schema declared.

No examples provided.

void_invoice ~52

Void an invoice by setting Status=VOIDED. Only DRAFT, SUBMITTED, or AUTHORISED invoices with zero payments can be voided.

NameTypeReqDescription
InvoiceIDstringyesXero Invoice UUID to void.

No output schema declared.

No examples provided.