< Back to all integrations
ERP & Finance

Connect AI agents and workflows to Xero: contacts, invoices, bills, payments, bank transactions, journals and reports, with triggers on new and changed records.

Book a demo
[ Xero + engini ]

Xero for AI agents and workflows.

engini lets your AI agents and workflows work in Xero: find contacts, create and email invoices, enter bills, record payments, post manual journals, read the profit and loss or aged receivables, and start a workflow when an invoice or contact changes. Orders, payments and payroll from your other systems land in the books without anyone keying them in. Connect from Claude, ChatGPT or Cursor over MCP, from your code, or build in Workflow Studio.

MCPPython and TypeScript SDKCLIREST APIWorkflow Studio
Sign-inSign in with Xero and choose the organisation
ReachContacts, invoices, bills, credit notes, payments, bank transactions, journals, items, accounts and reports
TriggersInvoices and contacts as they change; other records on a schedule
[ 01 / What agents can do ]

What your agent can do in Xero. Every tool is one you allow or leave out.

The Xero tools in engini, grouped by what they change. Read tools are safe to hand out widely. Write and delete tools go only to the agents that need them.

Read

Get Contacts, Get Contact

Find a customer or supplier and their balances.

Read
Get Invoices, Get Invoice, Get Bills

Read sales invoices and supplier bills, with their status and amount due.

Read
Get Payments, Get Bank Transactions, Get Credit Notes

See what was paid, received and credited.

Read
Get Accounts, Get Items, Get Tax Rates, Get Tracking Categories

Read the chart of accounts and the codes to post with.

Read
Get Report

Profit and loss, balance sheet, trial balance, aged receivables and aged payables.

Read

Write

Create Contact, Update Contact

Add or change a customer or supplier.

Write
Create Invoice, Update Invoice, Email Invoice

Bill a customer and send the invoice from Xero.

Write
Create Bill, Update Bill, Add Attachment

Enter a supplier bill with the PDF attached.

Write
Create Payment, Create Bank Transaction

Record money received or spent against the right account.

Write
Create Credit Note, Allocate Credit Note

Credit a customer and apply it to an invoice.

Write
Create Manual Journal, Create Purchase Order, Create Quote

Post a journal, or raise a purchase order or quote.

Write

Delete

Void Invoice, Delete Draft Invoice

Void an invoice, or remove one that was never sent.

Delete
Delete Payment, Archive Contact

Reverse a payment, or retire a contact.

Delete

Any endpoint

Send API Request

Call any Xero API endpoint, with the sign-in added for you.

Any call

Triggers

Invoice Created, Invoice Updated

Invoices and bills added or changed.

Event
Contact Created, Contact Updated

Customers and suppliers added or changed.

Event
Check for New Payments, Check for New Bank Transactions

Money in and out, recorded.

Scheduled

A trigger starts a workflow, and a workflow can include an AI agent step. In Code, a trigger delivers the event to your own endpoint.

[ 02 / Connect your agent ]

Connect your AI agent to Xero. Four ways in, one set of permissions.

MCP

Claude, ChatGPT, Cursor

Create an MCP server in engini with your Xero connection and only the tools you choose. Add its address to your client and sign in through engini. There is no key to copy.

MCP client setup →
SDK

Python and TypeScript

Hand your agent a toolset of Xero tools. The SDK gives OpenAI and Anthropic models the tools in the format they expect and runs the ones they pick.

SDK guide →
CLI

For coding agents

The engini CLI connects Xero and runs its tools from a terminal, with machine-readable output, so an AI coding agent can drive it without getting stuck.

CLI guide →
REST API

Any language

Every Xero tool is an endpoint. Call it with exact inputs from a scheduled job or a sync, with no model in the loop.

API reference →
MCP in four steps
In engini, connect Xero and create an MCP server with that connection and the tools this agent may use.
Claude: Settings, Connectors, Add custom connector, then paste the server address.
Cursor: add the address to .cursor/mcp.json. Claude Code: claude mcp add.
Sign in through engini when the client asks. The agent sees only the tools you chose.
Cursor, connected to Xero through engini
// .cursor/mcp.json: Cursor, connected to Xero through engini
{
"mcpServers": {
"engini-xero": {
"url": "<your engini MCP server address>"
}
}
}

Create the MCP server in engini with your Xero connection and the tools this agent may use, then paste its address. The client signs in through engini on first use. Claude, VS Code and other clients take the same address: see the MCP client setup guide.

Try asking your agent
“Which customers owe us more than 60 days?”
“Create an invoice for Acme for the March retainer and email it.”
“Enter this supplier bill and attach the PDF.”
“What was our profit last quarter?”
“Record the payment for invoice INV-1043.”
“Which bills are due this week?”

Each request runs through the Xero tools in the agent's toolset or MCP server. If a tool is not allowed, the agent cannot call it.

[ 03 / What teams build ]

What teams build on Xero. Agents and workflows, across systems.

Finance

Orders into invoices

A paid Shopify or WooCommerce order becomes a Xero invoice with the payment recorded against it.

ShopifyWooCommerceXero
Accounts payable

Bills from the inbox

A supplier invoice that arrives in Outlook or Gmail is read by an agent and entered as a Xero bill, with the PDF attached.

OutlookGmailXero
Revenue operations

Won deals billed

A deal marked won in HubSpot creates the Xero contact and the first invoice.

HubSpotXero
Leadership

Numbers on request

An agent in Claude answers what was billed, what is overdue and what the quarter looks like. Its toolset holds read tools only.

XeroClaude

Every integration runs both ways, so any of these flows can also run in reverse. These are examples, not the limit: any flow between Xero and another system engini connects is available.

[ 04 / Agent Policy ]

You decide what each agent may do in Xero. engini enforces it on every call.

Toolsets

Only the tools you allow

A toolset lists the Xero tools an agent may call and the connection each one uses. Give one agent read tools only and another the write it needs. engini refuses any call outside the toolset.

MCP servers

Scoped when you set them up

An MCP server exposes only the connections and tools chosen when it is created, and engini shows who uses each server.

Identity

Whose permissions apply

Connect a person's own Xero account and engini acts as that person, with their Xero permissions. Use a shared integration account and it acts as that account. Every run is recorded under the user who started it.

Credentials

Kept out of prompts

Your agent never needs your credentials: engini stores them and adds them when it runs each call, so keys stay out of prompts and tool inputs.

Audit

Every call on record

Every call lands in History and the audit log, which you can export or stream to your SIEM.

Environments

Test before production

Workspaces keep teams apart, and development, staging and production environments keep a test agent away from live data.

SOC 2 Type IIISO 27001GDPRSecurity at engini →
[ 05 / Set up ]

Connect Xero in three steps. Then decide what each agent may do.

Step 01

Sign in to Xero

Add a Xero connection, sign in with Xero and choose the organisation the workflows should use. Connect more organisations as separate connections.

Step 02

Choose the tools

Add the connection to an MCP server or a toolset with only the tools each agent needs.

Step 03

Build or ask

Use the connection as a step in a workflow, or ask your agent to work in Xero from Claude, ChatGPT, Cursor or your own code.

[ 06 / Questions ]

Xero and engini. Straight answers.

Can an AI agent write to Xero, or only read?

Both. engini has tools to create and update contacts, invoices, bills, payments, credit notes, journals, purchase orders and quotes, and to void or delete them. Whether a given agent may use them is up to you: give it a toolset or an MCP server with read tools only, and it cannot call the rest.

Does it work with more than one Xero organisation?

Yes. Each connection is one organisation. Connect as many as you need and give each agent only the connections it should use.

Does the agent act as me in Xero?

It acts as the Xero user who signed in, with that user's role in the organisation. Every run is recorded under the person who started it.

Can a change in Xero start work?

Yes. Invoice and contact changes start work as Xero reports them, and scheduled triggers check for new payments and bank transactions. A trigger starts a workflow, and that workflow can include an AI agent step.

What if the tool I need is not listed?

Use Send API Request to call any Xero API endpoint through the same connection, and give it only to the agents that need it.