Xero Integrations
PremiumAccounting
Build Xero automations with your AI agent. Run them on Zapier.
- apps to connect
- 10,000+
- ways to start a workflow
- 18
- available app actions
- 38
Automate Xero with Zapier
- Dependable AI workflows
- Full audit trails and controls
- Easy visual workflow manager
- Free tier available
- SOC 2 Type II, SOC 3, GDPR, and CCPA compliant
Top teams trust Zapier to automate work
Xero MCP server: connect Xero to your AI agent with Zapier
Install Zapier once, then tell your agent what you want done. Behind the scenes, Zapier MCP finds the right triggers and actions to use with Xero and runs them—all with your credentials managed by Zapier and kept out of the model.
Connect to Zapier MCP at https://mcp.zapier.com/api/v1/connect and help me sign in to Zapier or sign up. Then connect my Xero account and help me build a Zap with Xero: ask me what I want to automate. Read the setup steps at https://zapier.com/AGENTS.md if you can't connect.
Paste this prompt into Claude, ChatGPT, Cursor, or your preferred AI agent to build Xero automations.
https://mcp.zapier.com/api/v1/connect
Install this server in Claude, ChatGPT, Cursor, VS Code, or any MCP client. You sign in once with OAuth.
npm install @zapier/zapier-sdk npm install -D @zapier/zapier-sdk-cli npx zapier-sdk login npx zapier-sdk create-connection xero
Call any app action from TypeScript. Zapier handles OAuth, token refresh, retries, and rate limits.
npx @zapier/install-zapier
Run this command to print setup instructions for your client, then follow the prompts to sign in.
Ask your AI agent to do it
Tell Claude, ChatGPT, or your go-to AI agent to install Zapier MCP, and it’ll get you started with Zapier.
Wire it into your own code
Connect your agent to Xero and 10,000+ more apps with the TypeScript SDK. Zapier handles OAuth and token refresh.
Set it up from your terminal
Tell your coding agent to run one command. It installs Zapier MCP so your agent can use Xero and other apps.
Use a premade Xero automation template to start building from anywhere: in your go-to agent interface, in code, or in Zapier.
Connect Xero to the apps you already use
- Xero + SalesforceCRM (Customer Relationship Management)
- Xero + monday.comProject Management
- Xero + HubSpotMarketing Automation
- Xero + AirtableDatabases
- Xero + ShopifyeCommerce
- Xero + WooCommerceeCommerce
- Xero + GmailEmail
- Xero + Gravity FormsForms & Surveys
- Xero + PandaDocDocuments
- Xero + Microsoft ExcelMicrosoft
- Xero + ClickUpProject Management
- Xero + Google FormsForms & Surveys
- Xero + Stripe (Legacy)Payment Processing
- Xero + Microsoft OutlookCalendar
- Xero + JotformForms & Surveys
With Zapier MCP installed, your AI agent can build automations across 10,000+ apps and 90,000+ triggers and actions. Automations run reliably on Zapier from an app event, on a schedule (cron), or from a webhook. Here are the Xero triggers and actions your agent can build with right away.
New Bank Transaction
Triggers when a new bank transaction is created.
New Bill
Triggers when you add a new bill. (Accounts Payable).
New Contact
Triggers when you add a new contact.
New Credit Note
Triggers when a new credit note is created.
New Employee
Triggers when a new employee is created (Exclusively for Australian Instances).
New Report
Triggers when you run or refresh one of the selected Xero report types (Balance Sheet, Profit & Loss, etc.).
Overdue Sales Invoice
Triggers when a sales invoice is overdue by a specified number of days.
New Payment
Triggers when you receive a new payment.
Your agent picks the right Xero action from what you ask. Connect Zapier once and it can use 55 Xero tools, each with typed inputs. Zapier handles Xero’s login, so you never paste an API key. The same actions run from TypeScript through the Zapier SDK.
Set up Xero MCP in Claude, Claude Code, ChatGPT, Cursor, and Codex
Zapier MCP works with any MCP client that supports Streamable HTTP. Connect or add Zapier in your AI tool, sign in when prompted, then ask for Xero.
https://mcp.zapier.com/api/v1/connect
- Claude
Connect Zapier in Claude and sign in when prompted. Claude setup guide
- Claude Code
Install Zapier MCP in Claude Code, then sign in from the terminal. Claude Code setup guide
- ChatGPT
Connect Zapier in ChatGPT and approve the sign-in. ChatGPT setup guide
- Cursor
mcp.jsonAdd Zapier to Cursor and sign in. Cursor setup guide
- Codex
Add Zapier to Codex and sign in. Codex setup guide
- VS Code and other clients
mcp.jsonAdd Zapier to any MCP client that supports Streamable HTTP.
- OpenCode
opencode.jsonAdd Zapier to OpenCode.
- Terminal auto-installer
Install Zapier MCP in whichever client you have.
How your agent gets these tools
- Connect Zapier to your AI tool (pick yours above) and sign in once in the browser. Zapier sets up your MCP server, with no token to paste.
- Ask your agent to connect Xero. It calls
discover_zapier_actionsto find the Xero actions, thenenable_zapier_actionto add them. - Approve the Xero sign-in when prompted. If Xero isn’t connected yet, the first call returns a sign-in link.
- Ask for what you want done in plain language. Each enabled action becomes its own tool, named as below. Until then,
execute_zapier_read_actionandexecute_zapier_write_actionrun it.
Use Xero in 36 AI tools with Zapier MCP
- Amazon Quick by AWS
- Antigravity by Google
- Antigravity CLI by Google
- ChatGPT by OpenAI
- Claude by Anthropic
- Claude Code by Anthropic
- Claude Cowork by Anthropic
- Claude Duet by Anthropic
- Claude for Small Business by Anthropic
- Copilot Studio by Microsoft
- Dots by OpenAI
- Figma Make by Figma
- Gemini by Google
- Gemini Enterprise by Google
- Grok by SpaceXAI
- Grok Bot by SpaceXAI
- Grok Build (Cursor) by Anysphere
- Julius AI by Caesar Labs
- Kiro by AWS
- Linear Agent by Linear
- Manus by Manus AI
- Muse by Meta
- OpenClaw by the OpenClaw Foundation
- OpenCode by Anomaly
- Pally
- Replit by Replit
- Slackbot by Slack
- Superhuman Go by Superhuman
- Toolhouse
- Town by Town
- v0 by Vercel
- Vapi by Vapi
- Vibe by Mistral AI
- VS Code by Microsoft
- Warp by Denver Technologies
- Zed by Zed Industries
55 Xero MCP tools
| Tool | MCP name | What it does |
|---|---|---|
| New Bank Transaction | xero_new_bank_transaction | Trigger · Read-only. Triggers when a new bank transaction is created. Required: |
| New Bill | xero_new_bill | Trigger · Read-only. Triggers when you add a new bill. (Accounts Payable). Required: Optional: |
| New Contact | xero_new_contact | Trigger · Read-only. Triggers when you add a new contact. Required: |
| New Credit Note | xero_new_credit_note | Trigger · Read-only. Triggers when a new credit note is created. Required: Optional: |
| New Employee | xero_new_employee | Trigger · Read-only. Triggers when a new employee is created (Exclusively for Australian Instances). Required: |
| New Report | xero_new_report | Trigger · Read-only. Triggers when you run or refresh one of the selected Xero report types (Balance Sheet, Profit & Loss, etc.). Required: |
| Overdue Sales Invoice | xero_overdue_sales_invoice | Trigger · Read-only. Triggers when a sales invoice is overdue by a specified number of days. Required: |
| New Payment | xero_new_payment | Trigger · Read-only. Triggers when you receive a new payment. Required: Optional: |
| New Payslip | xero_new_payslip | Trigger · Read-only. Triggers when a new payslip is created. Required: Optional: |
| New Project | xero_new_project | Trigger · Read-only. Triggers when a new project is created. May not trigger if there are more than 500 projects. Required: Optional: |
| New Purchase Order | xero_new_purchase_order | Trigger · Read-only. Triggers when a new purchase order is created or enters a status for the first time. Required: Optional: |
| New Quote | xero_new_quote | Trigger · Read-only. Triggers when a new quote is created. Required: Optional: |
| New Reconciled Payment | xero_new_reconciled_payment | Trigger · Read-only. Triggers when a payment is reconciled for the first time. Required: Optional: |
| New Sales Invoice | xero_new_sales_invoice | Trigger · Read-only. Triggers when a new Sales Invoice (Accounts Receivable) is created. Required: Optional: |
| New or Updated Contact | xero_new_or_updated_contact | Trigger · Read-only. Triggers when a contact is created or updated. Required: |
| Updated Employee | xero_updated_employee | Trigger · Read-only. Triggers when a new employee is updated (Exclusively for Australian Instances). Required: |
| Updated Sales Invoice | xero_updated_sales_invoice | Trigger · Read-only. Triggers when a Sales Invoice is updated. Required: Optional: |
| Updated Quote | xero_updated_quote | Trigger · Read-only. Triggers when a quote is created or updated. Required: |
| Find Contact | xero_find_contact | Search · Read-only. Finds a contact by name or account number. Required: |
| Find Credit Note | xero_find_credit_note | Search · Read-only. Finds a credit note by number or reference and retrieves its PDF. Required: |
| Find Employee | xero_find_employee | Search · Read-only. Finds an employee based on email. Required: Optional: |
| Find Invoice by ID | xero_find_invoice_by_id | Search · Read-only. Find a specific invoice using its unique Invoice ID. Required: Optional: |
| Find Purchase Order | xero_find_purchase_order | Search · Read-only. Finds a Purchase Order Required: |
| Find Quote | xero_find_quote | Search · Read-only. Finds quotes, optionally filtered by contact, quote number, or status. Required: Optional: |
| Get Invoice History | xero_get_invoice_history | Search · Read-only. Returns a list of History Records for a given Invoice ID. Required: |
| Find Invoice | xero_find_invoice | Search · Read-only. Finds an invoice by number or reference. Required: Optional: |
| Find Item | xero_find_item | Search · Read-only. Finds an item by name or code. Required: |
| Find Payment | xero_find_payment | Search · Read-only. Finds a payment by ID or reference. Required: |
| Make API GET Request | xero_make_api_get_request | Action · Read-only. Make a GET HTTP request to Xero's API, without needing to handle authentication. Fixed parameters: - method: GET Required: Optional: |
| Add Items to Existing Sales Invoice | xero_add_items_to_existing_sales_invoice | Action · Writes data. Adds line items to an existing sales invoice. Required: |
| Add Note to Invoice | xero_add_note_to_invoice | Action · Writes data. Add a note which will appear in the invoice history. Required: |
| Add or Update Stock Items | xero_add_or_update_stock_items | Action · Writes data. Creates or updates one or more stock items. Required: Optional: |
| Allocate Credit Note to Invoice | xero_allocate_credit_note_to_invoice | Action · Writes data. Allocates a credit note to an invoice. Required: |
| Create Bank Transaction | xero_create_bank_transaction | Action · Writes data. Creates a new Spend/Receive Money bank transaction. Required: Optional: |
| Create Bank Transfer | xero_create_bank_transfer | Action · Writes data. Transfers money between two bank accounts. Required: Optional: |
| Create/Update Contact | xero_create_update_contact | Action · Writes data. Creates a new contact or updates a contact if a contact already exists. Required: Optional: |
| Create Account | xero_create_account | Action · Writes data. Creates a new account. Required: |
| Create New Quote Draft | xero_create_new_quote_draft | Action · Writes data. Creates a new quote draft. Required: Optional: |
| Create Credit Note | xero_create_credit_note | Action · Writes data. Creates a new credit note for a contact. Required: Optional: |
| Delete Credit Note Allocation | xero_delete_credit_note_allocation | Action · Writes data. Deletes a credit note allocation on an invoice. Required: |
| Send Sales Invoice by Email | xero_send_sales_invoice_by_email | Action · Writes data. Send Sales Invoice by Email Required: |
| Create Employee | xero_create_employee | Action · Writes data. Creates an employee in Xero. (Exclusively for Australian Instances) Required: Optional: |
| Create Inventory Item | xero_create_inventory_item | Action · Writes data. Creates an inventory item. Required: Optional: |
| Create Bill | xero_create_bill | Action · Writes data. Creates a new bill (Accounts Payable). Required: Optional: |
| Create Sales Invoice | xero_create_sales_invoice | Action · Writes data. Creates a new sales invoice (Accounts Receivable). Required: Optional: |
| Create Payment | xero_create_payment | Action · Writes data. Applies a payment to an invoice. Required: Optional: |
| Create Project | xero_create_project | Action · Writes data. Creates a new project for a contact. Required: Optional: |
| Create Purchase Order | xero_create_purchase_order | Action · Writes data. Creates a new purchase order for a contact. Required: Optional: |
| Create Repeating Sales Invoice | xero_create_repeating_sales_invoice | Action · Writes data. Creates a template that generates regular invoices. Required: Optional: |
| Update Employee | xero_update_employee | Action · Writes data. Updates an existing employee in Xero. (Exclusively for Australian Instances) Required: Optional: |
| Update Purchase Order | xero_update_purchase_order | Action · Writes data. Updates an existing Purchase Order. Required: Optional: |
| Update Quote | xero_update_quote | Action · Writes data. Updates an existing quote. Required: Optional: |
| Update Sales Invoice | xero_update_sales_invoice | Action · Writes data. Updates existing sales invoice (Accounts Receivable). Required: Optional: |
| Upload Attachment | xero_upload_attachment | Action · Writes data. Uploads an attachment to a selected Xero resource. Resources can have a maximum of 10 attachments. Required: |
| Make API Mutating Request | xero_make_api_mutating_request | Action · Writes data. Make a mutating HTTP request (POST, PUT, PATCH, DELETE, etc.) to Xero's API, without needing to handle authentication. Required: Optional: |
Xero API with the Zapier SDK, without pasting an API key
The Zapier SDK gives your code one way to call Xero. You connect your account once, and your code references that connection instead of a raw token.
add_invoice_line_items (Add Items to Existing Sales Invoice) requires organization and invoice. Every Xero action and its inputs are listed under Xero triggers and actions above. Zapier handles OAuth, token refresh, retries and rate limits. Read the SDK docs
npm install @zapier/zapier-sdk npm install -D @zapier/zapier-sdk-cli npx zapier-sdk login npx zapier-sdk create-connection xero
import { createZapierSdk } from "@zapier/zapier-sdk";
const zapier = createZapierSdk();
const { data: connection } = await zapier.findFirstConnection({ app: "xero", owner: "me" });
const { data } = await zapier.runAction({
app: "xero",
actionType: "write",
action: "add_invoice_line_items",
connection: connection.id,
inputs: {
organization: "", // Organization
invoice: "",
},
});npx zapier-sdk run-action xero write add_invoice_line_items \
--inputs '{"organization":"","invoice":""}'Frequently asked questions about automating with Xero
How do I connect Xero to Claude?
Connect Zapier in Claude, sign in to Zapier, then ask Claude to connect Xero. Claude finds the Xero actions and adds them. If Xero needs a sign-in, you approve it once.
Can I use the Xero API without managing API keys?
With the Zapier SDK you connect your Xero account to Zapier once, and your code runs actions through that connection. Zapier handles Xero’s login, so you never paste an API key into your code.
What can an AI agent do with Xero?
Through Zapier MCP, your agent can use 55 Xero tools, such as New Bank Transaction, New Bill, and New Contact. 29 tools only read data, so you can start with those before you let your agent make changes.
My AI agent already connects to my apps. Why add Zapier?
Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.
Can’t my AI agent already run tasks on a schedule?
Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.
Why not have my AI agent write me a script?
You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.
Point your AI agent to this page’s markdown file to build Xero automations. It covers how Xero connects, every trigger and action with its inputs, and how to run them with Zapier MCP, the SDK, or the CLI. To start from a ready-made Zap instead, have it search zapier.sh.
About Xero
Xero is an accounting app that lets you track businesses expenses and accounting with intuitive mobile apps and web interfaces for point-of-sale, ecommerce, time-tracking, and more.
Related categories: Accounting

