r/plaintextaccounting • • 16h ago

How I ended up hosting my own Beancount MCP

Post image
22 Upvotes

Hello everyone,

Just wanted to share a bit of my journey with AI enhanced PTA. I've been running PTA for my personal finances for more than 6 years now using Beancount, starting by editing the ledger in vim, then moving to CSV parsing scripts with beangulp importers. The process has always been cumbersome, but it was part of the deal and a bit cathartic.

I'm all-in on AI because I'm a software engineer, and in addition to brain rot (haha) my laziness has also greatly increased: I couldn't stand spending 1 or 2 hours every weekend managing my ledger anymore. Moreover, I always had new ideas for restructuring and stuff that kept piling up because I had no time to do them. The temptation was too high, so like many of us I succumbed and started using Claude or whatever to edit my ledger...

I knew this was bad, very bad in terms of data confidentiality, so I always planned to make it safer. I subscribed to a ZDR, EU-based inference provider, used pi and set up skills, and it worked very well!

But my laziness becoming a true burden, I started wanting to edit my ledger on my phone and analyse the data on the road, without sitting in front of my laptop with a terminal open. In parallel, I had built a self-hosted AI assistant for my household that fits my privacy requirements, available as a PWA for my own use. So of course I wanted to use it to manage my ledger, but then, so many questions: where to host the ledger file? How do I let my agent edit it, run bean-check on it, efficiently rewrite some entries, etc.?

Basically I wanted an easy way to ship my data and the Beancount CLI over an MCP. MCPs are great at interoperability and can even show apps, so it would be the dream: my wife could use it from her own AI assistant, I could have my ledger on my phone, and just throw my monthly statement at my agent and see the data on screen.

I realized I had many similar use cases both at work and at home, from stupid things like a shopping list to advanced workflows like software release management at work: I want to be able to throw a spreadsheet and some rules at an agent and get an MCP App out of it.

That's why I built cliquet.dev It's open source software to do exactly that: you can self-host the server or use the managed service for free, I've just opened the beta. The ledger app I use is one of the examples: https://github.com/etiennecrb/cliquet/tree/main/examples/ledger. Every change has to pass bean-check (balance assertions included) or it's refused, and the agent gets the reason and fixes it.

Sorry for the self-promotion, but PTA was my own first use case, so I thought it could be interesting for some of you. Happy to get your feedback or answer any questions about my workflow. Ciao!