# Xero MCP Server

_OFFICIAL VENDOR · INTEGRATION · by Xero_

Xero's official MCP server connects AI tools to the Xero accounting API for contacts, the chart of accounts and invoices. It uses Xero custom connections or a bearer token and runs through npx.

## Install

```sh
npx -y @xeroapi/xero-mcp-server@latest
```

## Config snippet

```json
{
  "mcpServers": {
    "xero": {
      "command": "npx",
      "args": ["-y", "@xeroapi/xero-mcp-server@latest"],
      "env": {
        "XERO_CLIENT_ID": "your_client_id_here",
        "XERO_CLIENT_SECRET": "your_client_secret_here",
        "XERO_SCOPES": "accounting.invoices accounting.contacts accounting.settings"
      }
    }
  }
}
```

**Env vars:** `XERO_CLIENT_ID`, `XERO_CLIENT_SECRET`

**Supported hosts:** CLAUDE_DESKTOP

## Review

_Written from the maker's own published material. Not a hands-on test._

The Xero MCP Server is published by XeroAPI and bridges the MCP protocol to Xero's API. The repository lists Xero OAuth2 authentication with custom connections, contact management, chart of accounts management and invoice creation and management. It is MIT licensed.

It needs Node.js 18 or higher and a Xero developer account with API credentials. Two authentication modes are documented. Custom Connections suit testing and development and the repository recommends them for third-party clients such as Claude Desktop. Setup uses XERO_CLIENT_ID and XERO_CLIENT_SECRET, with an optional XERO_SCOPES list. The Claude Desktop config runs npx -y @xeroapi/xero-mcp-server@latest. The second mode is a bearer token in XERO_CLIENT_BEARER_TOKEN, for clients that run their own auth flow and support several Xero accounts. Required scopes differ for custom connections created before or from 29 April 2026, as the repository sets out in a table.

The repository recommends starting with a Xero Demo Company, which comes with sample data, and notes that payroll queries need an NZ or UK region. Because the server can create and change invoices, check which scopes the connection holds and test on the demo organisation before pointing it at live books.

It suits developers and finance teams who use Xero and want an assistant to look up contacts and accounts or draft invoices.

## Verdict

> Developers and finance teams that use Xero should look at it. Check the scopes on your connection and test with a Demo Company first.

## Good at

- Covers contacts, the chart of accounts and invoices.
- Two authentication modes are documented.
- A Claude Desktop config is provided.
- The repository recommends a Xero Demo Company with sample data for testing.
- MIT licensed.

## Watch out

- Needs a Xero developer account and API credentials.
- Scopes differ for custom connections created before or from 29 April 2026.
- Payroll queries need an NZ or UK region.
- Check that write actions such as invoice creation need approval.

## Use cases

- Look up a contact
- List accounts in the chart of accounts
- Draft an invoice for review
- Test accounting prompts in a Demo Company

## Getting started

1. Create a Xero account and switch to the Demo Company for testing.
2. Set up a Custom Connection in the Xero developer portal and add the required scopes.
3. In Claude Desktop, open Settings, Developer, Edit config and add the xero entry with your client ID and secret.
4. Restart the client and test with a read-only prompt on the Demo Company.

---

Repo: https://github.com/XeroAPI/xero-mcp-server
Homepage: https://developer.xero.com/
Canonical: https://delv.tools/mcp/xero