Skip to content

MCP server

Xero MCP server

Xero's official MCP server lets AI list and create contacts, invoices and payments, read bank transactions and pull reports such as profit and loss.

At a glance

Maintained by
Xero
Tools exposed
10 listed below
Reviewed
September 24, 2026

Why it matters

What it does and why it matters

Xero is the accounting system for many small businesses and their accountants. Its official MCP server lets an assistant list accounts, contacts, invoices and bank transactions, create contacts, invoices and payments, and pull reports such as profit and loss and trial balance. Payroll employee data is available too.

For business owners, that means answers like "how did we do last quarter" or "who owes us money" without opening reports. For bookkeepers, it speeds up routine entries.

Entries in the books matter for tax and reporting, so we start with reports and lists, and add invoice and payment creation with a bookkeeper approving each entry. Use a connection limited to one organization and review changes in Xero's history.

Use cases

Best business use cases

Financial questions

Ask about profit and loss and trends. See automated reporting.

Draft invoices

Create invoices from job details. See invoice processing.

Contact updates

Add new customers and suppliers.

Bank questions

Review recent bank transactions.

Receivables

List who owes money and how long.

Tools

Available tools

Tool names as published by the maintainer at review time. Versions change, so check the repository for the current list.

Read and write: Read and write for accounting records (invoices, contacts, payments, journals) plus read-only reports.

  • list-accounts

    Lists the chart of accounts.

  • list-contacts

    Lists contacts.

  • list-invoices

    Lists invoices.

  • create-invoice

    Creates an invoice.

  • create-contact

    Creates a contact.

  • list-bank-transactions

    Lists bank transactions.

  • create-payment

    Records a payment.

  • list-profit-and-loss

    Returns the profit and loss report.

  • list-trial-balance

    Returns the trial balance report.

  • list-payroll-employees

    Lists payroll employees.

Workflows

Example workflows

Monthly owner summary

  1. 1

    Ask for last month's profit and loss.

  2. 2

    The assistant pulls the report.

  3. 3

    It compares with the month before.

  4. 4

    It explains the main changes.

  5. 5

    The owner asks follow-ups.

Invoice after a job

  1. 1

    Share job details.

  2. 2

    The assistant finds or creates the contact.

  3. 3

    It drafts the invoice.

  4. 4

    The bookkeeper approves.

  5. 5

    The invoice is created in Xero.

Prompts

Example prompts

  • “Summarize our profit and loss for last quarter compared with the one before.”

  • “Which customers have invoices overdue by more than 30 days?”

  • “Create a draft invoice for Harbor Group for last week's work.”

Setup

Installation and configuration

Examples for Claude Desktop and Claude Code. Replace the placeholder values with your own keys, and store secrets outside version control.

Claude Desktop: claude_desktop_config.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"
            }
        }
    }
}

Claude Code: terminal

claude mcp add xero -e XERO_CLIENT_ID=your_client_id_here -e XERO_CLIENT_SECRET=your_client_secret_here -- npx -y @xeroapi/xero-mcp-server@latest
  • Local server: npx -y @xeroapi/xero-mcp-server@latest.
  • Needs: Xero custom connection (XERO_CLIENT_ID, XERO_CLIENT_SECRET) or a bearer token in XERO_CLIENT_BEARER_TOKEN..

Security

Security considerations

  • Restricted keys

    Use restricted keys or scoped sign-in that allow only the actions a workflow needs.

  • Test mode first

    Build and test in sandbox or test mode before touching live money.

  • Approve money movement

    Refunds, payouts, payments and deletions need a person to approve them.

  • Audit trail

    Review entries in Xero's history and keep a bookkeeper in the loop.

Related servers

Servers that pair well with it

QuickBooks Online

Intuit's official QuickBooks Online MCP server lets AI search and create customers, invoices, bills and payments and pull financial reports.

Stripe

Stripe's official MCP server lets AI search and read Stripe data, make changes with confirmation for sensitive actions, run analytics and search docs.

Google Sheets

Google's own Sheets MCP server lets AI read and update cell values and formulas, change spreadsheet structure and insert rows or columns.

Keep exploring

FAQ

Questions people ask us

Have a question that is not here? Ask us directly.

Start a project

Want this connected to your own systems? We build AI workflows with MCP.

Send a short brief. We reply with questions, a suggested plan and an estimate you can compare with other offers.

Your privacy choices

We use necessary storage to run this site. With your permission we also use Google Analytics to see which pages help people, and load maps from Google. You can change this at any time. Read the cookie policy.