Actual Budget MCP Server

Actual Budget MCP Server

Enables LLMs to interact with a self-hosted Actual Budget instance, providing financial data and management tools with correct financial semantics and no cents math.

Category
访问服务器

README

English | Español

Actual Budget MCP Server

An MCP (Model Context Protocol) server that connects LLMs — Claude Desktop and any MCP-capable client — to a self-hosted Actual Budget instance. It is purpose-built for LLM consumption: correct financial semantics (transfers excluded from spending summaries, net worth including off-budget accounts), amounts converted server-side so the model never does cents math, compact outputs, fresh data via sync-with-TTL, and real split transactions backed by subtransactions.

Feature highlights

The design rests on five pillars:

  • Correct financial semantics — transfers (transfer_id) are excluded from spending summaries so amounts are never double-counted, and net worth includes off-budget accounts (pensions, funds, mortgage).
  • Server-side unit conversion — Actual stores amounts in cents; every tool returns values already divided by 100, with an amount_formatted field. The LLM never does the math.
  • Compact, LLM-friendly outputs — responses are trimmed to what a model needs to answer, keeping token usage low.
  • Fresh data with sync-with-TTL — the server syncs with Actual before serving, caching the sync for a short TTL to stay fast without going stale.
  • Real split transactionssplit_transaction creates genuine subtransactions in Actual, not fake notes or workarounds.

Install in Claude Desktop (recommended)

Requirements: a Mac with Apple Silicon (M1 or later), Claude Desktop, and a self-hosted Actual Budget server you can reach. On Intel Macs, Windows or Linux, use Manual installation instead.

  1. Download the latest actual-budget-mcp-es.mcpb from the Releases page.
  2. Find your Sync ID — open Actual Budget in the browser, go to SettingsAdvanced SettingsIDs, and copy the Sync ID.
  3. Install — in Claude Desktop, open Settings → Extensions, drag the downloaded .mcpb file onto the page, review what it declares, and select Install. Claude Desktop will note the extension is not signed — that's expected for a self-distributed bundle.
  4. Fill the form Claude Desktop shows:
    • Actual server URL — e.g. https://actual.example.org/
    • Server password — the one you use to open Actual in the browser (stored by Claude Desktop's secure storage, not in a config file)
    • Budget Sync ID — from step 2
    • Locale and Currency — e.g. es-ES and EUR; defaults are en-US and USD
    • Enable write tools — leave this off for now (see below)
    • Message languagees or en; defaults to es
  5. Check it works — start a new conversation and ask "what accounts do I have?". You should get your account list with balances.

Turning on write access

With the checkbox off you get the 8 read-only tools. Turn it on (Settings → Extensions → this extension → configure) to add the 8 write tools: editing and categorizing transactions, real splits, scheduled transactions, budget assignment and category notes. Claude Desktop asks for your approval before each call unless you grant it standing permission, and there are no delete tools.

Updating

Download the newer .mcpb and drag it in again — your configuration is kept.

If every tool fails after a Claude Desktop update

The bundle ships a native SQLite module (better-sqlite3) compiled for one specific Node ABI. Claude Desktop does not run extensions with the system's Node: it starts them inside its own Electron runtime, so the module has to match that runtime. When a Claude Desktop update changes it, the module can no longer be loaded and the extension cannot work.

The server detects this at startup and says so plainly: every tool answers with the two version numbers involved and tells you to install a newer bundle, instead of failing with a confusing message about the budget being closed.

Nothing on your side fixes this — the bundle has to be rebuilt for the new runtime. Get a newer release, or build one yourself with npm run bundle on a machine that has the updated Claude Desktop installed.

This affects the .mcpb bundle only. A manual installation runs under your own Node and is immune to it.

Manual installation

For other MCP clients, Intel Macs, Windows and Linux. Requires Node.js >= 22 and a self-hosted Actual Budget server (>= 25.x; built against API 26.7) reachable over the network.

The project is written in TypeScript, so build it before use:

git clone https://github.com/marcoaperez/actual-budget-mcp-es.git
cd actual-budget-mcp-es
npm install
npm run build          # compiles TypeScript to dist/

This produces dist/index.js, the entry point your MCP client runs.

Need your Sync ID? See step 2 of Install in Claude Desktop above.

Client configuration

Add this to your claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json), or the equivalent configuration file for your MCP client. Point command at node and args at the compiled dist/index.js using an absolute path:

{
  "mcpServers": {
    "actual-budget": {
      "command": "node",
      "args": ["/absolute/path/to/actual-budget-mcp-es/dist/index.js"],
      "env": {
        "ACTUAL_SERVER_URL": "https://actual.example.org/",
        "ACTUAL_SERVER_PASSWORD": "your-password",
        "ACTUAL_SYNC_ID": "00000000-0000-0000-0000-000000000000",
        "LOCALE": "es-ES",
        "CURRENCY": "EUR",
        "ENABLE_WRITE": "false"
      }
    }
  }
}

Use "LOCALE": "en-US" and "CURRENCY": "USD" for US formatting, or "es-ES" / "EUR" for Spain. Set "ENABLE_WRITE": "true" only when you want the write tools (see below). Restart Claude Desktop after saving so it detects the new MCP server.

During development you can skip the build and run TypeScript directly with tsx: "command": "npx", "args": ["tsx", "/absolute/path/to/actual-budget-mcp-es/src/index.ts"].

Environment variables

The first three variables are required; the rest have defaults.

Variable Required Default Description
ACTUAL_SERVER_URL Yes URL of the self-hosted Actual server
ACTUAL_SERVER_PASSWORD Yes Actual server password
ACTUAL_SYNC_ID Yes Budget Sync ID (Settings → Advanced → Sync ID)
ACTUAL_DATA_DIR No ./data Folder where the local copy of the budget is downloaded
LOCALE No en-US Locale for formatting amounts and dates (e.g. es-ES)
CURRENCY No USD 3-letter ISO currency code (e.g. EUR)
SYNC_TTL_SECONDS No 60 Seconds the sync is cached before re-syncing
ENABLE_WRITE No false Enables the 8 write tools (categorize, splits, schedules, budget, notes)
MESSAGES_LANG No es Language of the server's error messages: es or en

Tools

Read tools (8)

Always available.

Tool Description
get_accounts Accounts with current balance; includes off-budget accounts (pensions, funds, mortgage) by default
get_net_worth Full net worth: on-budget + off-budget with a per-account breakdown
get_categories Category groups and categories with their IDs (needed by the write tools)
get_transactions Transactions by date range with optional filters (account, category, text, amount, uncategorized). Excludes transfers. Paginated (max 200)
get_spending_summary Spending aggregated by category, payee or month. Always excludes transfers
get_budget_month A month's budget state: to-budget, income, totals and budgeted/spent/balance per category
get_budget_averages Mean, median and max spending per category over the last N full months — input for preparing the budget
get_schedules Scheduled/recurring transactions configured in Actual (name, next date, amount)

Write tools (8)

Registered only when ENABLE_WRITE=true.

Tool Description
update_transaction Fix a transaction (amount, category, payee, notes, date)
categorize_transactions Categorize in bulk (max 50), with a per-item result
split_transaction Split a transaction into real parts — replaces the transaction (new id)
create_transaction Record an expense/income, with optional splits at creation
create_schedule Create a scheduled/recurring transaction
set_budget Assign budget in bulk to several categories of a month
transfer_budget Move assigned budget between categories
update_category_note Category notes and goal templates

Notes on the write tools

  • They only appear when ENABLE_WRITE=true is set in the env block (restart the client after changing it).
  • Input amounts are in currency units (euros/dollars, not cents); the server handles the conversion.
  • split_transaction replaces the original transaction with a new one carrying subtransactions, so the resulting transaction has a new id.

Safety

  • No delete tools — the server cannot remove transactions, accounts or budgets.
  • Write disabled by default — write tools are never registered unless ENABLE_WRITE=true.
  • Split guards — the write tools guard against editing split parts or split parents directly.
  • Never commit your .env. The Actual password lives only in your local .env or the client config.

Three things worth knowing before you enable writes:

  • data/ holds a plain, unencrypted copy of your whole budget (created owner-only, mode 0700).
  • Payee names and notes come from bank sync or CSV imports: they are untrusted text, not instructions. Keep per-call approval on in your MCP client.
  • split_transaction replaces the transaction, so it gets a new id.
  • Every MCP client you connect starts its own server process. Only one process can open a budget at a time, so extra instances automatically use their own local copy (<data dir>-instance-<pid>). In a manual installation you can set ACTUAL_DATA_DIR per client if you prefer to control it (the Claude Desktop bundle does not expose this setting).

The full security model — trust boundary, credentials, destructive operations, input validation and how to report a vulnerability — is documented in SECURITY.md.

Privacy Policy

This software collects nothing: no telemetry, no analytics, no update checks. It runs on your machine and talks only to your own Actual Budget server and to the MCP client you connect it to — which sees the financial data you ask about, under its own privacy policy. The local copy of your budget is unencrypted and lives only on your machine.

Full text: PRIVACY.md · en español

Development

npm test        # full suite with Vitest (127 tests)
npm run dev     # runs src/index.ts with tsx (no build)
npm run smoke   # manual check against the real Actual server (requires .env; not part of CI)

The server talks over stdio (stdin/stdout), so running it manually shows no interactive output — logs go to stderr.

Adding a new tool

  1. Create a file in src/tools/my_new_tool.ts
  2. Export a ToolDef (name, description, readOnly, inputSchema with Zod, handler)
  3. Import and register it in the allTools array of src/tools/index.ts

The handler(input, ctx) receives an initialized { api, config } context; use moneyFields/toUnits from src/core/money.js to always return amounts in units (never cents).

Releasing a bundle

The bundle is tied to Claude Desktop's Electron ABI. Extensions run inside Claude Desktop's own Electron, not the system's Node, so better-sqlite3 has to be compiled for that runtime. npm run bundle reads the Electron version out of the installed Claude.app, reinstalls the prebuilt binary for it, and then verifies what actually ships by dlopen-ing it with the packaging Node — which must fail, reporting Electron's ABI. If it loads, the Node-targeted binary slipped in and packaging aborts.

So: package on a machine running the Claude Desktop you are targeting, or pass ELECTRON_TARGET=x.y.z npm run bundle. Re-release whenever Claude Desktop bumps its Electron major — the previous bundle stops working for everyone on the new version.

  1. Bump version in package.json and manifest.json (a test enforces they match).
  2. npm test && npm run build && npm run bundle — the last line reports the Electron version and ABI the bundle was built for. Note it in the release description.
  3. Verify the bundle:
    npx mcpb validate manifest.json
    unzip -l build/actual-budget-mcp-es.mcpb | grep -E 'tests/|docs/|\.env' | grep -v 'node_modules/'  # expect no output
    unzip -l build/actual-budget-mcp-es.mcpb | grep -c 'better_sqlite3.node'  # expect at least 1
    
    npx mcpb info <file> (CLI 2.1.2) only prints file name, size and signature status — it does not check the manifest, so it's not a substitute for validate. The node_modules/ exclusion in the grep is there because vendored dependency files aren't the project's own code and legitimately contain paths like tests/ — don't remove it.
  4. Install build/actual-budget-mcp-es.mcpb locally and check it works.
  5. gh release create vX.Y.Z build/actual-budget-mcp-es.mcpb, noting in the release description that the bundle targets macOS on Apple Silicon.

License

MIT — see LICENSE. Copyright (c) 2026 Marco Antonio Pérez.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选