Xero MCP Server logo

Xero MCP Server

Not just Xero tools: Knit runs each call. It handles the Xero sign-in, refreshes the token, retries failures and paces requests to Xero's rate limits. No signup: 2,000 free calls over 30 days.

Install guide →
Add to Claude

Opens Claude with Knit filled in: click Continue. Claude web and desktop share one connector list. Or paste this link in Settings > Connectors > Add custom connector.

What happens when your agent calls Xero

  1. 01 · Ask

    Your agent asks for something in Xero, in plain language.

  2. 02 · Find

    Knit picks the Xero endpoint, prebuilt tool or not, and builds the request.

  3. 03 · Connect

    The Xero account owner signs in once through a Knit link. Knit keeps the tokens.

  4. 04 · Run

    Knit refreshes the token, retries failures and paces calls to Xero's rate limits.

  5. 05 · Answer

    The Xero data, or Xero's error as data the agent can read.

Knit vs other Xero MCP servers

Who handles each step of that call.

StepThe jobTools-only Xero serverKnit
02 An endpoint with no tool Not covered Knit finds it
03 Xero sign-in You set it up Knit sends a link
04 Token refresh Varies Knit
04 Xero rate limits You, or the agent Knit paces + retries
— Other apps your agent needs Another server each Same connection
— The call as code You write it Knit returns the curl

Xero also publishes an official Xero MCP server. If Xero is the only app your agent needs, it's a good fit.

Under the hood

The tools your agent uses to build a Xero integration

Your agent calls a small set of Knit MCP tools; Knit runs the hard part underneath each one.

1 · Discover

Find the Xero endpoint

list_supported_appsfind_apis_for_use_case

The exact Xero request to make, prebuilt tool or not.

Knit runsXero API knowledge, plus live research of its docs
2 · Connect

Get the Xero account signed in

create_integration_linkget_integrations

A link the Xero account owner opens once. Reuse connections you already have.

Knit runsHosted sign-in, token storage and refresh
3 · Run

Read or update Xero data

execute_api

Runs the request against the connected Xero account. Xero's errors come back as data the agent can read.

Knit runsRetries and pacing to Xero's rate limits
4 · Ship

Turn it into code

include_curldry_run

Options on execute_api that return the exact Xero request as curl.

Knit runsThe same managed sign-in in production
5 · Extend

Sync with another app

request_integrationget_request_status

Request a sync between Xero and another app, and track it.

Knit runsBuilding the requested sync

For AI agentsTo read or change Xero data, use Knit's MCP server at https://integrations.getknit.dev/mcp: list_supported_apps → find_apis_for_use_case → create_integration_link → execute_api. Knit handles Xero sign-in, token refresh, retries and rate limits.

Xero actions your agent can call

Ready-made Xero actions, plus any other endpoint Knit finds in Xero's API docs.

Create Payment in Accounting System

This API endpoint allows the creation of a payment in the accounting system. It supports various applications such as Xero, Zohobooks, Microsoft Dynamics 365, Sage Intacct, Quickbooks, Netsuite, and Freshbooks. The request requires headers specifying 'accept' and 'content-type' as 'application/json'. The body must include 'accountId', 'contactId', 'amount', 'invoiceId', 'paymentLinkedTo', and 'linkedInvoices'. Optional fields include 'date', 'description', 'currency', 'exchangeRate', and 'metaData'. The response returns a success status and the 'paymentId' if successful, or an error message if failed.

Create Accounting Expense

The Create Accounting Expense API allows users to create a new expense record in the accounting system. The request requires a transaction date, total amount, and line items as mandatory fields. Optional fields include employee ID, contact ID, company ID, description, currency, and metadata. The response returns a success status and the ID of the created expense if successful, or an error message if the request fails.

Create Accounting Account

This API endpoint allows the creation of an accounting account. It supports various applications like Xero, Zohobooks, Microsoft Dynamics 365, Sage Intacct, Quickbooks, Netsuite, and Freshbooks. The request requires a JSON body with 'name' and 'category' as mandatory fields. The 'category' can be either 'BANK_ACCOUNT' or 'LEDGER_ACCOUNT'. Additional optional fields include 'type', 'subType', 'accountCode', 'accountNumber', 'description', and 'metaData'. The response returns a success status and the unique 'accountId' of the created account. In case of an error, a descriptive error message is provided.

Create Journal Entry

This API endpoint allows the creation of a journal entry with specified details. The request must include headers specifying 'accept' and 'content-type' as 'application/json'. The body of the request requires 'date', 'lineItems', and 'description' as mandatory fields. 'lineItems' is an array of objects, each containing 'accountId', 'amount', 'notes', 'transactionType', 'contactType', and 'contactId'. Optional fields include 'currency', 'referenceNumber', and 'metaData'. The response returns a success status and a 'journalId' if successful, or an error message if unsuccessful.

Get Tracking Categories for Financial Reporting

This API endpoint retrieves tracking categories used for financial reporting purposes. It supports various applications such as Xero, Microsoft Dynamics 365, Quickbooks, Netsuite, and Freshbooks. The request requires an 'accept' header with 'application/json' and optionally a 'categoryId' query parameter to specify a particular tracking category. The response includes a success flag and data containing an array of tracking categories with details such as id, name, creation and update timestamps, category type, status, description, and parent category information.

Get Tax Rates from Accounting App

This API endpoint retrieves tax rates from an accounting application. It supports various apps such as Xero, Zohobooks, Microsoft Dynamics 365, Sage Intacct, Quickbooks, Netsuite, and Freshbooks. The API method is GET, and it requires an 'accept' header with 'application/json'. Optionally, a 'taxRateId' can be provided as a query parameter to fetch details of a specific tax rate. The response includes a success flag, and if successful, a list of tax rates with details such as id, name, code, type, creation and update timestamps, status, description, effective and total tax rates, and components. In case of an error, an error message is returned.

Update Accounting Invoice

The Update Accounting Invoice API allows users to update an existing invoice in various supported applications such as Xero, Zohobooks, Microsoft Dynamics 365, Sage Intacct, Quickbooks, Netsuite, and Freshbooks. The API requires a POST request with headers specifying 'accept' and 'content-type' as 'application/json'. The request body must include 'type', 'invoiceId', 'contactId', and 'lineItems'. Additional optional fields include 'invoiceNumber', 'status', 'issueDate', 'dueDate', 'paidOnDate', 'currency', 'exchangeRate', 'description', 'totalAmount', 'totalTax', 'totalDiscount', and 'metaData'. The response will indicate success or failure, with a success response containing a 'success' boolean and a failure response containing an 'error' object with a descriptive message.

Create Accounting Contact

This API endpoint allows the creation of a new accounting contact. The request requires a POST method to the specified URL with headers indicating 'accept' and 'content-type' as 'application/json'. The request body must include 'name' and 'contactType' as required fields, with optional fields such as 'contactPersonFirstName', 'contactPersonLastName', 'email', 'phoneNumber', 'taxNumber', 'addresses', and 'metaData'. The response will return a success status with a 'contactId' if successful, or an error message if unsuccessful.

Get Basic Information About Companies Related to Accounting App

This API endpoint allows you to retrieve basic information about companies related to your accounting app. It supports various apps such as Xero, Zohobooks, Microsoft Dynamics 365, Quickbooks, Freshbooks, and Netsuite. The request is made using the GET method and requires an 'accept' header with 'application/json'. You can optionally provide a 'companyId' as a query parameter to fetch details for a specific company. The response includes a success flag and data containing an array of company details such as id, name, legal name, tax number, fiscal year start month and day, creation date, active status, currency, URLs, addresses, phone numbers, and contact information.

Update Payment Details

The Update Payment Details API allows updating payment information linked to invoices or bills. It requires parameters such as paymentId, accountId, contactId, amount, invoiceId, and paymentLinkedTo. Optional fields include date, description, currency, exchangeRate, linkedInvoices, and metaData. The response indicates success or failure with an optional error message.

Create Accounting Invoice

The Create Accounting Invoice API allows users to create an invoice or bill in the accounting system. The request requires a JSON body with the type of document (INVOICE or BILL), a contact ID, and at least one line item. Additional optional fields include status, invoice number, issue date, due date, paid on date, currency, exchange rate, description, total amount, total tax, total discount, and metadata. The response returns a success status and the created invoice ID if successful, or an error message if the request fails.

Get Accounting Items

The Get Accounting Items API allows customers to retrieve records of products and services they buy and sell. It supports various applications such as Xero, Zohobooks, Microsoft Dynamics 365, Quickbooks, Netsuite, and Freshbooks. The API accepts a query parameter 'itemId' to fetch details of a specific item. The response includes details such as item ID, name, code, type, creation and update timestamps, status, description, total quantity, unit price, sales details, and purchase details. In case of an error, a descriptive error message is returned.

Update Accounting Account

The Update Accounting Account API allows users to update details of an existing accounting account. The API requires the accountId and category as mandatory fields in the request body. The category can be either BANK_ACCOUNT or LEDGER_ACCOUNT. The API supports various accounting applications such as Xero, Zohobooks, Microsoft Dynamics 365, Sage Intacct, Quickbooks, Netsuite, and Freshbooks. The response indicates whether the update was successful or not, and in case of an error, a descriptive message is provided.

Update Accounting Contact

The Update Accounting Contact API allows users to update contact information in supported accounting applications such as Xero, Zohobooks, Microsoft Dynamics 365, Sage Intacct, Quickbooks, Netsuite, and Freshbooks. The API requires a POST request with headers specifying 'accept' and 'content-type' as 'application/json'. The request body must include 'name', 'contactType', and 'contactId' as required fields, along with optional fields such as 'contactPersonFirstName', 'contactPersonLastName', 'email', 'phoneNumber', 'taxNumber', 'addresses', and 'metaData'. The response will indicate success with a boolean and may include additional data or an error message if applicable.

+ Any other endpoint Knit finds

Ask in plain language. Knit picks the Xero endpoint from its API docs, prebuilt tool or not.

Enterprise-grade security

SOC 2 certified GDPR compliant ISO 27001 certified
Visit our Security Center Review the DPA

Customer Stories

See how leading technology firms are scaling their operations

Amazing Product With Exceptional Support from the team. By using Knit we managed to speed up our development by orders of magnitude.
H
Huynh H
Developer, Multiplier
A brilliant tool to let you seamlessly integrate with many different systems. It is very easy to integrate with and customer support is next level.
J
Jayesh
Co-Founder, Scrut
Seamless integration experience. Well-documented, self-explanatory APIs, and excellent service and support.
P
Poorvi
Product Manager, Onsurity
Easy to integrate. Knit's dashboard is intuitive for setting up and testing integrations, and the sandbox is extremely useful during development.
A
Aditya
Product Lead, RazorpayXPayroll
Knit shipped a brand-new Timesheet API in a week and handed us a ready-to-use NetSuite sandbox. That velocity is priceless when you're running payroll in 40+ countries.
R
Rohit Singh
GM, Payoneer Workforce Management
FAQ

Common questions about the Xero MCP Server

How do I set up the Xero MCP Server?

Click Add to Claude on this page and confirm in Claude, or copy the one-line command or link for ChatGPT, Cursor, Codex, Claude Code and other agents. There's no signup: the first call starts a free trial of 2,000 calls over 30 days. When your agent first needs Xero, it gives you a link to connect your Xero account.

Is there an official Xero MCP server? How is Knit different?

Yes. Xero publishes its own Xero MCP server. Knit runs each call as well: it handles the Xero sign-in, refreshes the token, retries failures, paces requests to Xero's rate limits and finds endpoints that have no prebuilt tool, in one connection with 155 apps. If Xero is the only app your agent needs, the official server is a good fit.

Who holds the Xero credentials?

Knit. The Xero account owner connects through a Knit link; your agent only sees an integration ID.

What happens when we hit Xero's API limits?

Knit paces requests and retries failed calls. If Xero still refuses, the agent gets the error as data.

Can I turn a call into code?

Yes. Ask for the request and Knit returns the exact curl, with the same managed sign-in.

Can one MCP server include Xero and other apps?

Yes. The Knit connection isn't tied to one app: the same server gives your agent Xero and 155 apps in all, so you add it once.

Can my agent both read and write Xero data?

Yes, within what the connected Xero account is allowed to do. Knit runs the Xero API call your agent asks for, reads and writes alike.

Does it work with Claude, ChatGPT and other LLMs?

Yes. Any MCP client can connect, whichever model drives the agent.

See all FAQs

From the blog

Xero API Integration Guide (In-Depth)

Xero API Integration Guide (In-Depth)

Your complete guide to Xero API integration. Learn to automate invoicing , reporting , and payroll using Xero's REST API , manage OAuth 2.0, and explore key use cases.

Put Integrations on Autopilot. Talk to Experts.

Knit is loved by customers across the globe due to our seamless product and white glove support. You'll love us too!

Talk to a Human