Actual Budget MCP Server
io.github.henfrydls/actual-budget-mcp
Connect Actual Budget to Claude for spending analysis and safe transaction management.
What is the Actual Budget MCP server?
The Actual Budget MCP server connects Actual Budget to Claude and other AI models via the Model Context Protocol. It provides spending analysis, budget projections, and safe transaction management with confirmation prompts for all deletions.
This server lets you ask your budget questions in plain language—"How much did I spend on food this month?" or "Am I over budget?"—and get real analysis back. It supports multi-currency transactions, category and payee management, and includes safety features like delete previews that ask for confirmation before making changes. You can run it read-only to prevent accidental modifications.
How to install Actual Budget
Copy-paste configuration for popular MCP clients.
ACTUAL_SERVER_URLrequiredURL of your Actual Budget server, for example http://localhost:5006
ACTUAL_PASSWORDsecretPassword for your Actual Budget server. Not needed if you set ACTUAL_SESSION_TOKEN
ACTUAL_SESSION_TOKENsecretSession token for servers behind OIDC, which have no password. Use instead of ACTUAL_PASSWORD; if both are set, the token wins
ACTUAL_BUDGET_IDrequiredYour budget's Sync ID, found under Settings > Show advanced settings
ACTUAL_ENCRYPTION_PASSWORDsecretOnly needed if your budget file is end-to-end encrypted
ACTUAL_READ_ONLYSet to 1 to hide every write tool from the model, exposing only reads and analysis
ACTUAL_DATA_DIRDirectory for the local budget cache
Tools & capabilities
Tools this server exposes to the agent.
get_accounts— Retrieve list of accounts and their balancesget_categories— Retrieve budget categories and category groupsget_payees— Retrieve payees and manage payee informationget_transactions— Query transactions with filtering and analysiscreate_transaction— Add new expenses, transfers, and income transactionsupdate_transaction— Edit existing transactionsdelete_transaction— Remove transactions with preview and confirmationget_budget— Retrieve budget allocations and compare budget vs actual spendingget_month_summary— Get spending summary for a specific monthget_category_trends— Analyze spending trends across categories over timeget_projections— Get spending projections based on historical datacreate_category— Add new budget categoriescreate_payee— Add new payeescreate_rule— Create transaction rules for automationrepair_sync— Rebuild local sync state when budget is out of sync with server
Use cases
- Ask natural language questions about spending patterns and budget status
- Analyze monthly spending by category and identify budget overages
- Create and manage transactions without opening the Actual Budget app
- Set up payees, categories, and rules through conversation
- Generate spending projections and trend analysis for financial planning
Actual Budget MCP server FAQ
It's an MCP server that connects Actual Budget (a personal finance app) to Claude and other AI models, letting you analyze spending and manage transactions through conversation.
Yes, the server is open-source (MIT license) and free. You need an Actual Budget instance running (which is also free and open-source).
Download the .mcpb extension file from the GitHub releases, open Claude Desktop, go to Settings > Extensions, and drag the file onto the screen. Then enter your Actual Budget server URL, password, and budget ID in the extension settings.
Use the install button in the README (which auto-fills placeholders), or manually add the server to Cursor Settings > MCP with your Actual Budget credentials (server URL, password, and budget sync ID).
You need your Actual Budget server URL, password (or session token for OIDC servers), and your budget's Sync ID. These are configured in your MCP client settings, not shared with Anthropic.
Yes, set the ACTUAL_READ_ONLY environment variable to 1/true/yes to hide all write tools from the model and prevent any modifications to your budget.
README (reference)
Source of truth, from the repository.
actual-budget-mcp
Talk to your budget. An MCP server that connects Actual Budget to Claude. Ask where the money went, get real analysis back, and let it write without holding your breath.
Listed in the official Actual Budget community projects.

Features
- Real analysis, not just lookups - Projections, category trends, budget vs actual, and month summaries
- Writes you can trust - Every delete previews what it will remove and waits for you to confirm;
ACTUAL_READ_ONLY=1hides the write tools from the model entirely (Safety) - Multi-currency that survives reality - Splits and residual reconciliation, not just a currency symbol
- Recovers from an out-of-sync budget -
repair_syncrebuilds the local sync state when@actual-app/apiand your server disagree, the failure that otherwise leaves every tool erroring - Ask about your budget in plain language - "How much did I spend on food this month?" or "Am I over budget on anything?"
- Create and manage transactions - Add expenses, transfers, and edits without opening the app
- Manage categories, payees, and rules - Full CRUD without opening the app
- Use names, not IDs - Say "Cartera" instead of
a1b2c3d4-..., with helpful suggestions if ambiguous - Natural dates in English and Spanish - "last month", "este mes", "hace 3 meses", "yesterday"
- Clean formatted output - Aligned tables and clear summaries, not raw JSON
- Clear error messages - If something's wrong, you'll know exactly what to fix
Does it work with local models?
Yes. This is an MCP server, so it works with any client that speaks MCP, and the model behind that client is the client's business, not this server's. Claude Desktop, Claude Code, Cursor and VS Code are the ones documented below because they are the ones people ask about, but anything that can run an MCP client, including a local setup pointed at Ollama or LM Studio, talks to it the same way.
Your budget data goes to whatever model your client uses. If that matters to you, and for a lot of people running Actual it does, a local model keeps it on your machine.
Does it work with ChatGPT?
No, and the reason is not this server. ChatGPT's connectors only accept remote MCP servers: a public HTTPS endpoint speaking SSE or Streamable HTTP. There is no way to point ChatGPT at a process running on your own machine, which is what this server is. OpenAI does offer a tunnel for local servers, but it is limited to enterprise plans.
Making it work would mean exposing your Actual server to the internet, which is the opposite of what most people running Actual want. Anything that can start a local MCP process works instead: Claude Desktop, Claude Code, Cursor, VS Code, Gemini CLI, or your own setup pointed at a local model.
If what you actually want is OpenAI's model, use Codex, which does run MCP servers locally over stdio. Option 6 is the one command it takes.
Prerequisites
- Actual Budget server running (local or remote)
- Node.js 22 or higher for every option below except the Desktop Extension (see Node.js requirement)
- The Desktop Extension needs nothing but Claude Desktop. It runs on the Node that Claude Desktop ships, and the bundle carries a prebuilt SQLite binary for every Node version it supports, so nothing is compiled either. Checked on Windows 11 with Claude Desktop 2.110.0 and Node removed from the machine.
Quick Start
On Claude Desktop, the shortest path is the extension: no config file to edit and no command to run. Otherwise, copy this into Claude Code or Claude Desktop:
Install the actual-budget-mcp MCP server from npm (https://github.com/henfrydls/actual-budget-mcp).
Configure it with these credentials:
- My Actual Budget server: http://localhost:5006
- Password: YOUR_PASSWORD
- Budget ID: YOUR_BUDGET_ID
Claude will configure everything for you.
Installation
Option 1: Claude Desktop extension (no config files)
A packaged Desktop Extension is available: install it and Claude Desktop asks for your server URL, password and Sync ID in its own settings UI, with the password and session token stored in your operating system's keychain rather than a config file you have to edit.
Download actual-budget-mcp.mcpb, then open Claude Desktop, go to Settings > Extensions, and drag the file onto that screen.
On Windows, dragging is the way in: double-clicking the file opens Windows'
"select an app to open this file" dialogue instead, because Claude Desktop does
not register the .mcpb file type. Verified on a clean Windows 11 install with
Claude Desktop 0.14.10.
The extension carries everything it needs, so the first question you ask is answered straight away rather than after an install you cannot see. It is a large download, once, with a progress bar.
You do not need Node.js installed for this route. Claude Desktop runs the extension on the Node it ships with. Checked by renaming Node out of the way on a Windows 11 machine and asking a question anyway: the server started and answered.
Earlier builds launched the package from npm instead. That made the download small and moved it to the first run, where nothing showed progress: Claude Desktop waited, decided the server was dead and said it could not connect, and the extension started working on its own a few minutes later. The bundle now includes Actual's SQLite binary for every platform and Node version it supports, and picks the right one when it starts.
Updating the extension
Installing a new version over an old one keeps the settings you filled in, with one exception seen in practice: the saved server password was cleared when a field's title changed between versions. If Claude cannot connect after an update, open the extension's settings and check the password field before looking anywhere else.
Option 2: Claude Code (one command)
claude mcp add actual-budget-mcp -e ACTUAL_SERVER_URL=http://localhost:5006 -e ACTUAL_PASSWORD=your-password -e ACTUAL_BUDGET_ID=your-budget-id -- npx -y actual-budget-mcp
Option 3: Claude Desktop (edit the config file)
Add this to your claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"actual-budget-mcp": {
"command": "npx",
"args": ["-y", "actual-budget-mcp"],
"env": {
"ACTUAL_SERVER_URL": "http://localhost:5006",
"ACTUAL_PASSWORD": "your-password",
"ACTUAL_BUDGET_ID": "your-budget-sync-id"
}
}
}
}
Option 4: Cursor
The button installs it with placeholder values. Open Cursor Settings > MCP afterwards and replace the three: your server URL, your password, and your budget's Sync ID. To do it all by hand instead, go to Cursor Settings > MCP > Add new MCP server and add:
{
"mcpServers": {
"actual-budget-mcp": {
"command": "npx",
"args": ["-y", "actual-budget-mcp"],
"env": {
"ACTUAL_SERVER_URL": "http://localhost:5006",
"ACTUAL_PASSWORD": "your-password",
"ACTUAL_BUDGET_ID": "your-budget-sync-id"
}
}
}
}
Option 5: VS Code (GitHub Copilot)
Same as above: the button fills in placeholders, and you replace the three
values afterwards. By hand, add this to your VS Code settings.json:
{
"mcp": {
"servers": {
"actual-budget-mcp": {
"command": "npx",
"args": ["-y", "actual-budget-mcp"],
"env": {
"ACTUAL_SERVER_URL": "http://localhost:5006",
"ACTUAL_PASSWORD": "your-password",
"ACTUAL_BUDGET_ID": "your-budget-sync-id"
}
}
}
}
}
Option 6: Codex (OpenAI)
One command, and it writes the entry into ~/.codex/config.toml for you:
codex mcp add actual-budget-mcp \
--env ACTUAL_SERVER_URL=http://localhost:5006 \
--env ACTUAL_PASSWORD=your-password \
--env ACTUAL_BUDGET_ID=your-budget-sync-id \
-- npx -y actual-budget-mcp
Codex has no extension or bundle format, so this one-liner is the shortest route
there is. codex mcp list shows it afterwards, and codex mcp remove actual-budget-mcp undoes it.
This is Codex the local agent, the CLI and the IDE extension. Codex in the browser runs on OpenAI's machines and cannot reach an Actual server on your network.
Option 7: Docker
The image speaks stdio like every other option, so your client starts the container and owns its lifetime:
{
"mcpServers": {
"actual-budget-mcp": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"--add-host=host.docker.internal:host-gateway",
"-v", "actual-budget-mcp-data:/data",
"-e", "ACTUAL_SERVER_URL",
"-e", "ACTUAL_PASSWORD",
"-e", "ACTUAL_BUDGET_ID",
"ghcr.io/henfrydls/actual-budget-mcp:latest"
],
"env": {
"ACTUAL_SERVER_URL": "http://host.docker.internal:5006",
"ACTUAL_PASSWORD": "your-password",
"ACTUAL_BUDGET_ID": "your-budget-sync-id"
}
}
}
}
Two things that bite everyone once:
- Inside the container,
localhostis the container. Your Actual server is not there.host.docker.internal(with the--add-hostflag above, which is what makes it resolve on Linux) reaches the host instead. - Mount
/data. That is the budget cache. Without a volume, every start re-downloads your entire budget from the server.
Option 8: From source (for contributors)
git clone https://github.com/henfrydls/actual-budget-mcp.git
cd actual-budget-mcp
npm install
cp .env.example .env # Edit with your credentials
npm run build
npm run test:connection # Verify it works
Verify your setup
--verify reads the environment of the shell you run it in, and the install options above
put your credentials in your MCP client's configuration instead. So set them for the
command:
ACTUAL_SERVER_URL=http://localhost:5006 \
ACTUAL_PASSWORD=your-password \
ACTUAL_BUDGET_ID=your-sync-id \
npx -y actual-budget-mcp --verify
It connects, downloads the budget and prints how many accounts and category groups it found. Running it without those variables reports them as missing, which is about the command, not about your install.
After changing your client's configuration, restart the client. Claude Desktop, Claude Code and the rest read MCP configuration at startup and will not pick up an edit until they are restarted.
Configuration
| Variable | Required | Description |
|---|---|---|
ACTUAL_SERVER_URL | Yes | Your Actual Budget server URL. See Which URL and port |
ACTUAL_PASSWORD | Yes* | Server password (set in Actual Budget under Settings). *Not needed if you use ACTUAL_SESSION_TOKEN |
ACTUAL_SESSION_TOKEN | No | For servers behind OIDC, which have no password. Use this instead of ACTUAL_PASSWORD; if both are set, the token wins |
ACTUAL_BUDGET_ID | Yes | Budget Sync ID (found in Settings > Show advanced settings) |
ACTUAL_ENCRYPTION_PASSWORD | No | Only if your budget file is encrypted |
ACTUAL_DATA_DIR | No | Where the budget cache lives. Defaults to your OS data directory (see below) |
ACTUAL_READ_ONLY | No | Set to 1/true/yes to run read-only. See Safety |
Using a session token (OIDC servers)
If your Actual server signs you in through OIDC, there is no password to put in
ACTUAL_PASSWORD, because the server issues a session token instead. Set
ACTUAL_SESSION_TOKEN to that token and leave the password unset.
To find it, in the browser where you are signed in to Actual:
- Open your browser's developer tools
- Go to Application (Chrome/Edge) or Storage (Firefox)
- Expand IndexedDB → the
actualdatabase → theasyncStoragestore - Copy the value of the key
user-token
It is stored in IndexedDB, not Local Storage, so looking there is why people often cannot find it.
Treat the token like a password: it grants the same access. It also expires; if it does, the server says so and tells you to issue a new one, rather than blaming a password you do not have.
Which URL and port
It depends on how you run Actual, and picking the wrong one gives a connection error that does not explain itself:
| How you run Actual | URL |
|---|---|
| Self-hosted sync server (Docker, a VPS, etc.) | http://localhost:5006, or wherever you host it |
| The desktop app | http://localhost:5007 |
The desktop app runs its own sync server on port 5007, and only while the app is open. Close the app and nothing is listening, so the server cannot connect.
That embedded server also binds to 127.0.0.1 only. It is reachable from the
same machine and from nowhere else, so if Claude runs somewhere other than the
machine with the app, for example another computer or a virtual machine, you need
an SSH tunnel or a port forward. Pointing at the host's LAN address will not
work.
Where the cache is kept
Unless you set ACTUAL_DATA_DIR, the budget cache goes to the standard data
directory for your system:
| OS | Default location |
|---|---|
| Linux | $XDG_DATA_HOME/actual-budget-mcp, or ~/.local/share/actual-budget-mcp |
| macOS | ~/Library/Application Support/actual-budget-mcp |
| Windows | %APPDATA%\actual-budget-mcp |
It is a cache, not your data: deleting it only forces a fresh download on the next run. It lives outside the temp directory on purpose, so a reboot does not throw it away and make the next startup re-download your whole budget.
Finding your Budget ID
- Open Actual Budget
- Open Settings: click the arrow next to your budget name, or use the sidebar, More, then Settings
- Click Show advanced settings
- Copy the Sync ID
Take the Sync ID, not the Budget ID. Actual shows both, one under the other, and they
are both UUIDs. ACTUAL_BUDGET_ID wants the one labelled Sync ID, despite the name of
the variable. Using the other one gives you Budget "..." not found on the server, which
reads as though you mistyped it when the value was simply the wrong field.
If Sync ID shows (none), that budget has never been synced to a server. This server
talks to Actual through its sync server, so a local-only budget cannot be used until you
sync it.
Privacy Policy
Data collection. This server collects nothing. It has no telemetry, no analytics and no usage reporting, and none is planned: it reads personal finances, and a tool that does that should not be phoning home. There is no account to create and nothing to opt out of.
Usage and storage. The server talks to one place: the Actual Budget server whose URL you configure. Your budget is cached on your own machine, in the data directory documented under Where the cache is kept, so that it does not have to be downloaded on every start. Nothing is written anywhere else.
Your credentials are handled by your MCP client, not by this server. Claude Desktop stores the password and session token in your operating system's keychain; the server receives them as environment variables at launch, uses them to connect, and never writes them to disk.
Third-party sharing. None. No data is sent to the author, to any analytics service, or to any third party. The only network connection the server opens is to your own Actual server.
Two things worth naming because they are also true: the model you are talking to
(Claude, or whichever client you use) necessarily sees the budget data you ask
about, under that provider's own terms; and installing via npx downloads the
package from npm, which is an ordinary package download and involves no budget
data.
Data retention. The cache lives on your machine until you delete it. Deleting it loses nothing, since it is a copy of what is on your Actual server; the next run downloads it again. Uninstalling the server leaves nothing behind except that directory, which you can remove.
Contact. Open an issue at https://github.com/henfrydls/actual-budget-mcp/issues. The full policy is also published at https://actual-mcp.henfrydls.com/privacy/.
Transactions this server writes carry an id it generates
Every transaction, split and transfer created through this server is given a
UUID before it is sent, and that id is what the server uses to find the row
again if the write reports an error. It is the transaction's own id, not
imported_id, so Actual's deduplication of imported files still works on these
rows exactly as it does on any other.
Nothing about this is visible in Actual, and it changes nothing for you. It is documented because it is a real difference from writing the same transaction by hand.
Safety
Three things protect your budget from an agent acting on a vague instruction.
Deletes preview before they delete
Every delete tool refuses to destroy anything on the first call. It reports what would be lost and stops there. Deleting takes a second, deliberate call:
delete_category(category: "Groceries")
→ preview: transactions affected, budget and rollover warning. Nothing deleted.
delete_category(category: "Groceries", confirm: true, confirm_name: "Groceries")
→ deleted
The preview covers every row that can be deleted, which is the point of it: dated ahead of today, older than the rest of the budget, one part of a split, or in a closed account. Those four used to preview as blank and delete anyway, so the guard was asking you to confirm nothing. An id that matches no transaction is now refused rather than reported as deleted.
Tools that find their target by name (delete_account, delete_category,
delete_category_group, delete_payee) also require confirm_name with the
exact name. That is where deleting the wrong thing actually happens: asking for
"Adicionales" can resolve to "Ingresos Adicionales". Tools that take an exact id
(delete_transaction, delete_rule) need only confirm: true.
A transaction that already exists is not created twice
create_transaction looks before it writes. If the account, the date and the
amount all match something already in the budget, it creates nothing and shows
you what is there:
create_transaction(account: "Checking", amount: -50, date: "2026-06-05")
→ A transaction like this one already exists, so nothing was created:
2026-06-05 -50.00 Checking Claro
id: 0b6d516e-...
Same account, same date, same amount. If this is a second, genuine payment
rather than the same one recorded twice, call again with allow_duplicate: true.
create_transaction(account: "Checking", amount: -50, date: "2026-06-05", allow_duplicate: true)
→ Transaction created
Two identical coffees on one card on one day are a real thing, so the flag exists and one extra call is the whole cost. This is a change from 0.9.x, where the second call created a second row without saying anything.
The check syncs first, so it sees what another client wrote and not only what
this one did. That is the case it is for: two agents against one budget, neither
able to see the other. reconcile_currency_residual takes the same flag, for
the same reason, and syncs before reading the balance it computes from.
It is not returned as an error. The delete tools set isError on their
preview so that a repeated call cannot destroy anything by accident. This one
does the opposite, deliberately: a repeated call creates nothing at all, and an
agent that reads isError treats being asked as being refused and retries,
which is what duplicates. Deletes flag; this one does not.
What it costs. One extra round trip per create_transaction, whether or not
a duplicate is found. Against a server on the same machine that is not
measurable. Against a remote server it roughly doubles the time per write:
measured at 80 ms of round-trip latency, 87 ms becomes 171 ms for a single
create, and 22 creates in a row go from 1.9 s to 3.8 s. Passing
allow_duplicate: true skips the sync as well as the check, so a bulk import
that has already been deduplicated elsewhere pays nothing.
Offline and hung servers. If the sync fails the check still runs against the local copy and the write is not blocked, so an offline session keeps working with a weaker check rather than no writes. It says so on stderr, with the reason, so a weakened check is never silent.
A server that accepts the connection and then never answers is the slow case: the Actual library sets no timeout of its own, so the call falls back to Node's own five-minute header timeout before failing. This PR adds a second place where that can happen, now before the write rather than after it, so a hung server can cost twice as long as it used to. Tracked in #99.
What it does not catch:
- A rule that rewrites the amount or the date of the row as it is stored, since the stored row then no longer matches what was asked. Renaming rules, the common kind, make no difference to it.
- A transaction that arrives between the check and the write. The sync narrows that window; it does not close it. This looks before it writes, which is not the same as doing both at once.
create_transferandcreate_split_transaction, which do not run the check yet, and an opening balance fromcreate_account. Tracked in #98.
reconcile_currency_residual and dates
It refuses a date in the future for the adjustment it writes. Its whole promise is to bring the account to the balance the bank reports now, and a row that takes effect later does not do that. It also could not be made to behave: the balance counts transactions up to today, so a future-dated adjustment never entered it and every run booked another one.
"Today" here is the server's today. A client in a timezone ahead of the server
can be told its own date is in the future; omitting date, or passing "today",
uses the same clock as the check and always works. create_transaction has no
such restriction, so recording a purchase dated ahead, which is what you want
when a card posts a weekend purchase on the next business day, still works
there.
When the account holds transactions dated after today, it asks which they are. Actual's balance stops at today; your bank's figure may not. A card purchase made at the weekend is commonly posted with the following business day's date, so the bank has already counted something the balance has not, and the difference would otherwise be booked as currency drift.
So reconcile reports those rows and books nothing until you say which reading you gave it:
reconcile_currency_residual(account: "Card", target_balance: -140, category: "Cashback")
→ No adjustment was booked for Card.
This account holds 2 transactions dated after today, so the balance Actual
reports and the balance your bank reports are not measuring the same thing.
2026-09-28 -40.00 WEEKEND-PURCHASE (came from the bank, so the bank counts it)
2026-10-26 -80.00 SCHEDULED-LATER
Balance to today: -100.00
Those rows come to: -120.00
Balance counting them: -220.00
You said the bank says: -140.00
Which is it?
future_rows: "exclude" the bank has not posted them yet.
Adjustment would be -40.00.
future_rows: "include" the bank has posted them already, ...
Adjustment would be 80.00.
The choice is yours, because in general nothing says which a row is. Where something does, it is said: a row that arrived from the bank is one the bank obviously counts, and a row entered here and not reconciled may be one it has not seen. Neither settles it, both narrow it. Rows are listed oldest first, so the nearest one, the one most likely to have been posted, is the first you read.
Accounts with nothing dated ahead are unaffected and never see the question. A row dated exactly today counts as present, not as ahead, because the balance already includes it.
Whichever you choose is recorded on the adjustment itself, as
FX residual adjustment (counting 2 transactions dated after today), so a row
booked on the wrong reading can be found later instead of being a puzzle.
Measured before this existed: an account at -100.00 to today, a -40.00 purchase dated ahead that the bank had posted, a -80.00 transfer scheduled for later that it had not, and a bank figure of -140.00. It booked -40.00 and left the account summing to -260.00 where the bank ends at -220.00. The adjustment was exactly the purchase, recorded a second time, in a category that calls it drift.
It also refuses a date that does not exist, such as 2026-09-31 or
2026-02-30, rather than calling it a future one. Other tools still accept an
impossible date and store it verbatim; that is older than this and unchanged.
It also syncs three times on the happy path: once before reading the balance, once inside the create it delegates to, and once to push. Two of those are consecutive pulls, so a remote server pays a redundant round trip.
Read-only mode
Set ACTUAL_READ_ONLY=1 and the server exposes only the 15 read, analysis and
repair tools. The write tools are not registered at all, so they never
appear in tool discovery, and an agent cannot be talked into calling something it
cannot see.
repair_sync stays available on purpose: it repairs sync state rather than
budget data, and hiding it would leave a desynced budget with no way to recover.
Writes are enabled by default. Read-only is opt-in.
Tools (41)
Read (10)
| Tool | Description | Example prompt |
|---|---|---|
list_accounts | All accounts with balances | "Show me all my accounts" |
get_budget_month | Budget for a specific month | "What does my March budget look like?" |
get_transactions | Transactions with filters | "Show me transactions from last week over 5000" |
get_category_balance | Category history across a window of months | "How did food look in the three months to June?" |
get_budget_summary | Executive budget overview | "Give me a budget summary for February" |
get_categories | All category groups and categories | "What categories do I have?" |
get_payees | All payees in the budget | "List all my payees" |
reconcile_account | Compare an account against a bank figure and explain the gap | "My BHD statement says 45,230.18, what am I missing?" |
get_rules | All transaction rules | "Show me my rules" |
balance_history | Account balance over time | "Show balance history for my checking account" |
get_budget_month - month (optional): YYYY-MM or natural language ("this month", "last month", "enero 2025")
reconcile_account - account (required) | expected_balance (required): what the bank says | as_of (optional): the date that figure is from, defaults to today; transactions after it are not counted | balance_counts (optional): all (default) counts uncleared rows too, cleared_only does not | lookback_days (optional, default 90). Reads only, books nothing. Lists what might explain a difference, strongest signal first: a charge entered twice, the amount sitting on another account, a row dated past the cutoff, and last a bare amount match. Combinations are not searched on purpose, because on an ordinary account some pair sums to almost any round figure. When nothing explains it, it says so.
get_transactions - account (optional): account name | start_date / end_date (optional): YYYY-MM-DD or natural language | category (optional): category name | payee (optional): payee name | min_amount / max_amount (optional): filter by amount | notes_contains (optional): text to find in the notes, case-insensitive, matching the note of the split a transaction belongs to as well; searches every date unless you give a range | uncategorized (optional): only transactions with no category, leaving out split parents, transfers between accounts on the same side of the budget, and off-budget accounts; searches all dates unless you give a range | limit (optional, default 50)
get_category_balance - category (required): category name or ID | months (optional, default 3): how many months the window covers, and the default is a default, not a limit | month (optional): the month the window ends in, defaulting to this month, so a past period can be asked for directly
get_budget_summary - month (optional): YYYY-MM or natural language. A group with nothing budgeted against it gets no percentage: a share of a non-positive budget has no correct reading, so the row says what it is instead.
balance_history - account (required): account name or ID | start_date (optional, default 3 months ago) | end_date (optional, default today)
Analysis (5)
| Tool | Description | Example prompt |
|---|---|---|
budget_vs_actual | Budgeted vs spent per category | "Am I over budget on anything this month?" |
spending_projection | End-of-month spending forecast | "Will I stay within budget this month?" |
category_trends | Spending trends over a window of months | "What were my trends in the six months to June?" |
spending_by_category | Spending breakdown by category | "Show me spending by category for February" |
monthly_summary | Income vs expenses vs savings | "How have my finances been the last 3 months?" |
budget_vs_actual - a category whose net for the month is positive says money came in rather than being listed as under budget, and is left out of the under-budget total. month (optional): YYYY-MM or natural language | group (optional): filter by category group
spending_projection - money coming in is not projected as going out, and the headline counts categories already over budget, including those with nothing budgeted at all. month (optional): YYYY-MM or natural language
category_trends - category (optional): specific category or top spending if omitted | months (optional, default 6): how many months the window covers, and the default is a default, not a limit | month (optional): the month the window ends in, defaulting to this month. Months earlier than the budget file are named in the reply rather than ending the call
spending_by_category - start_date / end_date (optional): date range | include_income (optional, default false) | limit (optional, default 20). It counts each half of a split against its own category and leaves off-budget accounts out, using the same sum as the month cross-check. The share column is a share of spending, so a category whose net for the period is positive (a refund, a reimbursement) is still listed but carries no share, and the footer separates spending, money in and the net. Otherwise a single incoming row shrinks the denominator and the shares add up to more than 100%.
monthly_summary - months (optional, default 3): number of months to show
Write: Transactions (11)
| Tool | Description | Example prompt |
|---|---|---|
create_transaction | Add a new transaction | "I spent 500 on groceries from Cartera today" |
create_transactions | Add several at once, all or nothing | "Record these 22 movements from the 18th" |
create_split_transaction | One charge across several categories | "Split that 3,000 charge: 2,000 groceries, 1,000 household" |
update_transaction | Edit an existing transaction | "Change the amount on that transaction to 600" |
delete_transaction | Remove a transaction (previews first, see Safety) | "Delete that test transaction" |
update_budget_amount | Set a budget amount, or add to it | "Put 10,000 more into Salud this month" |
transfer_between_categories | Move budgeted money between categories, creating no transaction | "Move 114.06 from Reembolsos pendientes to Familia" |
recategorize_transaction | Move to another category | "Move that transaction to Entertainment" |
create_transfer | Transfer between accounts | "Transfer 10,000 from Checking to Savings" |
reconcile_currency_residual | Clear accumulated FX-rate residual | "Reconcile my USD card to 213.82 USD" |
run_bank_sync | Sync with linked banks | "Sync my bank transactions" |
create_transactions - transactions (required): an array of {account, amount, payee?, category?, date?, notes?, cleared?, imported_id?} | allow_duplicate (optional). This is the way to record more than one. Every row is resolved and checked before anything is written, and if any row is unusable nothing is created: the reply names the rows that failed and why, and says the rest were fine but not written either. Calling create_transaction many times in parallel is what this replaces — nine at once took the server down, which is how that limit was learned. A row whose payee names an account is refused, since a transfer needs create_transfer. A row whose imported_id is already in the budget is refused, so resending a batch cannot duplicate it.
create_transaction - account (required): account name | amount (required): negative for expenses, positive for income | payee (optional) | category (optional) | date (optional) | notes (optional) | cleared (optional) | allow_duplicate (optional): create it even though one with the same account, date and amount exists
update_transaction - transaction_id (required) | amount, payee, category, date, notes, cleared (all optional)
delete_transaction - transaction_id (required) | confirm (optional): must be true to delete; without it the tool only previews
update_budget_amount - category (required) | amount (required) | month (optional) | mode (optional): absolute (default) sets the budgeted figure, delta adds the amount to what is already there and may be negative. A delta is what an ordinary adjustment is: with rollover and spending in the way, setting an absolute figure means working out a number like 23,661.07 first, and nothing about that number shows it was computed wrongly.
transfer_between_categories - from (required): category to take from | to (required): category to give to | amount (required): positive | month (optional, defaults to the current month). Refuses an income category at either end (Actual marks income per category, so one can sit in a spending group), a month that is not YYYY-MM with the month between 01 and 12, and moving a category to itself. Actual's own handler accepts all three and silently loses, destroys or invents money. Covering an overspent category is allowed and reported.
recategorize_transaction - transaction_id (required) | category (required)
create_transfer - from_account (required) | to_account (required) | amount (required) | date (optional) | notes (optional)
create_split_transaction - account (required) | amount (required): total, must equal the sum of the splits | splits (required): two or more {category, amount, notes} | payee, date, notes, cleared (all optional)
reconcile_currency_residual - account (required) | category (required): where to book the adjustment | target_balance (optional, defaults to 0) | payee, notes (optional) | date (optional, today or earlier; a future date is refused) | allow_duplicate (optional): book it even though a transaction of that amount is already on that day | future_rows (optional): exclude or include, whether the balance you gave already counts transactions dated after today
run_bank_sync - account (optional): sync specific account or all if omitted
Write: Categories (6)
| Tool | Description | Example prompt |
|---|---|---|
create_category | Create a new category | "Create a category called Gym in Gastos Variables" |
update_category | Rename or hide a category | "Rename Gym to Fitness" |
delete_category | Delete a category (previews first, see Safety) | "Delete the Fitness category" |
create_category_group | Create a new group | "Create a category group called Health" |
update_category_group | Rename or hide a group | "Rename the Health group to Wellness" |
delete_category_group | Delete a group (previews first, see Safety) | "Delete the Wellness group" |
create_category - name (required) | group (required): group name or ID
update_category - category (required): name or ID | name (optional): new name | hidden (optional): true/false
delete_category - category (required) | transfer_to (optional): category to move transactions to | confirm + confirm_name (required to delete)
create_category_group - name (required)
update_category_group - group (required): name or ID | name (optional): new name | hidden (optional): true/false
delete_category_group - group (required) | transfer_to (required): category for orphaned transactions | confirm + confirm_name (required to delete)
Write: Payees & Rules (5)
| Tool | Description | Example prompt |
|---|---|---|
create_payee | Create a new payee | "Create a payee called Netflix" |
update_payee | Rename a payee | "Rename Netflix to Netflix Premium" |
delete_payee | Delete a payee (previews first, see Safety) | "Delete the Netflix Premium payee" |
create_rule | Create a transaction rule | "Create a rule: when payee contains Amazon, set category to Shopping" |
delete_rule | Delete a rule (previews first, see Safety) | "Delete that rule" |
create_payee - name (required)
update_payee - payee (required): name or ID | name (required): new name
delete_payee - payee (required): name or ID | confirm + confirm_name (required to delete)
create_rule - condition_field (required): payee, category, amount, notes | condition_op (required): is, contains, oneOf, gt, lt, etc. | condition_value (required) | action_field (required): category, payee, notes | action_value (required) | stage (optional)
delete_rule - rule_id (required) | confirm (required to delete)
Write: Accounts (3)
| Tool | Description | Example prompt |
|---|---|---|
create_account | Create an on- or off-budget account | "Create an off-budget account called Family Investment with 10,000" |
delete_account | Delete an account and its history | "Delete the ZZ Test account" |
update_account | Rename an account | "Rename BHD Nomina to BHD Nomina DOP" |
<details> <summary>Parameters</summary>
delete_accountneeds two keys. It destroys the account's entire transaction history, so a single call never deletes. The first call only previews what would be lost (name, balance, transaction count) and suggests closing the account instead, since closing retires it while keeping its history. To actually delete, call again withconfirm: trueandconfirm_nameset to the account's exact name. While it declines, the tool reportsisError: true, so a confirmation prompt is never mistaken for a completed deletion.
create_account - name (required) | offBudget (optional, default false) | initialBalance (optional): human amount, creates the "Starting Balance" transaction. (Actual models accounts as on/off-budget only, so there is no account type.)
update_account - account (required): name or ID | name (required): the new name. Renames only. Budget status (offbudget) and closing are deliberately not exposed: moving an account in or out of the budget changes every month's totals at once, and closing has its own flow in the app that asks where the remaining balance goes. A name already used by another account is refused, because Actual allows duplicates and then neither account can be resolved by name.
delete_account - account (required): name or ID | confirm (required to delete): must be true | confirm_name (required to delete): the account's exact name
Maintenance (1)
| Tool | Description | Example prompt |
|---|---|---|
repair_sync | Repair an out-of-sync budget | "Repair the sync, everything is failing" |
<details> <summary>Parameters</summary>If tools start failing with a sync error, the budget's sync state is inconsistent with the server.
repair_syncrebuilds that state without touching budget data. Note that deleting the localACTUAL_DATA_DIRdoes not fix this, because the inconsistency is in the sync state, not the cache.It checks the server is there first. Two different problems fail the same way: a broken sync state, and a server that is not running — which for the desktop app means the app is closed, since its server on port 5007 only runs while it is open.
repair_synconly fixes the first, so if nothing is listening it says so and changes nothing, rather than spending a repair on a problem that is "the app is not running".
repair_sync - no parameters
</details>Prompts
Built-in prompt templates that guide Claude through multi-step financial analysis:
| Prompt | Description |
|---|---|
monthly-review | Complete budget review for any month: spending vs budget, overspending, suggestions |
spending-check | Quick check: are you on track this month? |
spending-patterns | Deep analysis of spending trends and patterns over multiple months |
Use them in Claude Desktop by clicking the prompt icon, or in Claude Code by asking Claude to use them.
Resources
Pre-loaded data that Claude can reference without calling tools:
| Resource | URI | Description |
|---|---|---|
| Accounts | actual://accounts | All accounts with balances |
| Categories | actual://categories | Category groups and categories with IDs |
| Payees | actual://payees | All payees sorted alphabetically |
Usage Examples
Here are real prompts you can use:
"How much did I spend in February?"
"Show me my top 5 spending categories this month"
"Am I over budget on anything?"
"I spent 1,200 on electricity from my BHD account yesterday"
"What's my savings rate this month?"
"Show me all transactions from Cartera in the last 30 days"
"Transfer 5,000 from Checking to Savings"
"What are my spending trends for food over the last 6 months?"
"Create a category called Gym in Gastos Variables"
"Rename the Gym category to Fitness"
"Create a rule: when payee is Netflix, set category to Suscripciones"
"How have my finances been the last 3 months?"
How is this different?
Compared to other Actual Budget MCP servers:
| Feature | actual-budget-mcp | Others |
|---|---|---|
| Natural language dates | "last month", "este mes", "hace 3 meses" | Only YYYY-MM-DD |
| Name resolution | Type "Cartera" instead of UUIDs | Requires exact IDs |
| Output format | Aligned tables, readable text | Raw JSON |
| Error messages | Clear instructions on how to fix | Generic errors |
| Analysis tools | Budget vs actual, projections, trends | Not available |
| MCP Prompts | 3 guided analysis workflows | Limited or none |
| MCP Resources | Accounts, categories, payees pre-loaded | Not available |
| Bilingual dates | English + Spanish | English only |
| Transfers | Two linked sides, matching transfer_id, no category, same as the app | Often one-sided or miscategorised |
| Deletes | Preview, then an explicit confirmation | Run immediately |
| Out-of-sync recovery | repair_sync rebuilds the local sync state | Reinstall and hope |
| API version | @actual-app/api 26.x (current) | Often outdated |
Security
- This server connects to your Actual Budget instance using the credentials you provide
- Credentials are passed as environment variables and never stored by the MCP server
- All communication with your Actual Budget server happens locally (or to your self-hosted server)
- The server only accesses budget data through the official
@actual-app/apilibrary - No data is sent to third parties
Troubleshooting
Stuck on something that is not listed here? Tell me what tripped you up. A sentence is enough, and a failed setup looks identical to no setup at all from my side.
"Could not connect to Actual Budget server"
- Make sure Actual Budget is running (open the app or start the server)
- Check that
ACTUAL_SERVER_URLis correct - Run
npx -y actual-budget-mcp --verifyto test your connection
"Authentication failed"
- Your server requires a password. Set
ACTUAL_PASSWORDin your config - If you forgot the password, reset it in Actual Budget under Settings > Server
"Budget not found"
- Check your
ACTUAL_BUDGET_ID. Find it in Settings > Show advanced settings > Sync ID
"Budget file is encrypted"
- Set
ACTUAL_ENCRYPTION_PASSWORDwith your encryption password
"Ambiguous name: matches X, Y"
- Be more specific. Instead of "BHD", try "BHD Nomina" or "BHD Mi Pais"
Node.js Requirement
"ReferenceError: navigator is not defined"
@actual-app/apireferenced thenavigatorglobal through 26.6. That global only exists on Node.js 21+, so importing the library on Node.js 20 threw before the server could start. 26.8 dropped the reference.- Solution: Run Node.js 22 or newer, which is the minimum from 0.9.2 on.
Node Version Managers (fnm, nvm, volta)
MCP server shows "Server disconnected" in Claude Desktop
- Claude Desktop doesn't source your shell profile (
.bashrc,.zshrc), so version managers like fnm, nvm, and volta won't work with the defaultnpxcommand. This applies to a manualnpxentry in the config file, not to the Desktop Extension, which carries its own dependencies. - Solution: Use the absolute path to node in your config. Find it with:
readlink -f $(which node)
Then update your claude_desktop_config.json:
{
"mcpServers": {
"actual-budget-mcp": {
"command": "/home/user/.local/share/fnm/node-versions/v22.22.1/installation/bin/node",
"args": ["/path/to/actual-budget-mcp/dist/index.js"],
"env": {
"ACTUAL_SERVER_URL": "http://localhost:5006",
"ACTUAL_PASSWORD": "your-password",
"ACTUAL_BUDGET_ID": "your-budget-sync-id"
}
}
}
}
Alternatively, create a wrapper script mcp-wrapper.sh:
#!/bin/bash
export PATH="$HOME/.local/share/fnm/node-versions/v22.22.1/installation/bin:$PATH"
exec npx -y actual-budget-mcp "$@"
Then use it in your config:
{
"mcpServers": {
"actual-budget-mcp": {
"command": "/path/to/mcp-wrapper.sh"
}
}
}
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
git clone https://github.com/henfrydls/actual-budget-mcp.git
cd actual-budget-mcp
npm install
npm run build
npm test # Run unit tests
npm run test:connection # Needs .env configured
License
MIT - DLSLabs
Related MCP servers

io.github.hengkp/rtcf
Turns rough requests into sharp Role/Task/Context/Format prompts. Thai and English.
Read-only access to Epivo's live course catalogue for AI agents.
View repository →
A whiteboard where AI agents draw their explanations as hand-drawn animated diagrams

io.github.henryjrobinson/eve-mentor-mcp
AI mentor for new & returning EVE Online players: losses, skills, fits, ISK, routes, and more.

