actualbudget-mcp-server
An 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.
README
actualbudget-mcp-server
MCP server for Actual Budget, built for Claude, Cursor, and other AI agents.
Actual has no REST API. Its official @actual-app/api package is the app's own engine running headless: it downloads the whole budget into a local SQLite file, runs every method against that copy, and syncs CRDT messages back to the server. That architecture is why generic per-request wrappers fight it — and why this server is built around a long-lived engine singleton instead:
- Init once, never per call. The budget downloads at startup; tool calls are then local reads/writes with no init/teardown races.
- Serialized writes. All mutations run through a mutex, so bulk operations can't corrupt or lock the budget file.
- Graceful shutdown. SIGINT/SIGTERM/stdin-close flush pending sync and release the SQLite file.
- Cache-reset recovery.
actual_reload_budgetdeletes the stale local cache and re-downloads — no more restarting the MCP server by hand after resetting the budget cache in the Actual UI. - Full budget-envelope surface. Set budgeted amounts, carryover, and holds; move accounts on/off budget; create income categories — operations the API supports but existing MCP wrappers don't expose.
- Mutation safety. Every write is saved as a
{before, request, after}JSON backup in the temp directory, write tools are opt-in viaACTUAL_ENABLE_WRITE=true, and destructive tools carry MCPdestructiveHintannotations. - Defensive name handling. Some MCP clients HTML-escape arguments (
&→&); names are unescaped before they reach Actual.
Setup
npm install
npm run build
Configure via environment (see .env.example):
| Variable | Required | Purpose |
|---|---|---|
ACTUAL_SERVER_URL |
yes | Your actual-server instance URL |
ACTUAL_PASSWORD |
yes | Server login password |
ACTUAL_BUDGET_SYNC_ID |
yes | Settings → Show advanced settings → Sync ID |
ACTUAL_DATA_DIR |
yes | Local cache directory for the budget file |
ACTUAL_BUDGET_ENCRYPTION_PASSWORD |
no | Only for end-to-end encrypted files |
ACTUAL_ENABLE_WRITE |
no | Write tools registered only when exactly true |
Claude Code / Cursor MCP config:
{
"mcpServers": {
"actual-budget": {
"command": "node",
"args": ["/path/to/actualbudget-mcp-server/dist/index.js"],
"env": {
"ACTUAL_SERVER_URL": "https://actual.example.com",
"ACTUAL_PASSWORD": "...",
"ACTUAL_BUDGET_SYNC_ID": "...",
"ACTUAL_DATA_DIR": "/path/to/cache",
"ACTUAL_ENABLE_WRITE": "true"
}
}
}
}
Tools (53)
Always on (read/admin):
actual_get_accounts,actual_get_categories,actual_get_budget_months,actual_get_budget_monthactual_get_transactions,actual_search_transactions(cross-account, filters: payee substring / amount / category / account / date range / uncategorized-only)actual_get_payees,actual_get_common_payees,actual_get_payee_rules,actual_get_rules,actual_get_tags,actual_get_schedules,actual_get_noteactual_query— general read-only AQL access to any table with filters, joins, groupBy, and aggregates (spending-by-category reports in one call)actual_get_server_version,actual_sync_now,actual_reload_budget,actual_prune_stale(dry-run by default)
With ACTUAL_ENABLE_WRITE=true:
- Accounts:
actual_create_account,actual_update_account(incl. on/off budget),actual_close_account(transfer-aware),actual_reopen_account,actual_delete_account - Categories:
actual_create_category(incl.is_income),actual_update_category,actual_delete_category,actual_create_category_group(create-then-update workaround for the engine droppingis_incomeon create),actual_update_category_group,actual_delete_category_group - Budget envelope:
actual_set_budget_amount,actual_set_budget_amounts(batch, viabatchBudgetUpdates),actual_set_budget_carryover,actual_hold_budget_for_next_month,actual_reset_budget_hold - Transactions:
actual_add_transaction,actual_update_transaction(recategorize, payee, notes, date, amount, cleared),actual_delete_transaction,actual_import_transactions(batch withimported_iddedup and dry-run preview) - Payees:
actual_create_payee,actual_update_payee,actual_merge_payees,actual_delete_payee - Rules:
actual_create_rule,actual_update_rule,actual_delete_rule - Schedules:
actual_create_schedule,actual_update_schedule,actual_delete_schedule - Tags:
actual_create_tag,actual_update_tag,actual_delete_tag - Notes:
actual_update_note - Bank sync:
actual_run_bank_sync(one account or all)
Amounts in tool inputs are major currency units (123.45); Actual stores minor units (cents) and conversion happens at the boundary. Transaction lists return raw minor-unit integers; account balance and balance_current are converted to major units (balance_current: null means the account has never bank-synced). totalBudgeted in actual_get_budget_month is normalized to agree in sign with its per-group siblings (the engine reports it negated internally).
Transaction update/delete compensate for an upstream engine quirk: the engine's handlers return before their internal batch write is applied, so this server polls until the change is visible before responding — responses and backups always reflect applied state. The same one-operation lag can make a balance read immediately after actual_close_account (with transfer) show the pre-transfer value; the closed state itself is immediate.
Known limitations
- Transaction splits (subtransactions) are not exposed; use the Actual UI
- Single-budget by design:
loadBudget/runImport/getBudgetsmulti-file management is intentionally out of scope (one server instance per budget file) actual_run_bank_syncis registered but exercised only against the engine, not against live GoCardless/SimpleFIN providers- Streamable HTTP transport not yet implemented (stdio only)
License
Dual-licensed: AGPL-3.0-only for open-source use, with a commercial license available. Contact hello@nightsquawk.tech.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。