
Actual Budget MCP Server
io.github.s-stefanov由 GitHub 帳號 s-stefanov 發布v1.15.1更新於 Oct 24, 2026
MCP server exposing Actual Budget accounts, transactions, budgets and reporting to LLM assistants.
概覽
本機 MCP 伺服器,將助理連接到 Actual Budget 伺服器,可讀取帳戶、交易和預算,並產生支出、淨資產等報表。
- 可以做什麼
- 以資源形式瀏覽帳戶、餘額和交易歷史,並依帳戶、日期、金額、分類或收款人篩選交易,查看餘額變化。建立和更新交易,管理分類、分類群組、收款人(含合併重複項)和交易規則。產生報表:依分類或收款人的支出、月度彙總、預算與實際對比、淨資產、分類趨勢和現金流,以 JSON 回傳,金額為整數分。管理已儲存的自訂報表以及儀表板頁面和元件,包括新增、更新、移除和重新排列元件。使用內建提示進行財務洞察和預算審查。
- 適用情境
- 適合用 Actual Budget 管理個人財務、希望以自然語言詢問餘額、支出、儲蓄和淨資產狀況,或讓助理整理分類、收款人、規則、報表和儀表板的使用者。
- 執行需求
- 透過 npx(需 Node.js v16 或更高版本)或 Docker 在本機執行;需要 Actual Budget 伺服器或本機資料目錄。必要環境變數:ACTUAL_SERVER_URL 和 ACTUAL_BUDGET_SYNC_ID,以及 ACTUAL_PASSWORD(OpenID 伺服器則用 ACTUAL_SESSION_TOKEN)。選用:ACTUAL_DATA_DIR、ACTUAL_BUDGET_ENCRYPTION_PASSWORD、ACTUAL_SYNC_TTL_MS。寫入工具需加 --enable-write 參數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Actual Budget MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Actual Budget MCP Server
MCP server for integrating Actual Budget with Claude and other LLM assistants.
Overview
The Actual Budget MCP Server allows you to interact with your personal financial data from Actual Budget using natural language through LLMs. It exposes your accounts, transactions, and financial metrics through the Model Context Protocol (MCP).
Features
Resources
- Account Listings - Browse all your accounts with their balances
- Account Details - View detailed information about specific accounts
- Transaction History - Access transaction data with complete details
Tools
Transaction & Account Management
get-transactions- Retrieve and filter transactions by account, date, amount, category, or payeecreate-transaction- Create a new transaction in an account with optional category, payee, and notesupdate-transaction- Update an existing transaction with new category, payee, notes, or amountget-accounts- Retrieve a list of all accounts with their current balance and IDbalance-history- View account balance changes over time
Reporting & Analytics
spending-by-category- Generate spending breakdowns categorized by typemonthly-summary- Get monthly income, expenses, and savings metricsbudget-vs-actual- Compare budgeted amounts against actual spending per categorynet-worth- Track assets, liabilities, and net worth across all accounts over timecategory-trends- See how spending in each category moves month over month, with trend directionspending-by-payee- Rank payees by how much was spent with (or received from) each onecash-flow- Report income, expenses, and net cash flow per month or week
The five tools above return JSON rather than markdown, so amounts stay machine-readable. Every amount is an integer number of cents, and each response carries an
amountsInfield describing the sign conventions it uses.
Custom Reports & Dashboards
get-custom-reports- Retrieve every saved custom report from the Reports sectioncreate-custom-report- Create a saved custom reportupdate-custom-report- Update fields on a saved custom report, leaving the rest unchangeddelete-custom-report- Delete a saved custom reportget-dashboards- Retrieve every dashboard page and the widgets laid out on itadd-dashboard-widget- Add a widget to a dashboard pageupdate-dashboard-widget- Update a widget's configuration, position, or sizeremove-dashboard-widget- Remove a widget from its pageorganize-dashboard- Reposition and resize several widgets at oncecreate-dashboard-page/rename-dashboard-page/delete-dashboard-page- Manage dashboard pages
Categories
get-grouped-categories- Retrieve a list of all category groups with their categoriescreate-category- Create a new category within a category groupupdate-category- Update an existing category's name or groupdelete-category- Delete a categorycreate-category-group- Create a new category groupupdate-category-group- Update a category group's namedelete-category-group- Delete a category group
Payees
get-payees- Retrieve a list of all payees with their detailscreate-payee- Create a new payeeupdate-payee- Update an existing payee's detailsdelete-payee- Delete a payeemerge-payees- Merge duplicate payees into a single target payee
Rules
get-rules- Retrieve a list of all transaction rulescreate-rule- Create a new transaction rule with conditions and actionsupdate-rule- Update an existing transaction ruledelete-rule- Delete a transaction rule
Prompts
financial-insights- Generate insights and recommendations based on your financial databudget-review- Analyze your budget compliance and suggest adjustments
Installation
Prerequisites
- Node.js (v16 or higher)
- Actual Budget installed and configured
- Claude Desktop or another MCP-compatible client
- Docker Desktop (optional)
Remote access
Pull the latest docker image:
Local setup
- Clone the repository:
- Install dependencies:
- Build the server:
- Build the local docker image (optional):
- Configure environment variables (optional):
Optional: separate encryption budget password
If your Actual setup requires a different password to unlock the local/encrypted budget data than the server authentication password, you can set ACTUAL_BUDGET_ENCRYPTION_PASSWORD in addition to ACTUAL_PASSWORD.
Optional: OpenID servers (session token auth)
If your Actual server uses OpenID login (for example Google) with ACTUAL_OPENID_ENFORCE=true, password login is disabled, so ACTUAL_PASSWORD can't be used. Instead, sign in to Actual in a browser and pass the resulting session token. It takes precedence over ACTUAL_PASSWORD.
To find the token, sign in to Actual in your browser, open DevTools, and go to Application → IndexedDB → actual → asyncStorage. The value of the user-token key is your session token. It's a UUID (e.g. 3f2b8c1e-9a4d-4e7b-8c2a-1d5e6f7a8b9c), not a long JWT-style bearer token. You can check it with curl -H "X-ACTUAL-TOKEN: <token>" https://your-actual-server.com/account/validate, which should return "validated": true. Treat it like a password: it grants full access to your budgets. How long it stays valid depends on the server's ACTUAL_TOKEN_EXPIRATION setting. If it is invalid or expired, the MCP server still starts, but tool calls fail with Authentication failed: invalid or expired session token, because the server connects to Actual on the first request (--test-resources reports the error immediately). Sign in again, replace the token, and restart the MCP server.
Connection lifecycle
The server keeps one shared Actual connection for its entire lifetime and serializes budget operations through it. Downloaded data is re-synced when it exceeds the ACTUAL_SYNC_TTL_MS freshness window. In both stdio and HTTP modes, SIGINT and SIGTERM drain in-flight work before the server shuts down. Actual is no longer initialized and shut down for each tool call.
Report semantics
- Balances and balance histories are capped as of today; future-dated transactions are excluded, and the current-month balance-history row is partial.
- Closed on-budget accounts remain included in historical reports; closed off-budget accounts stay excluded by default.
- Monthly income follows Actual's income-group metadata. Refunds net against expenses, zero-activity months count in averages, and uncategorized transfer pairs are skipped.
- The former Investments bucket is removed from monthly summaries.
Usage with Claude Desktop
To use this server with Claude Desktop, add it to your Claude configuration:
On MacOS:
On Windows:
Add the following to your configuration...
a. Using Node.js (npx version):
b. Using Docker (local or remote images):
After saving the configuration, restart Claude Desktop.
💡
ACTUAL_DATA_DIRis optional if you're usingACTUAL_SERVER_URL.
💡 Use
--enable-writeto enable write-access tools.
Running an SSE Server
To expose the server over a port using Docker:
⚠️ Important: When using --enable-bearer, the BEARER_TOKEN environment variable must be set.
🔒 This is highly recommended if you're exposing your server via a public URL.
Example Queries
Once connected, you can ask Claude questions like:
- "What's my current account balance?"
- "Show me my spending by category last month"
- "How much did I spend on groceries in January?"
- "What's my savings rate over the past 3 months?"
- "Which categories am I overspending on this month?"
- "How has my net worth changed over the past year?"
- "Which payees do I spend the most with?"
- "Is my grocery spending trending up or down?"
- "Analyze my budget and suggest areas to improve"
- "What custom reports do I have?"
- "Add a net worth widget to my Spending Plan dashboard"
- "Rearrange my dashboard so the cash flow card is full width at the top"
Usage with Codex CLI
Example Codex configuration:
In ~/.codex/config.toml:
Point Codex at the same port you pass to npm start -- --sse --port <PORT>.
Development
For development with auto-rebuild:
Testing the connection to Actual
To verify the server can connect to your Actual Budget data:
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. You can use the MCP Inspector:
E2E validation gate
The end-to-end test suite (vitest.e2e.config.ts) spins up a real Actual Budget server in a Docker container (via Testcontainers), seeds a budget, and drives it through a real MCP client over stdio to verify accounts, transactions, categories, payees, rules, and imports actually persist. It requires Docker to be running locally.
In CI, the e2e-test job in .github/workflows/pr-validation.yml only runs on release-please PRs (branch prefix release-please--) or when a PR is given the run-e2e label — it does not run on every PR by default, since it needs Docker and takes longer than the standard checks.
To run it locally:
Docker must be installed and running; the test suite pulls and starts the Actual server image automatically.
Project Structure
index.ts- Main server implementationtypes.ts- Type definitions for API responses and parametersprompts.ts- Prompt templates for LLM interactionsutils.ts- Helper functions for date formatting and more
Registry & Discovery
actual-mcp is published to the official MCP Registry
as io.github.s-stefanov/actual-mcp. Registry metadata lives in
server.json and is published automatically on each release
(see .github/workflows/release-please.yml).
It advertises two transports on the npm package — stdio (default) and
streamable-http (via the --sse flag). (A Docker image is also published,
but is not yet listed as a registry package.)
Post-release directory listings are tracked in
docs/mcp-registry-checklist.md.
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
來源:README.md,提交 eea266f
工具
0版本歷史
3- v1.15.1最新Oct 20, 2026
- v1.15.0Oct 16, 2026
- v1.14.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分