A read-only MCP server for ERP and accounting data — AI that reads the books, never writes them
We open-sourced nexo-mcp — a Model Context Protocol server that lets an AI assistant (Claude, ChatGPT and others) query invoices, clients and bank operations from an ERP system, then analyse revenue, costs and recurring billing and draft next year's budget. It is read-only by design — it never creates, edits or deletes anything.
- tools exposed to the AI assistant
- 8
- write operations — the server only reads
- 0
- day from first commit to the cost-aware budgeting version
- 1
- license — published as open source
- MIT
Context
Many MCP servers for ERP and accounting systems are built to do things: create invoices, post entries, update records. That's useful, but it also means handing an AI agent write access to your books. A lot of the questions people actually ask about their finances don't need any of that — they need answers: what did we bill last month, who's on a subscription, what will next year look like.
We kept running into those questions while automating recurring billing for a client on top of InsERT nexo — a Polish ERP and accounting suite (Subiekt nexo, Gestor nexo). So we built a server that lets an assistant answer them directly, and made a deliberate choice: it can read everything relevant and change nothing.
What it does
nexo-mcp is a Model Context Protocol server — MCP being the open standard AI assistants such as Claude and ChatGPT use to reach external data. It gives the assistant:
- sales and purchase invoices, with their line items,
- products, services and clients,
- bank and cash operations — so payments with no invoice behind them, such as social security (ZUS) and tax-office transfers, still show up in the numbers.
On top of the raw data it runs the analytics people usually rebuild by hand in a spreadsheet: recurring billing detection, a monthly revenue breakdown, a monthly cost breakdown, and a next-year budget projection.
Read-only by design. Not a single tool creates, edits or deletes anything in the ERP. The assistant can ask about anything in scope; it cannot touch a single invoice.
How it works
The vendor's SDK, not raw SQL. The server reads nexo through Sfera, InsERT's own SDK. We considered querying the database directly and rejected it: nexo's schema changes between versions, while Sfera is the supported, stable way in. The Sfera DLLs are proprietary and not bundled — you need your own licensed nexo installation and the SDK.
A local cache between the agent and the ERP. Written in C#/.NET 8 (Windows-only), the server periodically syncs data from nexo into a local SQLite database, and every tool reads only from that cache. The agent's questions never put load on the production database.
The whole surface is exactly eight tools:
1# nexo-mcp — 8 tools, all read-only2list_invoices: sales and purchase invoices3get_invoice: one invoice with every line item4find_recurring_invoices: recurring billing (client + product)5get_monthly_revenue: revenue by month6get_monthly_expenses: costs by month7project_budget: next-year budget draft8sync_invoices: refresh the local cache from nexo9get_sync_status: state of the last sync
Recurring billing detection. Any client + product pair billed at least three times counts as recurring, and is labelled Monthly, Quarterly, Yearly or Irregular.
Budget projection, as a first draft. It takes a trailing average (flat or seasonal), applies separate growth rates to revenue and costs, and shows revenue net of costs. It's a starting point for planning, not a forecast.
What you can ask it
- "How much did we bill this month?" — monthly revenue, side by side with previous months.
- "Which clients are on recurring billing, and for what?" — client + product pairs with their billing period, which also makes it easy to spot someone who quietly dropped out of the cycle.
- "Where did the money go this quarter?" — monthly costs from purchase invoices and bank outflows, including social security and tax payments.
- "Draft next year's budget with 5% revenue growth and 3% cost growth." — a projection built from history, with social security and tax on the cost side.
- "What exactly was on that invoice from March last year?" — find it in the invoice list and pull every line item.
- "Is this data up to date?" — check the sync status and refresh the cache if needed.
Known limitations
PLN only. No invoice due date yet. The billing period is parsed from free-text line descriptions, so it can be empty when it can't be recognised. Social security and tax payments are detected by keyword matching on the counterparty name. Costs mix accrual-based purchase invoices with cash-basis bank outflows — a good picture of spending, but not a strict cash-flow statement.
The result
Every commit in the repository is from a single day — from the first one to the version where the budget accounts for costs. We validated it against a real nexo 62.0.2 test-company database, which caught two genuine bugs that we fixed before publishing. It's MIT licensed: nexo-mcp on GitHub.
The backend is specific, but the pattern isn't: a narrow, read-only MCP server over the vendor's supported SDK, with a local cache in between, works for any ERP where you want AI agent reporting without giving the agent the keys. It sits alongside our bank feed for Subiekt nexo — same principle in both: the data stays with you, and the automation gets only the access it actually needs.
Want an AI assistant on top of your accounting data? Get in touch — we can help you set it up or adapt the approach to your own ERP.