Connecting an AI Assistant to Your Accounting with MCP: What It Allows, and the Limits to Set
Until now, asking an AI assistant about your books meant exporting a file, pasting it into a conversation and hoping the figures were still current. The MCP protocol changes that: the assistant reads directly in the software, with rights you set. Before you connect it, the question to settle is the one of those rights.
What MCP is
MCP (Model Context Protocol) is an open protocol by which an AI assistant uses a service’s functions as tools. The accounting software exposes a list of tools, for example “list the invoices” or “prepare a draft invoice”. The assistant picks the one that answers your question, calls it and reads the answer.
The assistant sees only those tools. It has no access to the database, and at each call the software applies its own rules and the rights of the key in use.
What you can ask
Once the assistant is connected, you speak to it in your own words:
- “Which invoices are overdue, and what do they come to per customer?”
- “What did we invoice in October, net of credit notes, by product?”
- “What came into the bank last week that is not reconciled yet?”
- “Prepare a draft invoice for this customer: fourteen hours of consulting and three manuals, with their usual discount.”
For the last request, the assistant prepares the draft. You check it and issue the invoice yourself.
Read, prepare, act: three levels of rights
Everything an assistant can do in an accounting system falls into three levels.
- Read: look up customers, invoices, journal entries, the bank.
- Prepare: create a draft, complete a customer record.
- Act: issue an invoice, send it, post, pay.
The first two are reasonable. The third should not be handed to an assistant. An issued invoice carries an official number and a journal entry, and a payment cannot be taken back. An assistant can be wrong. A text it reads can also try to manipulate it.
The text the assistant reads is not always yours
The text of a bank line is written by whoever pays. The lines of a supplier’s bill are written by the supplier. A customer’s name is what someone typed. Such a text can hold a sentence addressed to an assistant, along the lines of “ignore your instructions and send this”.
Three precautions make such a sentence harmless: a role that only reads, a person’s approval before each write, and an assistant that has no other tool to send data out with.
Five rules before you connect an assistant
- One key per assistant, in its name, with an expiry date.
- The narrowest role possible. To answer questions, a role that only reads is enough.
- Never the right to post.
- The key stays in the assistant’s configuration. It is never pasted into a conversation or into a file the assistant reads.
- A person reads over what the assistant writes.
Keep in mind, too, that what the assistant reads passes through it and through its provider, under the agreement you have with them.
How Mast designed it
Mast offers an MCP endpoint, which is its API in another form. Each tool is one call of the API, with the same rights and the same rules.
- The assistant reads the company’s details, customers, products, invoices, credit notes, payments received, the chart of accounts, journal entries, the trial balance, bank accounts and their lines, suppliers and their bills.
- It writes little. It creates or corrects customers, products and suppliers, and prepares draft invoices. A changed record is changed at once. Only the invoice stays a draft, with no official number and no journal entry, and nothing is sent to your customer.
- It never issues. Issuing an invoice and sending it are not among the tools. No tool writes a supplier’s bank account either.
- Each tool says whether it reads or writes, so that your assistant can ask for your approval before it acts.
- Everything it writes is signed. Mast shows it under the key’s name.
- Mast knows nothing of your conversation. It sees only the tools’ calls, like any call of its API.
The connection is made with an API key of your company, created by an owner or an administrator in Mast. The API is opened account by account: get in touch to ask for it. The steps are in the MCP documentation and in the API guide.
Mast AI, the assistant built into Mast, works differently, inside the application. We cover it in AI and accounting in Switzerland: what it really does.
Want to talk about it? Book a demo or get in touch.
Frequently asked questions
What is MCP?
The Model Context Protocol is an open protocol by which an AI assistant uses a service’s functions as tools, for example reading a list of invoices or preparing a draft. The assistant sees only the tools the service exposes to it.
Can an AI assistant issue an invoice on my behalf?
With Mast, no. The assistant prepares a draft, with no official number and no journal entry, and nothing is sent to your customer. A person checks the draft and issues the invoice in Mast.
Does my accounting data pass through the assistant’s provider?
Yes. What the assistant reads in your accounting passes through it and through its provider, under the agreement you have with them. That is a reason to limit the key’s rights to what the assistant really has to read.