Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@teamnetwork-nz/xero-mcp-server

Latest version: v2.0.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: darylpetersen
17 Versions
1.4K Downloads

Scan summary

@teamnetwork-nz/xero-mcp-server was last scanned on 24 Nov 2026 at version 2.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 17 versions; the latest 2 were published on 24 Nov 2026.
  • Findings: No rules fired in version 2.0.0.
  • Downloads: 1,372 downloads.

Versions

17 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.0.0 LATEST 24 Nov 2026 No rules fired
1.17.0 24 Nov 2026 No rules fired
1.16.2 17 Nov 2026 No rules fired
1.16.1 16 Nov 2026 Not shown
1.16.0 16 Nov 2026 Not shown

No rules fired in 2.0.0

Findings

Findings for v2.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

TEAMnetwork Xero MCP Server

Versioned implementation knowledge

Read xero://capabilities/1.0.0 with MCP resources/read, or call the read-only get_capabilities tool with {}. Both publish the same contract version, documentation version, package version, content hash, local field meanings, limitations, and the exact enabled runtime input schemas. Mutation/report/payroll tool availability follows the configured profile. Cross-system meanings of user-defined references belong to the shared knowledge service, not this server.

The detailed xero://guidance/agent-playbook resource is embedded from AGENTS.md at build time, so it is present in published packages without requiring a repository checkout. Run npm run build after editing AGENTS.md. No credentials or customer records are included in these resources. Facades must explicitly preserve or remap their URIs/tool names and apply authorization.

Tools accept optional outputFormat: "json" to return valid JSON text. The option is removed locally and is never sent to the Xero API.

Streamable HTTP

Set XERO_TRANSPORT=http to serve stateless MCP at /mcp. It binds to 127.0.0.1 by default; remote binding requires XERO_HTTP_BEARER_TOKEN and XERO_HTTP_ALLOWED_HOSTS. Optional controls include XERO_HTTP_PORT, XERO_HTTP_ALLOWED_ORIGINS, and XERO_HTTP_MAX_BODY_BYTES. A health endpoint is available at /health.

A Model Context Protocol (MCP) server for Xero, maintained by TEAMnetwork. Forked and extended from the official Xero MCP Server.

Provides AI agents and MCP-compatible clients (e.g. Claude Desktop) with tools to read and write Xero accounting data, manage invoice attachments, and download invoice PDFs.

Features

  • Invoices - create, list, structured search, native batch lookup, settlement/history inspection, update, authorise, void, get full detail, download as PDF
  • Contacts - create, list, identifier-based resolution, update, archive
  • Quotes — create, list, update, convert to invoice
  • Payments & Credit Notes — create, list, update
  • Bank Transactions & Manual Journals — create, list, update
  • Accounts, Items, Tax Rates, Tracking — list, create, update
  • Financial Reports — Trial Balance, Profit & Loss, Balance Sheet, Aged Payables/Receivables
  • Invoice Attachments — list, upload (e.g. Crystal Reports PDFs), download, delete
  • Payroll — employees, leave, timesheets (optional, off by default)
  • Modular scopes — only request the Xero API permissions your use case needs

Prerequisites

  • Node.js v18 or higher
  • A Xero developer account with API credentials

Docs and Links


Setup

1. Create a Xero Developer App

Set up a Custom Connection following Xero's guide: https://developer.xero.com/documentation/guides/oauth2/custom-connections/

When configuring scopes in your Xero app, include the scopes for the feature groups you plan to use (see Feature Groups below). At minimum you need:

accounting.transactions
accounting.contacts
accounting.settings
accounting.attachments
accounting.journals.read
2. Authentication

There are two authentication modes:

Custom Connections (recommended)

Uses a Client ID and Secret tied to a specific Xero organisation. Best for Claude Desktop and single-org setups.

{
  "mcpServers": {
    "xero": {
      "command": "npx",
      "args": ["-y", "tn-xero-mcp-server@latest"],
      "env": {
        "XERO_CLIENT_ID": "your_client_id_here",
        "XERO_CLIENT_SECRET": "your_client_secret_here"
      }
    }
  }
}
Bearer Token

Use when your MCP client handles the OAuth flow (e.g. PKCE). The bearer token takes precedence over Client ID/Secret if both are set.

{
  "mcpServers": {
    "xero": {
      "command": "npx",
      "args": ["-y", "tn-xero-mcp-server@latest"],
      "env": {
        "XERO_CLIENT_BEARER_TOKEN": "your_bearer_token"
      }
    }
  }
}

When obtaining a bearer token, request the scopes matching your enabled feature groups. See Feature Groups for the full scope list.


Feature Groups

Scopes and tools are controlled by environment variables. This means you only provision the Xero API permissions your setup actually needs.

Variable Default Scopes requested Tools enabled
(core — always on) — accounting.transactions accounting.contacts accounting.settings accounting.attachments accounting.journals.read All invoicing, contact, payment, attachment, PDF & journal tools
XERO_ENABLE_REPORTS true accounting.reports.read Trial Balance, P&L, Balance Sheet, Aged Payables/Receivables
XERO_ENABLE_PAYROLL false payroll.settings payroll.employees payroll.timesheets All payroll tools
XERO_READWRITE false No additional scopes Create, update, and delete tools

Note: To use payroll tools, your Xero region must be NZ or UK, and your Xero app must have the payroll scopes provisioned.

XERO_ENABLE_READWRITE=true remains a deprecated compatibility alias for one release. XERO_READWRITE takes precedence when both are set.

Full configuration example
{
  "mcpServers": {
    "xero": {
      "command": "npx",
      "args": ["-y", "tn-xero-mcp-server@latest"],
      "env": {
        "XERO_CLIENT_ID": "your_client_id_here",
        "XERO_CLIENT_SECRET": "your_client_secret_here",
        "XERO_ENABLE_REPORTS": "true",
        "XERO_ENABLE_PAYROLL": "false",
        "XERO_READWRITE": "false",
        "MCP_TEMP_DIR": "C:/Users/you/AppData/Local/Temp"
      }
    }
  }
}
Download storage

Invoice PDFs and attachments use unique files beneath MCP_TEMP_DIR (OS temp by default), with session cleanup, quotas and resource links. XERO_DOWNLOAD_PATH is obsolete and ignored. Retrieve files before the MCP session closes.

DATETIMEFORMAT

Controls which timezone is used when computing "today" defaults and displaying UTC timestamps from the API.

Value Behaviour
unset or local (default) Use the system's local timezone (Intl.DateTimeFormat auto-detection)
IANA name e.g. Pacific/Auckland Use this explicit timezone

Date inputs to the Xero API (invoice dates, fromDate, toDate, etc.) are YYYY-MM-DD strings interpreted by Xero in the organisation's own timezone — no conversion is applied to those. The DATETIMEFORMAT setting affects "today" defaults and the display of UTC timestamps returned by the API (e.g. UpdatedDateUTC).


Available Tools

Invoices
Tool Description
list-invoices List invoices and filter direction with type=ACCREC (AR sales invoices) or type=ACCPAY (AP purchase bills)
xero_search_transactions Structured invoice/bill search; set type=ACCREC for AR or type=ACCPAY for AP, because contact filters do not infer direction
xero_batch_invoice_lookup Native exact lookup for up to 100 invoice numbers with per-input duplicate/unmatched results
xero_lookup_invoice Scalar exact invoice-number lookup for clients affected by Hermes array coercion
get-invoice Get full details of a single invoice including all line items
xero_get_bill_settlement Trace payments, credits, prepayments, overpayments and the outstanding balance
xero_get_invoice_history Retrieve Xero-recorded invoice/bill history events (not a complete field-level audit trail)
create-invoice Create a new draft invoice (AR or AP)
update-invoice Update a draft invoice
authorise-invoice Promote a DRAFT or SUBMITTED invoice to AUTHORISED
void-invoice Void an AUTHORISED invoice, or delete a DRAFT invoice
get-invoice-pdf Download the Xero-generated invoice PDF to local disk
list-invoice-attachments List all file attachments on an invoice
xero_list_bill_attachments Return compact structured attachment metadata without binary content
upload-invoice-attachment Upload a local file (e.g. Crystal Reports PDF) as an invoice attachment
get-invoice-attachment Download an invoice attachment to local disk
xero_get_bill_attachment Explicit metadata-verified attachment download with a configurable size limit
delete-invoice-attachment Delete an attachment from an invoice
Quotes
Tool Description
list-quotes List quotes
create-quote Create a new quote
update-quote Update an existing quote
convert-quote-to-invoice Convert a quote into a draft invoice, copying all line items
Contacts
Tool Description
list-contacts List contacts; contactRole=customer filters AR customers and contactRole=supplier filters AP suppliers; omit it to include unclassified contacts
xero_find_contact Resolve a contact without silently choosing ambiguous matches; role is optional because contacts may be customer, supplier, both, or Unknown
create-contact Create a new contact
update-contact Update an existing contact
archive-contact Archive a contact (Xero does not support hard deletion)
list-contact-groups List contact groups
Payments & Credit Notes
Tool Description
list-payments List payments
create-payment Record a payment against an invoice
list-overpayments List overpayments (not returned by list-payments)
list-prepayments List prepayments (not returned by list-payments)
list-credit-notes List credit notes
create-credit-note Create a credit note
update-credit-note Update a draft credit note
Bank & Journals
Tool Description
list-bank-transactions List bank transactions
create-bank-transaction Create a bank transaction
update-bank-transaction Update a bank transaction
list-report-bank-summary Opening/closing balance and cash in/out per bank account (Xero's Bank Summary report)
list-manual-journals List manual journals
create-manual-journal Create a manual journal
update-manual-journal Update a manual journal
list-journals List the underlying GL posting stream (double-entry journal lines per account)
Settings & Configuration
Tool Description
list-accounts List chart of accounts
list-tax-rates List tax rates
list-items List inventory items
create-item Create an inventory item
update-item Update an inventory item
list-tracking-categories List tracking categories and options
create-tracking-category Create a tracking category
update-tracking-category Update a tracking category
update-tracking-options Update tracking options
create-tracking-option Create a tracking option
list-organisation-details Get organisation details

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @teamnetwork-nz/xero-mcp-server

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229