MCP Ecommerce
Xero logo

Payments

Xero MCP Server

Open-source MIT-licensed MCP server maintained by Xero that runs locally and exposes contacts, invoices, accounts, bank transactions, reports and payroll to MCP clients using Custom Connection credentials or a bearer token.

Xero MCP Server setup guide: Xero's MCP documentation page on github.com, shown in a browser frame (payments MCP server for e-commerce)
Xero MCP Server setup guide preview: Xero’s documentation on github.com, captured Nov 6, 2026. The page may have changed since; the link opens the live version.

What it is and why it matters

The Xero MCP Server is an open-source, MIT-licensed server maintained by Xero. It runs on your own computer and connects an MCP client, such as Claude Desktop, to a Xero organisation. Through it, an AI assistant can list invoices, contacts, accounts, bank transactions, payments, quotes and credit notes, and pull reports such as profit and loss, balance sheet, trial balance and aged receivables or payables. It can also create and update records, including invoices, contacts, payments and manual journals. Payroll tools cover timesheets, employees and leave, and they only work for NZ or UK organisations.

It suits merchants and bookkeeping agencies that want help with reconciliation checks, invoice drafting and report summaries. How well it works depends mostly on credentials and scopes. You choose between Custom Connection credentials, which are tied to one organisation, and a bearer token, which suits setups that handle several Xero accounts. The permissions you grant decide what the assistant can do. The documentation says Custom Connections created from April 29, 2026 need granular V2 scopes, and earlier ones use V1 bundled scopes. Start with a Demo Company and read-only scopes before you connect live books.

What it does

  • List invoices, contacts, accounts and bank transactions
  • Pull profit and loss and other reports
  • Create and update invoices, contacts, payments and manual journals
  • Payroll tools for NZ and UK organisations

Best for

Merchants and bookkeeping agencies that want AI-assisted reconciliation and invoice creation in Xero.

How to connect it

  1. Create or choose a Xero organisation. The documentation recommends starting with a Demo Company, which has sample data. Payroll tools need an NZ or UK region.
  2. Set up a Custom Connection in the Xero developer account, as described in the documentation, and note the client ID and client secret. Add every scope from the list that matches the date you created the connection (V1 before April 29, 2026, V2 from that date). For a first trial, choose read scopes only.
  3. Check that Node.js v18 or higher is installed, as the documentation requires. If you use Node Version Manager, the documentation says to give the full path to npx in the config.
  4. In Claude Desktop, open Settings, then Developer, then Edit config. Add a xero entry under mcpServers that uses npx with the package @xeroapi/xero-mcp-server@latest. Put XERO_CLIENT_ID and XERO_CLIENT_SECRET in the env block. Optionally set XERO_SCOPES to a space-separated list of scopes.
  5. If you prefer a bearer token, set XERO_CLIENT_BEARER_TOKEN in env instead. It takes precedence over the client ID if both are set. Request the scopes listed in the documentation when you obtain the token.
  6. Restart the client and ask for a simple read, such as listing organisation details or recent invoices, to confirm the connection works.

Exact commands and addresses change. Use the official documentation for the current steps.

Installation guide for Xero MCP Server

Client-by-client steps, what to prepare, the first prompts to run and fixes for common errors.

ClaudeChatGPTGeminiMicrosoft CopilotPerplexityCursorClaude Code
→

Questions you can ask it

  • List all unpaid invoices that are overdue and group them by contact, with the total owed for each.
  • Show the profit and loss report for last quarter and point out the three biggest expense accounts.
  • List bank transactions from the past 30 days and flag any that have no matching payment or invoice.
  • Draft an invoice for a named contact with two line items, and show me the details before anything is saved.

What it cannot do

  • It does not run as a hosted service. You run it locally, and you need Node.js and your own Xero API credentials.
  • Payroll tools only work for organisations in NZ or UK regions, so they do not apply to other countries.
  • The update tools for invoices, quotes and credit notes are described as applying to drafts, so it cannot be relied on to edit finalised documents.

Staying safe

  • Grant only the scopes you need. Write tools can create payments, bank transactions and manual journals, which change your accounts. Use read-only scopes first and add write scopes only for supervised tasks.
  • Keep the client ID, client secret and bearer token out of shared files and version control. They sit in your client config, so protect that file and rotate the credentials if it is exposed.
  • Test on a Demo Company before connecting live books. Review every proposed create or update before approving it, and have an accountant check any journals or payments the assistant posts.

Watch out for: Scopes changed to granular V2 for connections created after April 2026 and write tools can post journals, so scope credentials tightly.

Frequently asked questions

+

Is the Xero MCP Server free and official?

Yes to both, going by the listing and repository. Xero maintains it under the MIT license, so the software itself costs nothing to use. You still need a Xero organisation and a developer account for API credentials. Check Xero's own pricing and API terms for any limits that apply to your plan.

+

Which scopes does the Xero MCP Server need?

It depends on when your Custom Connection was created. The documentation says connections made before April 29, 2026 use V1 bundled scopes. Connections from that date use V2 granular scopes. You can override the defaults with the XERO_SCOPES variable. For a bearer token, request the scopes listed in the documentation.

+

Should I use Custom Connections or a bearer token?

The documentation recommends Custom Connections for testing and for clients like Claude Desktop, because they tie to one organisation. A bearer token suits setups that support several Xero accounts and let the client run its own sign-in flow. If both are set, the bearer token takes precedence.

Step-by-step: install Xero MCP Server in Claude, ChatGPT, Gemini, Copilot and more →

Questions and answers

Questions readers and searchers ask about Xero MCP Server, answered by the site editor from the vendor documentation, plus reader experience. Every comment is reviewed before it appears.

Ask a question or share what worked

Reviewed before publishing. One link max, no HTML.

Related guides

Other servers to compare