Skip to content

Xero MCP server

Yes. Xero maintains an official open-source MCP server on GitHub over its OAuth 2.0 API.

The repository is github.com/XeroAPI/xero-mcp-server (checked December 2026). It lets Claude, Cursor, or another MCP client read reports and work with Xero invoices, contacts, journals, and payments.

How Xero's MCP server works

You register an app in the Xero Developer portal, configure OAuth 2.0 credentials (or custom connection credentials, which require a paid Xero add-on), and run the MCP server locally next to your AI client.

Xero also publishes XeroAPI/xero-agent-toolkit for developers wiring Xero into custom LangChain or OpenAI Agents SDK scripts.

What to watch out for before granting write access

DetailXero (US) + MCPPractical impact
Record safetyInvoices and bills can be edited, deleted (in draft), or voidedAn agent with write scopes can alter open history unless restricted
Per-company billing$27 (Early), $59 (Growing), or $97 (Established) per orgThree LLCs on Growing cost $2,124 a year before add-ons
Stripe payoutsConnects Stripe for invoice payments and fee reconciliationWorks well for Xero invoices; standalone Stripe SaaS payouts still take care
First-party CLINo official CLI for day-to-day bookkeepingCoding agents must go through MCP or custom API scripts

When Xero + MCP is the better choice

Stay on Xero if you invoice customers directly out of your accounting app, bill in multiple currencies, track inventory, or run Gusto payroll inside Xero.

Xero also gives you unlimited users on every plan, which makes sharing access with a bookkeeper easy.

How Rastrata differs for US agent-run books

If your business is US-based (USD only) and you already use Stripe for billing, Rastrata strips away the OAuth app ceremony. Pair Claude Code, Codex, or opencode in one command through the open-source CLI.

Your agent can draft entries in Prepare mode for your review, or post balanced entries in Auto mode without ever editing or deleting posted history. Every accounting rule is proved in Lean 4, and one $19/mo plan covers every business you own (or $0 self-hosted).

Already on Xero? See Move from Xero.

FAQ

Does Xero have an official MCP server?
Yes. Xero maintains XeroAPI/xero-mcp-server on GitHub as an open-source bridge between MCP clients like Claude Desktop and the Xero Accounting API.
Can one Xero MCP connection manage multiple LLCs?
No. Xero bills each organization separately ($27 to $97 a month in the US), and API permissions are scoped per organization tenant.
Is Xero safe for an autonomous AI agent to write to?
Xero's API allows creating, editing, and voiding invoices and bills until a lock date is set. Review what scopes you grant your OAuth app, and lock closed periods before allowing writes.