Skip to main content
Glama
Actual Budget MCP Server

Actual Budget MCP Server

by jimmyzmli

Actual Budget MCP Server

MCP Version Node.js License: MIT

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/api and @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| Sync

Getting Started

Prerequisites

  • Node.js: v20.0.0 or higher

  • An Actual Budget server instance (self-hosted or hosted)

Installation

git clone https://github.com/your-username/actual-mcp.git
cd actual-mcp
npm install

Configuration

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 .env

Environment Variables

Variable

Description

Default

PORT

Port for the HTTP / MCP server

3000

ACTUAL_SERVER_URL

URL of your Actual Budget server

http://localhost:5006

ACTUAL_PASSWORD

Server password for Actual Budget

—

ACTUAL_SYNC_ID

Sync ID of the budget file

—

ACTUAL_ENCRYPTION_PASSWORD

End-to-end encryption password (if enabled on budget)

—

ACTUAL_DATA_DIR

Root directory for isolated instance SQLite databases

~/.actual-data

ACTUAL_RC_PATH

Path to .actualrc.json configuration file

~/.actualrc.json

ACTUAL_SKILL_PATH

Path to custom Markdown skill guide for actual://skill-docs

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 3000

Once running:

  • MCP Endpoint: http://localhost:3000/mcp

  • Health Check: http://localhost:3000/health

3. Cleanup Stale Processes

If previous instances crashed or left zombie processes:

npm run cleanup

Tool Reference

Tool Name

Category

Description

actual_query

Query

Execute an ActualQL query against all 19 budget tables (transactions, accounts, account_groups, categories, category_groups, payees, payee_locations, rules, schedules, notes, preferences, custom_reports, dashboard, etc.).

actual_query_tables

Query

List all queryable database tables.

actual_query_fields

Query

List queryable fields for a specified table.

actual_list_accounts

Accounts

List all active or closed accounts with current balances, account_group_id, and attached note.

actual_create_account

Accounts

Create a new budget or off-budget account (with optional account_group_id and note).

actual_update_account

Accounts

Update account name, off-budget status, account_group_id, or note.

actual_get_account_balance

Accounts

Get current balance of an account with optional date cutoff.

actual_list_account_groups

Account Groups

List all account groups.

actual_create_account_group

Account Groups

Create a new account group.

actual_update_account_group

Account Groups

Update an account group's name.

actual_delete_account_group

Account Groups

Delete an account group.

actual_get_note

Notes

Get the note attached to an account, category, category group, or budget month (YYYY-MM).

actual_list_notes

Notes

List all attached notes across accounts, categories, category groups, and budget months.

actual_update_note

Notes

Create, update, or clear a note for an account, category, category group, or budget month.

actual_get_preferences

Preferences

Get all budget preferences or a specific preference by key.

actual_set_preference

Preferences

Set a budget preference value by key.

actual_list_transactions

Transactions

List transactions filtered by account and date range.

actual_add_transactions

Transactions

Add one or more transactions (supports split transactions).

actual_update_transaction

Transactions

Update fields (notes, category, amount, payee) on a transaction.

actual_delete_transaction

Transactions

Delete a transaction by ID.

actual_merge_transactions

Transactions

Merge two duplicate transactions into one.

actual_list_categories

Categories

List budget categories (with optional include_notes).

actual_create_category

Categories

Create a new budget category (with optional note).

actual_update_category

Categories

Update a category's name, hidden status, group_id, or note.

actual_list_payees

Payees

List payees or retrieve transfer payees.

actual_create_payee

Payees

Create a new payee.

actual_list_payee_locations

Payees

List geographic locations saved for payees.

actual_create_payee_location

Payees

Create a geographic location for a payee.

actual_delete_payee_location

Payees

Delete a payee location by ID.

actual_get_nearby_payees

Payees

Find payees near a given latitude/longitude.

actual_list_rules

Rules

List transaction categorization rules.

actual_list_schedules

Schedules

List recurring payment and deposit schedules.

actual_get_schedule_dates

Schedules

Compute upcoming occurrence dates for a schedule or recurrence config.

actual_load_budget

Budgets

Load a locally downloaded budget by ID.

actual_import_budget

Budgets

Import a budget archive (actual, ynab4, nynab).

actual_sync_budget

Sync

Trigger a sync with the remote Actual Budget server.

actual_get_id

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 tools
actual_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 actual CLI commands directly via bash or python subprocess. Instead, always use the provided MCP tools.

  • Querying: For querying, use actual_query with --select "date,amount,payee.name,notes,category.name,category.group.name,account.name,account.offbudget".

  • Entity IDs: Use actual_get_id with 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_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_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

    C2.9/5.0

    Scored across 87 tools

    Disambiguation3/5

    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.

    Naming Consistency4/5

    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.

    Tool Count2/5

    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.

    Completeness5/5

    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

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
      -
    • F
      license
      A
      quality
      D
      maintenance
      Bridges AI/LLM applications to Actual Budget, exposing budget data as MCP tools for account listing, transactions, and budget balances.
      4
      -
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for Actual Budget that enables AI agents to read accounts, transactions, categories, and budgets, as well as create and update transactions and transfers.
      11
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      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.
      AGPL 3.0