Xero logo

Xero

Connects MCP-compatible clients to Xero for managing contacts, invoices, payments, accounts, and financial reports.

Install Xero

Run the project’s own setup commands, in order.

Setup steps from the project

Xero installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install
    
  2. 2. Install
    npm run build
    
  3. 3. Start the server
    XERO_ACCESS_TOKEN=your-access-token XERO_TENANT_ID=your-tenant-id npm start
    
  4. 4. Start the server
    MCP_TRANSPORT=http MCP_ALLOW_INSECURE_DEV=1 npm start
    
  5. 5. Install
    docker build -t xero-mcp .
    
  6. 6. Start the server
    docker run \
      -e CONDUIT_S2S_SECRET=your-s2s-secret \
      -e AUTH_MODE=gateway \
      -p 127.0.0.1:8080:8080 \
      xero-mcp
    

Overview

The Xero MCP server connects MCP-compatible clients to the Xero Accounting API for accounting data and operations. It provides domain navigation plus tools for contacts, invoices, payments, accounts, and financial reports. Run it over stdio or HTTP with Xero OAuth2 credentials, or use gateway mode to supply tenant credentials per request. Reach for it when an agent needs to retrieve or update Xero records and generate core financial reports.

Use cases

  • Manage Xero contacts from an agent
  • Create and update invoice records
  • Record payments against invoices
  • Generate financial and aging reports

Key features

  • Contact listing, search, lookup, and creation
  • Invoice creation, retrieval, and status updates
  • Payment recording and retrieval
  • Chart-of-accounts access
  • Profit and Loss and Balance Sheet reports
  • Stdio, HTTP, and gateway deployment modes

Tools19

What Xero lets your agent do. Expand a tool for its parameters.

Self-reported~285 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 85d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit12d agoMost recent push to the default branch.
Tools exposed19Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Xero works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Xero

Xero is an MCP server that connects MCP-compatible clients to the Xero Accounting API. Its main tools manage contacts, invoices, payments, and accounts, while also generating Profit and Loss, Balance Sheet, aged receivables, and aged payables reports. It supports stdio and HTTP transports.

Install it with Node.js 20 or newer, then run the repository's build and start commands. The published npm package is in GitHub Packages and requires npm authentication with a GitHub token having the read:packages permission.

Set MCP_TRANSPORT=http and provide XERO_ACCESS_TOKEN and XERO_TENANT_ID before starting it. The HTTP endpoint is available at /mcp, with port 8080 and host 0.0.0.0 used by default; MCP_HTTP_PORT and MCP_HTTP_HOST can change those defaults.

Gateway mode accepts credentials per HTTP request instead of reading them from environment variables. Set AUTH_MODE=gateway, then send the OAuth2 token in X-Xero-Access-Token and the organisation identifier in X-Xero-Tenant-Id.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewXero AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/xero-2?style=directory)](https://allmcps.com/mcp/xero-2)
HTML Embed
<a href="https://allmcps.com/mcp/xero-2"><img src="https://allmcps.com/api/badge/xero-2?style=directory" alt="Xero on AllMCPs" /></a>