latepayers: accounts receivable aging report from an invoice CSV
[npm] [CI] [MIT license] [MCP Registry]
See who owes you money, how late each invoice is, and who to chase first. For freelancers, small businesses and bookkeepers tracking overdue invoices in spreadsheets.
Late payments quietly drain cash flow. latepayers reads an invoice export as CSV and builds an AR aging report with the standard buckets, per customer, ranked by overdue money and age. It also shows how late each customer usually pays. It's an MCP server and a single Go binary, with no account, no API key and no network access.
What you can ask your agent
- "Who owes me money, and how late are they?"
- "Which overdue invoices should I chase first?"
- "Build an accounts receivable aging report."
- "Which customers always pay late?"
Install
As a Claude Code plugin, which adds the MCP server and a skill that tells Claude when to use it. You need Node, which runs the server through npx:
For other MCP clients:
Or build the binary with Go 1.27 or newer:
Usage
Without installing anything, run npx latepayers check invoices.csv. It uses today's date unless you pass --as-of. This example uses the made-up file in examples/:
Add --terms 45 to set payment terms for invoices with no due date, and --json for machine-readable output.
How it calculates
Negative balances are listed as credits and left out of the totals. Repeated invoice numbers and mixed currencies produce warnings.
MCP tools
Both are read-only, and neither can contact anyone. receivables_aging_report returns customer names and amounts to the MCP client, so they reach whichever AI model you use. The CLI keeps everything on your machine.
FAQ
What is an AR aging report? It groups unpaid invoices by how many days past due they are, so you can see how much money is at risk and who to contact.
Does it work with QuickBooks, Xero or FreshBooks exports? It reads CSV and recognizes common column names such as Balance Due, and you can name others with --columns customer=Who,amount=Sum. It doesn't connect to those products, and it hasn't been tested on each one's real exports yet.
Can it send payment reminders? No. It tells you who to contact, and you or your agent can draft messages for you to approve.
Limits
- This helps you manage collections and isn't accounting or legal advice.
- It's only as accurate as the export, so check balances before contacting a customer.
- It doesn't apply credits to invoices, and doesn't convert currencies.
- It treats each distinct customer name as one customer.
- It reads CSV only, up to 50 MB.
- So far it has been tested on made-up data, not real exports. If yours fails, please open an issue with the column headers, not your data.
Contributing
Contributions are welcome, from people and from people working with AI agents. See CONTRIBUTING.md. Good first issues:
- Add column names from more accounting tools and languages
- Add
--out to write the report to a CSV
- Add Days Sales Outstanding (DSO) to the summary
- Add a by-invoice view sorted by days late
- Add a plugin icon
AI disclosure
This project was largely generated with Claude Code and reviewed by its maintainer.
About me
I'm Giulliano Macedo, and I build developer tools at GoTech Solutions. Follow along or get in touch:
If latepayers helped you get paid, a star helps others find it.
MIT licensed.
Built by Giulliano Macedo, GoTech Solutions · LinkedIn · X