Xero MCP Safe
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| XERO_CLIENT_ID | No | Optional. Used to refresh an expired token. | |
| XERO_TENANT_ID | No | The organisation's tenant ID. Sent as the `xero-tenant-id` header. | |
| XERO_TOKEN_FILE | No | Optional. Xero refresh tokens are single use, so we keep the newest pair in this file (mode 600). | |
| ANTHROPIC_API_KEY | No | Optional, for `bill_from_document` Claude mode only. | |
| XERO_ACCESS_TOKEN | No | OAuth 2.0 bearer token. | |
| XERO_ALLOW_WRITES | No | Set to `1` to register write tools (`invoice_from_job` and `bill_from_document`). Off by default. | 0 |
| XERO_CLIENT_SECRET | No | Optional. Used to refresh an expired token. | |
| XERO_EXTRACT_MODEL | No | Optional, for `bill_from_document` Claude mode only. Model name, falls back to `claude-haiku-5-5`. | claude-haiku-5-5 |
| XERO_REFRESH_TOKEN | No | Optional. Used to refresh an expired token. | |
| XERO_SKIP_INVOICES | No | Invoice numbers or IDs the chase plan always leaves alone (comma separated). | |
| XERO_BILL_ACCOUNT_CODE | No | Optional account code for draft bill lines. Left off unless set. | |
| XERO_SALES_ACCOUNT_CODE | No | Optional account code for draft sales invoice lines. Left off unless set. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| overdue_invoicesA | Unpaid customer invoices past their due date, most overdue first, with an ageing breakdown (1 to 30, 31 to 60, 61 to 90, over 90 days). Drafts, voided and paid invoices are never counted. Use for 'who owes us money?' |
| chase_planA | For every open customer invoice, decide one of four outcomes: Friendly reminder (7 to 20 days overdue), Firm reminder (21 to 40), Call the Owner (over 40, no email), or Skip (not due, too early, on the skip list, or a payment is pending). Each row says why in one line. |
| cash_summaryA | What customers owe, money in and out over recent days, and what we owe suppliers. Money movement only: Xero's Accounting API gives no bank balance, so none is claimed. |
| aged_receivablesA | Receivables by customer in ageing buckets (current, 1 to 30, 31 to 60, 61 to 90, over 90). With contact_id it returns Xero's own AgedReceivablesByContact report for that one contact. |
| find_contactsA | Search Xero contacts by name or email. Returns the contact ID the write tools need. |
| invoice_from_jobA | Turn a job description into a DRAFT sales invoice (ACCREC) with line items and 10% GST. Example: '3 hours labour at $120/hr, materials $450, call out fee $90'. Dry run by default: with confirm=false it returns the preview and creates nothing. With confirm=true it creates the invoice as DRAFT only. It is never approved or sent. Lines without a price are not charged. |
| bill_from_documentA | Read the text of a supplier invoice (OCR style), extract the fields, check the GST maths in whole cents and propose a DRAFT supplier bill (ACCPAY). Deterministic parser by default; mode=claude is optional and sends the text to the Anthropic API. Dry run by default. If the GST does not add up, the supplier is unknown or the bill number already exists, it is blocked even with confirm=true. Created as DRAFT only, never approved. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
The receivables tools overlap significantly: overdue_invoices, aged_receivables, and chase_plan all operate on the same open/overdue invoice pool and multiple expose ageing buckets, so an agent asking 'who owes us money by age' could reasonably pick any of them. The rich descriptions help separate an action list (chase_plan) from a raw report (aged_receivables) and a cash-flow view (cash_summary), but the boundaries are not crisp. The two document/job creation tools are clearly distinct.
Names mix conventions: noun phrases (overdue_invoices, chase_plan, cash_summary, aged_receivables), a verb_noun (find_contacts), and X_from_Y patterns (bill_from_document, invoice_from_job). All are readable and snake_case, but there is no single predictable verb_noun scheme, making the set feel ad hoc.
Seven tools is well within a sensible range and each earns its place in the AR/cash workflow: reporting, chase planning, contact lookup, and two guarded draft-creation flows. Nothing feels redundant enough to cut or thin enough to be a gap.
Coverage is read-heavy plus two draft creators, but there is no way to record payments, send reminders/invoices, approve or void bills, or list all invoices despite chase_plan generating actions that cannot be executed through the surface. The draft-only 'safe' scope is intentional, but these gaps limit end-to-end workflows.