Connector Β· Small-business accounting software

Xero MCP Server & Agent Skill

Last updated

ibl.ai publishes a free Xero agent skill: a SKILL.md that teaches an AI agent to read and write Xero data and expose it as an MCP tool. Download it, connect your own Xero credentials, and run the agent on ibl.ai Agentic OS, where you own all the code and the data.

Cloud accounting software for small businesses. A Xero organisation holds contacts, invoices, bills, payments, bank transactions, manual journals, the chart of accounts, tax rates and reports; some regions also hold payroll.

What is the Xero API, and what can an agent read from it?

REST endpoints for a Xero organisation: Invoices, Contacts, Payments, BankTransactions, ManualJournals, Accounts and Reports. Paged list endpoints return 100 records by default (pageSize up to 1,000).

  • API: Xero Accounting API (REST)
  • Access: Public, self-serve
  • Base URL: https://api.xero.com/api.xro/2.0/
  • Authentication: OAuth 2.0 authorization code; OAuth 2.0 authorization code with PKCE; OAuth 2.0 client credentials (custom connections)

Developers register an app in the Xero Developer portal. Custom connections (client credentials for a single organisation) are a premium integration option; standard apps use the authorization code or PKCE flow.

Users authorize the app; request offline_access for a refresh token. Access tokens last 30 minutes. GET https://api.xero.com/connections lists authorized organisations; send the tenant ID in the xero-tenant-id header on every call.

What can an agent read from Xero?

  • Invoices β€” GET /Invoices lists sales invoices and bills with line items; supports page and pageSize.
  • Contacts β€” GET /Contacts lists customers and suppliers; paged with page and pageSize.
  • Payments β€” GET /Payments lists payments applied to invoices and credit notes.
  • Bank transactions β€” GET /BankTransactions lists spend and receive money transactions.
  • Reports β€” Report endpoints such as Profit and Loss, Balance Sheet, Trial Balance and aged receivables/payables.

What can an agent write to Xero?

  • Create invoice β€” Create draft or authorised invoices and bills through the Invoices endpoint.
  • Create or update contact β€” Add or edit customers and suppliers through the Contacts endpoint.
  • Record payment β€” Apply a payment to an invoice through the Payments endpoint; changes the ledger. Confirm with the user first.
  • Manual journal β€” Post a manual journal through the ManualJournals endpoint. Confirm with the user first.

Limits: Per organisation: 5 concurrent calls, 60 calls per minute, and a daily cap (1,000 on Starter, 5,000 on higher tiers); 10,000 calls per minute per app across organisations. HTTP 429 sends Retry-After; X-MinLimit-Remaining and X-DayLimit-Remaining headers.

Holds business financial records and contact personal data; payroll regions add employee pay and tax details (payroll PII). Treat as confidential; request the narrowest granular scopes.

How do I connect Xero to an AI agent over MCP?

Xero publishes an official MCP server: Xero Developer Remote MCP Server.

Xero-hosted MCP (https://api.xero.com/mcp/v1) using the app's existing OAuth 2.0 PKCE login. Xero also publishes a local server, XeroAPI/xero-mcp-server, on GitHub.

You can register that server on ibl.ai as it is, or use the SKILL.md below when you want the agent to call the Xero Accounting API directly.

On ibl.ai an MCP connection is three records, and a working integration always needs all three:

  1. Register the server β€” POST …/mcp-servers/ with its URL, a transport (sse, websocket or streamable_http) and an auth_type of none, token or oauth2.
  2. Create a connection that holds the credential, scoped to the whole organization (platform), to a single agent, or to each user (user).
  3. Enable it on the agent β€” mcp-tool in tool_slugs and the server id in mcp_servers. Both lists are replaced, not merged, so read the settings first.

Xero supports per-user OAuth, so the server can use auth_type=oauth2 with auth_scope=user: each person connects their own Xero account in the chat the first time the agent needs it.

The field reference is in MCP server connections, and the /iblai-api-agent-mcp skill runs all three steps from a coding agent.

What does the Xero agent skill do?

The Xero skill is one SKILL.md file named iblai-connect-xero. It gives an agent the auth conventions, what to read, which writes need a person's confirmation, the ibl.ai MCP wiring, example prompts and guardrails.

Download the Xero SKILL.md

Save it as .claude/skills/iblai-connect-xero/SKILL.md, or in your agent's skills folder. The ibl.ai platform skills it calls come from one install:

$ npx skills add iblai/vibe --all

This connector skill is a starting point maintained on ibl.ai, not part of the iblai/vibe repository.

It was checked against Xero's documentation on October 20, 2026. Test it against your own Xero setup before you rely on it.

What can I ask a Xero agent to do?

  • β€œShow all Xero invoices that are overdue, grouped by customer”
  • β€œCreate a draft invoice in Xero for Blue Sky Ltd for 5 units of item WIDGET-01”
  • β€œRun the Profit and Loss report for last month and summarize the biggest expense lines”
  • β€œList supplier bills due in the next 14 days”

How do I run a Xero agent on ibl.ai?

Agentic OS is where the agent runs on ibl.ai: it holds the Xero MCP connection, the model the agent uses, its instructions and its conversation history.

On ibl.ai you own all the code and the data, run it model-agnostic across any LLM, and pay with no per-seat pricing β€” so you can deploy anywhere, from your own cloud to a fully air-gapped network.

Which ibl.ai agents work with Xero data?

Which ibl.ai platform skills does a Xero agent use?

  • /iblai-api-agent-mcp β€” MCP connectors for ibl.ai agents, end to end
  • /iblai-vibe-agent-mcp β€” Add the agent MCP tab (Model Context Protocol connector management with featured connectors, custom connectors, OAuth,…
  • /iblai-api-agent-tool β€” Enable or disable an ibl.ai agent's tools via the platform API

What else should I know before connecting Xero to an AI agent?

Is there an official Xero MCP server?

Yes. Xero publishes Xero Developer Remote MCP Server.

You can register it on ibl.ai as an MCP server, or use the SKILL.md when you want the agent to call the Xero Accounting API directly.

Who can get Xero API credentials?

Developers register an app in the Xero Developer portal. Custom connections (client credentials for a single organisation) are a premium integration option; standard apps use the authorization code or PKCE flow.

Does Xero data leave my infrastructure when an ibl.ai agent uses it?

On ibl.ai, you own all the code and the data. Self-hosted in your cloud or data center, the agent, its MCP connections and its conversation logs stay inside your perimeter.

Because the platform is model-agnostic, you can point the agent at a model you host, so Xero records need not reach a third-party model provider.

Is the Xero agent skill free to use?

Yes. The SKILL.md is a free download with no sign-up. It assumes you already have Xero credentials, and your agreement with Xero still governs how you use its API.

Which other data sources can an AI agent connect to alongside Xero?

Which other Small Business systems have a connector?

Every connector, grouped by sector, is on the connectors hub.