freeagent-mcp
Talk to your books. · tomkp.github.io/freeagent-mcp
freeagent-mcp connects Claude, and other AI assistants, to your FreeAgent account, the UK online accounting service for freelancers, sole traders, partnerships and small limited companies. You ask about your invoices, bills, bank transactions and profit in plain English, and the answer comes from your own books. If you allow it, the assistant can also make changes, and you approve each one.
Things to ask
- "Give me a health check of the business."
- "Go through my unexplained bank transactions and suggest how to explain each one."
- "Here's a receipt for a train ticket to Leeds. I paid it personally; claim it as an expense."
- "Which invoices are overdue? Draft a chasing email for each customer."
- "What was my profit last quarter, and what were the biggest costs?"
- "Invoice Example Client Ltd for the unbilled time on the website project."
Drawn with made-up figures, after what Claude Desktop produces. Claude Desktop draws charts when you ask for one; assistants that run in a terminal answer in words.
It covers invoices, estimates and credit notes; supplier bills, expenses with receipts, and mileage; bank accounts, transactions and explaining each one; contacts, projects and timeslips; and, read-only, the accounts (profit and loss, balance sheet, cash flow, who owes what) and VAT and corporation tax returns. The tool reference has the full list.
Get started
You need a FreeAgent account and Claude. Setting up takes about five minutes, most of it creating an app in FreeAgent: FreeAgent has no shared sign-in for tools like this, so each person connects through an app of their own.
First, create a FreeAgent app. Sign in to the FreeAgent Developer Dashboard, create an app (any name), and add http://localhost:8976/callback to its OAuth redirect URIs. Keep the page open: you'll need its OAuth identifier and OAuth secret.
Claude Desktop
- Download freeagent-mcp.mcpb and open it. Claude Desktop offers to install it.
- Choose Install, paste the identifier and secret when Claude asks for them, and switch the extension on.
- Start a new chat and ask Claude to log in to FreeAgent. It gives you a link; open it, log in and click Approve.
Then ask "How's my business doing?". It works on macOS and Windows.
If Claude says it can't see your FreeAgent data, or suggests a different connector, the extension is switched off. Open Settings → Extensions, switch FreeAgent on and start a new chat.
Claude Code
With Homebrew, on macOS or Linux:
brew install tomkp/tap/freeagent-mcp
freeagent-mcp setup
setup asks for the identifier and secret, gives you a link to log in to FreeAgent and approve the app, saves both where only you can read them, and adds the server to Claude Code.
Anything else
Windows and Linux downloads, building from source, Docker, the FreeAgent sandbox and other assistants such as Cursor are covered in Installing.
Turning on changes
Out of the box the assistant can look but not touch. To let it make changes, set these where the server gets its settings: the extension's settings in Claude Desktop (Allow changes, Allow deleting, Allow emailing customers), -e flags on claude mcp add, or .env with Docker.
FREEAGENT_ALLOW_WRITES=true # create and update contacts, invoices, bills, expenses, explanations, timeslips…
FREEAGENT_ALLOW_DELETES=true # also allow deleting records and invoice/bill lines (needs writes)
FREEAGENT_ALLOW_EMAIL=true # also allow emailing customers (needs writes)
FREEAGENT_TOOLSETS=account,reference,contacts,invoices,banking # optional: expose fewer tools
FREEAGENT_AUDIT_LOG=stderr # optional: log every change (or an absolute file path)
FREEAGENT_CONFIRM=all # the default: you accept each change in a dialog (or deletes,email, or none)
With changes on, the server shows you each one before it is sent, such as category: 285 → 250 or the email to a customer, and waits for you to accept it in a dialog. An assistant that can't show the dialog can't make the change. Ask for a dry run first when it matters: "Explain that transaction as a bill payment, but show me a dry run first."
Read Security before turning on changes for your real books.
Is it safe?
- It can look but not touch, until you say otherwise. Changes are off to begin with. Deleting has a second switch, and emailing your customers a third.
- You approve every change. The answer comes from you, not the assistant, and it only covers the exact change you were shown.
- It never sees your FreeAgent password. You log in on FreeAgent's own page and approve the app you created. Delete that app in the Developer Dashboard and it is cut off.
- It runs on your own computer. There is no freeagent-mcp service in the middle: your data goes from FreeAgent to your computer, and what the assistant looks up goes to the assistant, like anything else you tell it.
Security describes what protects your books, and what doesn't, in detail.
What it can't do
- Users and permissions, Direct Debit collection and filing tax returns are deliberately out of reach.
- Payroll, self assessment, stock, capital assets, price lists and bank feeds have no tools of their own.
- Receipts can be attached to bills and expenses, but not to bank transaction explanations.
- FreeAgent's sign-in has no finer permissions: the assistant can reach whatever the person who approved the app can. To limit that, approve it as a FreeAgent user with a lower permission level.
- It reports what your books show and does what you approve. It isn't an accountant, and it isn't tax advice.
More
|
|
| Installing |
Every way to install it, including Docker, the sandbox and other MCP clients |
| Tool reference |
Every tool and ready-made prompt |
| Configuration |
Settings, how login works, and confirming changes |
| Security |
What protects your books and what doesn't |
| Development |
How it is built, and how to add to it |
| Contributing · Reporting a vulnerability · Changelog |
|
Acknowledgements
The architecture, safety model and much of the plumbing (OAuth token handling, dry runs, audit log, HTTP transport) are adapted from crunch-mcp by Matt Oddie, an MCP server for Crunch Accounting, under the MIT licence.
License
MIT
freeagent-mcp is an independent community project. It is not affiliated with, endorsed by or sponsored by FreeAgent Central Ltd. "FreeAgent" is a trademark of FreeAgent Central Ltd.