Actual Budget MCP Server
Provides tools for querying, reconciling, analyzing, and managing personal finances through Actual Budget, including accounts, transactions, categories, payees, rules, schedules, and budget syncing.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Actual Budget MCP Server What's my remaining budget for groceries this month?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Actual Budget MCP Server
An enterprise-ready Model Context Protocol (MCP) server for Actual Budget.
This server enables AI assistants and autonomous agents (such as Claude Desktop, Google Antigravity, Cursor, and custom orchestrators) to securely query, reconcile, analyze, and manage personal finances using the official Actual Budget API.
Features
Dual Transport Protocols:
Stdio Transport: Native standard input/output transport for desktop tools (Claude Desktop, Cursor, local agent runners).
Streamable HTTP Transport (MCP spec 2025-11-25): Modern, multi-session HTTP endpoint (
/mcp) supporting stateful sessions, SSE, and remote agents.
High Performance & Resilience:
Persistent in-process connection via official
@actual-app/api(no subprocess spawning per command).In-memory caching for accounts, categories, category groups, payees, and tags.
Process-level SQLite corruption self-healing and PID-isolated instance data directories.
Automatic Schema Mismatch detection & package auto-upgrades (
@actual-app/apiand@actual-app/cli).
Comprehensive Budget Toolset:
Full query engine using ActualQL (
actual_query) with filters, order-by, grouping, pagination, and count.Full CRUD operations for accounts, transactions (including split transactions), categories, category groups, payees, tags, rules, and schedules.
Dynamic skill documentation resource (
actual://skill-docs) and system prompt guidance.
Related MCP server: actual-mcp
Architecture
flowchart TD
subgraph Clients ["AI Clients & Agents"]
Claude["Claude Desktop / Cursor<br/>(Stdio Transport)"]
Remote["Remote Agents / Gateway<br/>(Streamable HTTP)"]
end
subgraph Server ["Actual Budget MCP Server"]
Router["Express Router & Transport Layer"]
Tools["MCP Tool Registry<br/>(Query, Transactions, Accounts, etc.)"]
Cache["In-Memory Cache & Self-Healing Engine"]
end
subgraph ActualCore ["Actual Budget Core"]
API["@actual-app/api"]
Instance["Isolated Instance DB<br/>(~/.actual-data/:pid)"]
Sync["Actual Budget Server<br/>(Local or Remote)"]
end
Claude -->|stdin/stdout| Tools
Remote -->|HTTP| Router
Router --> Tools
Tools --> Cache
Cache --> API
API --> Instance
API -->|CRDT Sync| SyncGetting Started
Prerequisites
Node.js:
v20.0.0or higherAn Actual Budget server instance (self-hosted or hosted)
Installation
git clone https://github.com/your-username/actual-mcp.git
cd actual-mcp
npm installConfiguration
You can configure actual-mcp using environment variables (via a .env file or exported in your shell) or via ~/.actualrc.json.
Copy the example environment template:
cp .env.example .envEnvironment Variables
Variable | Description | Default |
| Port for the HTTP / MCP server |
|
| URL of your Actual Budget server |
|
| Server password for Actual Budget | — |
| Sync ID of the budget file | — |
| End-to-end encryption password (if enabled on budget) | — |
| Root directory for isolated instance SQLite databases |
|
| Path to |
|
| Path to custom Markdown skill guide for | Built-in guide |
Configuration via ~/.actualrc.json
If environment variables are not set, actual-mcp automatically reads connection details from ~/.actualrc.json:
{
"serverUrl": "http://localhost:5006",
"password": "your_server_password",
"syncId": "your_sync_id",
"encryptionPassword": "your_encryption_password"
}Usage
1. Stdio Mode (Claude Desktop / Cursor)
Add the server to your claude_desktop_config.json:
{
"mcpServers": {
"actual": {
"command": "node",
"args": [
"/path/to/actual-mcp/index.js"
],
"env": {
"ACTUAL_SERVER_URL": "http://localhost:5006",
"ACTUAL_PASSWORD": "your_server_password",
"ACTUAL_SYNC_ID": "your_sync_id",
"ACTUAL_ENCRYPTION_PASSWORD": "your_encryption_password"
}
}
}
}2. Streamable HTTP Mode (Standalone Server)
Start the HTTP server on port 3000:
node index.js --port 3000Once running:
MCP Endpoint:
http://localhost:3000/mcpHealth Check:
http://localhost:3000/health
3. Cleanup Stale Processes
If previous instances crashed or left zombie processes:
npm run cleanupTool Reference
Tool Name | Category | Description |
| Query | Execute an ActualQL query against all 19 budget tables ( |
| Query | List all queryable database tables. |
| Query | List queryable fields for a specified table. |
| Accounts | List all active or closed accounts with current balances, |
| Accounts | Create a new budget or off-budget account (with optional |
| Accounts | Update account name, off-budget status, |
| Accounts | Get current balance of an account with optional date cutoff. |
| Account Groups | List all account groups. |
| Account Groups | Create a new account group. |
| Account Groups | Update an account group's name. |
| Account Groups | Delete an account group. |
| Notes | Get the note attached to an account, category, category group, or budget month ( |
| Notes | List all attached notes across accounts, categories, category groups, and budget months. |
| Notes | Create, update, or clear a note for an account, category, category group, or budget month. |
| Preferences | Get all budget preferences or a specific preference by key. |
| Preferences | Set a budget preference value by key. |
| Transactions | List transactions filtered by account and date range. |
| Transactions | Add one or more transactions (supports split transactions). |
| Transactions | Update fields (notes, category, amount, payee) on a transaction. |
| Transactions | Delete a transaction by ID. |
| Transactions | Merge two duplicate transactions into one. |
| Categories | List budget categories (with optional |
| Categories | Create a new budget category (with optional |
| Categories | Update a category's name, hidden status, |
| Payees | List payees or retrieve transfer payees. |
| Payees | Create a new payee. |
| Payees | List geographic locations saved for payees. |
| Payees | Create a geographic location for a payee. |
| Payees | Delete a payee location by ID. |
| Payees | Find payees near a given latitude/longitude. |
| Rules | List transaction categorization rules. |
| Schedules | List recurring payment and deposit schedules. |
| Schedules | Compute upcoming occurrence dates for a schedule or recurrence config. |
| Budgets | Load a locally downloaded budget by ID. |
| Budgets | Import a budget archive ( |
| Sync | Trigger a sync with the remote Actual Budget server. |
| Resolver | Helper tool to resolve account, account group, category, category group, payee, schedule, or tag names into UUIDs. |
License
This project is licensed under the MIT License.
Available Tools
87 toolsactual_add_transactionsB
[MUTATING] Add one or more new transactions to an account.
Inputs: account (required), args, data, file, +2 more.
actual_check_receipt_existsB
[READ-ONLY] Check whether a receipt already exists in PocketBase by source_hash, source_ref, or tx_id (fast O(1) local SQLite check).
Inputs: args, tx_id, source_ref, active_only, +1 more.
actual_clear_cacheB
[MUTATING] Clear local budget cache state and reset connection.
Inputs: args.
actual_close_accountC
[MUTATING] Close an account with optional transfer account/category.
Inputs: id (required), args, transfer_account, transfer_category.
actual_create_accountB
[MUTATING] Create a new account in Actual Budget, with optional starting balance, account group, and account note.
Inputs: name (required), args, note, balance, +2 more.
actual_create_account_groupC
[MUTATING] Create a new account group.
Inputs: name (required), args.
actual_create_categoryA
[MUTATING] Create a new category with optional note.
Inputs: name (required), group_id (required), args, note, +1 more.
actual_create_category_groupC
[MUTATING] Create a new category group.
Inputs: name (required), args, is_income.
actual_create_payeeC
[MUTATING] Create a new payee.
Inputs: name (required), args.
actual_create_payee_locationC
[MUTATING] Create a geographic location for a payee.
Inputs: latitude (required), payee_id (required), longitude (required), args.
actual_create_ruleC
[MUTATING] Create a new transaction rule.
Inputs: args, data, file.
actual_create_scheduleC
[MUTATING] Create a scheduled transaction.
Inputs: args, data, file.
actual_create_tagC
[MUTATING] Create a new tag.
Inputs: tag (required), args, color, description.
actual_delete_accountC
[MUTATING] Permanently delete an account.
Inputs: id (required), args.
actual_delete_account_groupC
[MUTATING] Delete an account group by ID.
Inputs: id (required), args.
actual_delete_categoryC
[MUTATING] Delete a category with optional category transfer.
Inputs: id (required), args, transfer_to.
actual_delete_category_groupB
[MUTATING] Delete a category group with optional category group transfer.
Inputs: id (required), args, transfer_to.
actual_delete_payeeB
[MUTATING] Delete a payee.
Inputs: id (required), args.
actual_delete_payee_locationC
[MUTATING] Delete a payee geographic location by ID.
Inputs: id (required), args.
actual_delete_receiptA
[MUTATING] Delete a receipt from PocketBase and local cache by ID or source_hash.
Inputs: id, args, tx_id, source_hash.
actual_delete_ruleC
[MUTATING] Delete a transaction rule.
Inputs: id (required), args.
actual_delete_scheduleC
[MUTATING] Delete a scheduled transaction.
Inputs: id (required), args.
actual_delete_tagC
[MUTATING] Delete a tag.
Inputs: id (required), args.
actual_delete_transactionC
[MUTATING] Delete a transaction by ID.
Inputs: id (required), args.
actual_download_budgetC
[MUTATING] Download and load a budget by syncId.
Inputs: sync_id (required), args, encryption_password.
actual_executeA
[MUTATING/GENERIC] Execute a generic command using the Actual Budget CLI. E.g., args: ['server', 'version'].
Technical Lessons & Usage Notes:
Usage: Do not run
actualCLI commands directly via bash or pythonsubprocess. Instead, always use the provided MCP tools.Querying: For querying, use
actual_querywith--select "date,amount,payee.name,notes,category.name,category.group.name,account.name,account.offbudget".Entity IDs: Use
actual_get_idwith type and name to find IDs for queries.
Inputs: args (required).
actual_export_budgetB
[READ-ONLY] Export the current Actual Budget database as a base64-encoded ZIP archive (containing db.sqlite and metadata.json).
Inputs: args.
actual_get_account_balanceB
[READ-ONLY] Get the current or historical balance for an account by ID (in integer cents).
Inputs: id (required), args, cutoff.
actual_get_budget_monthB
[READ-ONLY] Get budget allocations and summary for a specific month (YYYY-MM).
Inputs: month (required), args.
actual_get_common_payeesC
[READ-ONLY] List frequently used payees.
Inputs: args.
actual_get_idB
[READ-ONLY] Look up an entity UUID by its type ('accounts', 'account_groups', 'categories', 'category_groups', 'payees', 'schedules', 'tags') and name.
Inputs: name (required), type (required), args.
actual_get_nearby_payeesC
[READ-ONLY] Find payees near a given latitude and longitude.
Inputs: latitude (required), longitude (required), args, max_distance.
actual_get_noteA
[READ-ONLY] Get the note attached to an account, category, category group, budget month (YYYY-MM), or raw note ID. Accepts bare account UUIDs (automatically resolves 'account-'), category UUIDs, or 'YYYY-MM' months.
Inputs: id (required), args, type.
actual_get_payee_rulesC
[READ-ONLY] Get transaction rules associated with a specific payee ID.
Inputs: payee_id (required), args.
actual_get_preferencesB
[READ-ONLY] Get all budget preferences (or a single preference value by key, e.g. 'firstDayOfWeekIdx', 'dateFormat', 'numberFormat', 'defaultCurrencyCode').
Inputs: key, args.
actual_get_receiptB
[READ-ONLY] Retrieve a specific receipt by record ID, transaction ID (tx_id), source_hash, or source_ref.
Inputs: id, args, tx_id, source_ref, +1 more.
actual_get_receipt_imageA
[READ-ONLY] Fetch receipt image binary (as base64) and direct PocketBase URL by receipt record ID and optional page index or filename.
Inputs: id (required), args, filename, page_index.
actual_get_receipts_for_transactionsA
[READ-ONLY] Batch retrieve matching receipts for a list of Actual Budget transaction IDs.
Inputs: tx_ids (required), args.
actual_get_schedule_datesA
[READ-ONLY] Compute upcoming occurrence dates for a scheduled transaction (by schedule ID/name or RecurConfig/date).
Inputs: id, end, args, date, +2 more.
actual_get_server_versionB
[READ-ONLY] Get the Actual Budget server version.
Inputs: args.
actual_get_sync_statusC
[READ-ONLY] Check budget connection and cache status.
Inputs: args.
actual_hold_budget_next_monthB
[MUTATING] Hold a specific amount from the current month's budget for next month.
Inputs: month (required), amount (required), args.
actual_import_budgetC
[MUTATING] Import a budget archive file (Actual, YNAB4, or nYNAB) into Actual Budget.
Inputs: file (required), args, type, filename.
actual_import_transactionsB
[MUTATING] Import transactions with deduplication and default cleared status.
Inputs: account (required), args, data, file, +1 more.
actual_link_receiptC
[MUTATING] Link an existing PocketBase receipt to an Actual Budget transaction.
Inputs: tx_id (required), receipt_id (required), args, tx_id_transfer.
actual_list_account_groupsC
[READ-ONLY] List all account groups in the budget.
Inputs: args.
actual_list_accountsA
[READ-ONLY] List all budget and off-budget accounts, including IDs, names, closed status, current balances in cents, account_group_id, and attached account notes.
Inputs: args, format, include_closed.
actual_list_budget_monthsB
[READ-ONLY] List all available budget months.
Inputs: args.
actual_list_budgetsB
[READ-ONLY] List all budgets available on the Actual server.
Inputs: args.
actual_list_categoriesB
[READ-ONLY] List all budget categories with IDs, names, group IDs, hidden status, and optional category notes.
Inputs: args, include_notes, include_hidden.
actual_list_category_groupsB
[READ-ONLY] List all category groups with nested categories.
Inputs: args, include_hidden.
actual_list_notesB
[READ-ONLY] List all notes attached to accounts, categories, category groups, and budget months, enriched with entity names and types.
Inputs: args, type, include_empty.
actual_list_payee_locationsB
[READ-ONLY] List saved geographic locations for all payees or a specific payee.
Inputs: args, payee_id.
actual_list_payeesA
[READ-ONLY] List all payees in the budget.
Inputs: args.
actual_list_receiptsB
[READ-ONLY] List receipts stored in PocketBase (cached locally in SQLite for fast lookup). Supports filtering by tx_id, date, source, payee, search keyword, or unlinked_only.
Inputs: end, args, date, limit, +11 more.
actual_list_rulesC
[READ-ONLY] List all transaction rules.
Inputs: args.
actual_list_schedulesB
[READ-ONLY] List all scheduled transactions and recurring rules.
Inputs: args.
actual_list_tagsB
[READ-ONLY] List all transaction tags.
Inputs: args.
actual_list_transactionsA
[READ-ONLY] List transactions for a specific account within a date range. Automatically attaches matching receipt metadata and image URLs.
Inputs: end (required), start (required), account (required), args, +1 more.
actual_load_budgetB
[MUTATING] Load an already-downloaded local budget by its local budget ID.
Inputs: id (required), args.
actual_merge_payeesC
[MUTATING] Merge multiple payees into a single target payee.
Inputs: ids (required), target (required), args.
actual_merge_transactionsB
[MUTATING] Merge two transactions into one (keeps one transaction and deletes the duplicate).
Inputs: ids (required), args.
actual_queryA
[READ-ONLY] Run an ActualQL query against budget data (e.g., transactions, accounts, categories, payees). Does not modify data.
Querying Best Practices:
Select Fields: Use --select "date,amount,payee.name,notes,category.name,category.group.name,account.name,account.offbudget".
Filter Syntax: Use ActualQL JSON filter object, e.g. {"amount": {"$lt": 0}} or {"category.group.name": {"$oneof": ["Food", "Bills"]}}.
Historical Analysis: Run a single query to fetch transactions rather than multiple per-month API calls.
Inputs: args, data, file, count, +5 more.
actual_query_fieldsC
[READ-ONLY] Get field definitions and schema for a specific ActualQL table.
Inputs: table (required), args.
actual_query_tablesC
[READ-ONLY] List all available ActualQL tables in the budget schema.
Inputs: args.
actual_reopen_accountC
[MUTATING] Reopen a closed account.
Inputs: id (required), args.
actual_reset_budget_holdC
[MUTATING] Reset the budget hold amount for a specific month.
Inputs: month (required), args.
actual_restore_transaction_notesC
[MUTATING] Restore transaction notes for specified transaction IDs from backup.sqlite.
Inputs: ids, args.
actual_restore_transactionsC
[MUTATING] Restore entire transaction records for specified IDs from backup.sqlite.
Inputs: ids, args.
actual_run_bank_syncC
[MUTATING] Trigger bank synchronization for an account.
Inputs: args, account.
actual_save_receiptA
[MUTATING] Save or update a receipt in PocketBase and local cache, linking it to an Actual Budget transaction. Supports attaching images via base64 or file paths.
Inputs: id, args, data, date, +12 more.
actual_set_budget_amountB
[MUTATING] Set the budgeted amount for a category in a specific month.
Inputs: month (required), amount (required), category (required), args.
actual_set_budget_carryoverB
[MUTATING] Toggle carryover flag for a category in a specific month.
Inputs: flag (required), month (required), category (required), args.
actual_set_preferenceA
[MUTATING] Set a budget preference value by key (e.g. 'firstDayOfWeekIdx', 'dateFormat', 'numberFormat', 'defaultCurrencyCode', 'hideFraction').
Inputs: key (required), value (required), args.
actual_sync_budgetC
[MUTATING] Synchronize the local budget state with the remote Actual server.
Inputs: args.
actual_sync_receiptsB
Sync receipts from PocketBase into the local SQLite cache (supports full sweep, incremental sync, single-receipt refresh by id, or initial_if_empty).
Inputs: id, args, full, initial_if_empty.
actual_unlink_receiptC
[MUTATING] Unlink a PocketBase receipt from an Actual Budget transaction.
Inputs: receipt_id (required), args.
actual_update_accountB
[MUTATING] Update an existing account's name, offbudget status, account group, or attached note.
Inputs: id (required), args, name, note, +2 more.
actual_update_account_groupC
[MUTATING] Update an account group's name.
Inputs: id (required), name (required), args.
actual_update_categoryB
[MUTATING] Update a category's name, hidden status, group_id, or attached note.
Inputs: id (required), args, name, note, +2 more.
actual_update_category_groupC
[MUTATING] Update a category group's name or hidden status.
Inputs: id (required), args, name, hidden.
actual_update_noteA
[MUTATING] Create, update, or clear a note attached to an account, category, category group, budget month (YYYY-MM), or raw note ID. Accepts bare account UUIDs (automatically resolves 'account-'), category UUIDs, or 'YYYY-MM' months.
Inputs: id (required), note (required), args, type.
actual_update_payeeC
[MUTATING] Update a payee name.
Inputs: id (required), name (required), args.
actual_update_ruleC
[MUTATING] Update a transaction rule.
Inputs: args, data, file.
actual_update_scheduleC
[MUTATING] Update a scheduled transaction.
Inputs: id (required), args, data, file, +1 more.
actual_update_tagC
[MUTATING] Update a tag.
Inputs: id (required), tag, args, color, +1 more.
actual_update_transactionC
[MUTATING] Update fields of an existing transaction by ID.
Inputs: id (required), args, data, file.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 87 tools
Most tools follow a clear entity+action pattern, making them straightforward to distinguish. However, several clusters overlap: actual_add_transactions vs actual_import_transactions vs actual_update_transaction, actual_query vs actual_execute vs actual_query_tables/query_fields, actual_get_note vs actual_list_notes, and actual_download_budget vs actual_load_budget vs actual_import_budget, plus actual_sync_budget vs actual_sync_receipts. Descriptions help, but an agent could easily pick the wrong query/import/sync variant.
Nearly all tools use an actual_<verb>_<noun> pattern (list_accounts, create_category, delete_payee, update_schedule), which is very predictable. Minor deviations like actual_execute, actual_query, actual_get_id, and the two-word actual_hold_budget_next_month break the pure verb_noun template but remain readable.
87 tools is far beyond typical scope, even for a domain spanning accounts, categories, payees, rules, schedules, receipts, notes, queries, and sync. Many are niche or redundant (restore_transaction_notes vs restore_transactions, get_receipt_image, check_receipt_exists, get_nearby_payees), bloating the surface significantly.
The surface covers near-full CRUD and lifecycle for every major entity: accounts, groups, categories, payees, tags, rules, schedules, transactions, budget months, notes, preferences, plus receipt management and generic querying. Practically no dead ends remain for the stated budgeting domain.
Maintenance
Related MCP Connectors
Personal finance for AI agents — onboard, import statements, categorize & budget over MCP.
Log, query, and edit expenses, budgets, and accounts in Manilo from any MCP-compatible AI assistant.
Log, query, and edit expenses, budgets, and accounts in Manilo (formerly Ledgy) from any MCP-compatible AI assistant.
Connect AI agents to bank accounts, transactions, balances, and investments.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to interact with Actual Budget for personal finance management through natural language, supporting transactions, account balances, budget tracking, spending analysis, and payment searches.1-
- FlicenseAqualityDmaintenanceBridges AI/LLM applications to Actual Budget, exposing budget data as MCP tools for account listing, transactions, and budget balances.4-
- AlicenseAqualityDmaintenanceMCP server for Actual Budget that enables AI agents to read accounts, transactions, categories, and budgets, as well as create and update transactions and transfers.111MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server for Actual Budget that enables AI agents to read and manage budget data, including accounts, transactions, categories, payees, and budget envelopes, via a long-lived engine singleton.AGPL 3.0