# Xero [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/WYRE-AI/xero-mcp  
**GitHub Stars:** 1  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/xero-2

## Description
MCP server for Xero accounting — contacts, invoices, payments, accounts, and financial reports.

## Tools
Capabilities this server exposes over MCP:

- **xero_navigate** — Select a domain (contacts, invoices, payments, accounts, reports)
- **xero_back** — Return to domain selection
- **xero_contacts_list** — List contacts with pagination and optional filtering
- **xero_contacts_get** — Get detailed contact information by ID
- **xero_contacts_create** — Create a new contact (customer or supplier)
- **xero_contacts_search** — Search contacts by name
- **xero_invoices_list** — List invoices with optional status and type filters
- **xero_invoices_get** — Get detailed invoice information by ID
- **xero_invoices_create** — Create a new invoice (sales or bill)
- **xero_invoices_update_status** — Update invoice status (submit, authorise, void)
- **xero_payments_list** — List payments with optional status filter
- **xero_payments_get** — Get detailed payment information by ID
- **xero_payments_create** — Record a payment against an invoice
- **xero_accounts_list** — List chart of accounts with optional type/class filter
- **xero_accounts_get** — Get detailed account information by ID
- **xero_reports_profit_and_loss** — Profit and Loss (income statement) for a date range
- **xero_reports_balance_sheet** — Balance Sheet as of a specific date
- **xero_reports_aged_receivables** — Aged Receivables by contact
- **xero_reports_aged_payables** — Aged Payables by contact

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/WYRE-AI/xero-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install
```

2. Install:

```sh
npm run build
```

3. Start the server:

```sh
XERO_ACCESS_TOKEN=your-access-token XERO_TENANT_ID=your-tenant-id npm start
```

4. Start the server:

```sh
MCP_TRANSPORT=http MCP_ALLOW_INSECURE_DEV=1 npm start
```

5. Install:

```sh
docker build -t xero-mcp .
```

6. Start the server:

```sh
docker run \
  -e CONDUIT_S2S_SECRET=your-s2s-secret \
  -e AUTH_MODE=gateway \
  -p 127.0.0.1:8080:8080 \
  xero-mcp
```

## Documentation

## What Xero MCP server does

The Xero MCP server exposes selected Xero Accounting API operations through MCP tools. It covers five domains: contacts, invoices, payments, accounts, and reports. Agents can retrieve records, create contacts and invoices, record invoice payments, change invoice status, and request financial summaries.

Contact tools support listing with pagination and optional filters, lookup by ID, name search, and creation of customers or suppliers. Invoice tools cover sales invoices and bills, including listing by status or type, detailed retrieval, creation, and status changes for submission, authorisation, or voiding. Payment tools list, inspect, and record payments against invoices.

Account tools expose the chart of accounts with optional type or class filtering. Reporting tools return Profit and Loss for a date range, a Balance Sheet for a specified date, and aged receivables or payables grouped by contact.

## How it works

The Xero MCP server organizes tools into domains. An agent selects a domain with `xero_navigate`, calls the relevant domain tools, and can return to the domain selector with `xero_back`.

The server supports stdio and HTTP transports. In HTTP mode, it listens on `/mcp`; the default bind address is `0.0.0.0` and the default port is `8080`.

## Setup and configuration

Run the Xero MCP server with Node.js 20 or newer and a Xero developer account with OAuth2 app credentials. In the default environment-based mode, provide `XERO_ACCESS_TOKEN` and `XERO_TENANT_ID`. `MCP_TRANSPORT=http` switches from stdio to HTTP. Port and host settings can be changed with `MCP_HTTP_PORT` and `MCP_HTTP_HOST`.

Set `AUTH_MODE=gateway` when a gateway or proxy should provide credentials for each HTTP request. Gateway requests use the `X-Xero-Access-Token` and `X-Xero-Tenant-Id` headers, supporting per-request credentials for multiple tenants.

The published npm package is hosted in GitHub Packages and requires npm authentication with a GitHub token that has `read:packages`. The repository also documents direct installation, building, Docker execution, and one-click deployment options for DigitalOcean and Cloudflare Workers.

## Tools and capabilities

- Navigate between contacts, invoices, payments, accounts, and reports.
- List, search, inspect, and create Xero contacts.
- List, inspect, create, and update the status of invoices.
- List and inspect payments, then record payments against invoices.
- List and inspect chart-of-accounts entries.
- Generate Profit and Loss, Balance Sheet, aged receivables, and aged payables reports.

In MCP Apps hosts, `xero_invoices_get` can render a read-only invoice card showing status, contact, dates, amounts, and line items. The card is neutral by default and can be branded through supported environment variables or `window.__BRAND__` injection.

## Limitations and notes

The invoice card does not expose write actions. It is only an alternate presentation for invoice retrieval; other hosts receive the normal JSON behavior.

Gateway mode applies credentials through HTTP headers, so it is intended for HTTP deployments rather than ordinary environment-based stdio use. The available tools cover the listed Xero domains only; no broader Xero API coverage is specified.

_Full upstream README: https://allmcps.com/mcp/xero-2/readme_

