Connecting AI agents to an accounting ledger through the Model Context Protocol.
Give the agent a ledger, not a spreadsheet export.
An agent working from an exported spreadsheet is working from a photograph. Through a protocol server it can query the ledger itself: accounts, invoices, bank transactions, payroll. I maintain a fork of the open-source Xero MCP server, where my changes include Australian payroll tools and stricter input validation, and I package recurring accounting procedures as reusable agent skills.
The model is the least interesting part of that arrangement. The procedure and the permissions are where the quality comes from.
What I took from it
- Read by default, draft by exception. An agent that can look at everything and post nothing is useful on day one and cannot make a mess.
- Validate every identifier before it reaches a query. An ID that must be a GUID should be checked as a GUID, because model output is untrusted input.
- Write the procedure down as a skill. A reconciliation that lives in someone's head cannot be delegated to a person or to a model.