Actual Budget

MCPAI代理

提供方 未标注

AI代理 HTTP · 远程 未标注 社区 / 第三方
查看接入方式

全面解析Actual MCPMCP Server的核心功能、安装配置和实用案例。作为顶级Model Context Protocol服务器,Actual MCP能让AI助手访问实时数据、执行操作,为您提供更智能的工作体验和自动化解决方案。

一句话选型结论

按资料字段整理

Actual Budget 属于AI代理类 MCP 服务器,HTTP · 远程,鉴权方式未标注,有可直接复制的远程端点配置。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类AI代理 传输方式HTTP · 远程 鉴权未标注 部署方式远程部署
GitHub 星标 未标注 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

AI代理
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

安装与配置

HTTP · 远程 未标注
连远程 HTTPS 端点,通常为 Streamable HTTP
npx @modelcontextprotocol/inspector node build/index.js

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    确认你的客户端支持远程端点,并拿到服务地址。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
给代理接外部能力

让代理在任务中途调用搜索、数据库等真实工具。

多步任务编排

把一串操作拆成步骤,由代理按顺序执行。

自动化重复流程

把固定流程交给代理跑,减少手工操作。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。

先想清楚的地方

  • 远程端点依赖网络与服务方可用性,注意密钥与调用额度。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在AI代理场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Actual Budget当前 未标注 HTTP · 远程 远程部署 有 2026-05-17
Filesystem 560c4363 13 未标注 本地部署 无 2026-05-17
Server Everything (everything) 11 stdio · 本地进程 本地部署 有 2026-05-17
Time 7365cb6d 2 SSE · 服务端推送 远程部署 有 2026-05-18
Everything Claude Code 未标注 stdio · 本地进程 本地部署 有 2026-05-17
Openmemory 557e1585 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

AI代理
字段来自项目仓库与公开索引,中文说明由本站标注
提供方未标注上游标注的维护方 未标注
分类AI代理本站按上游分类展示
连接方式HTTP · 远程连远程 HTTPS 端点,通常为 Streamable HTTP
鉴权方式未标注远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · Node.js本地安装时用到的包标识与运行时
部署类型远程部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

13.1 KB
来自项目仓库与上游目录的原文,未做删改

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 payee
  • create-transaction - Create a new transaction in an account with optional category, payee, and notes
  • update-transaction - Update an existing transaction with new category, payee, notes, or amount
  • get-accounts - Retrieve a list of all accounts with their current balance and ID
  • balance-history - View account balance changes over time

Reporting & Analytics

  • spending-by-category - Generate spending breakdowns categorized by type
  • monthly-summary - Get monthly income, expenses, and savings metrics
  • budget-vs-actual - Compare budgeted amounts against actual spending per category
  • net-worth - Track assets, liabilities, and net worth across all accounts over time
  • category-trends - See how spending in each category moves month over month, with trend direction
  • spending-by-payee - Rank payees by how much was spent with (or received from) each one
  • cash-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 amountsIn field describing the sign conventions it uses.

Custom Reports & Dashboards

  • get-custom-reports - Retrieve every saved custom report from the Reports section
  • create-custom-report - Create a saved custom report
  • update-custom-report - Update fields on a saved custom report, leaving the rest unchanged
  • delete-custom-report - Delete a saved custom report
  • get-dashboards - Retrieve every dashboard page and the widgets laid out on it
  • add-dashboard-widget - Add a widget to a dashboard page
  • update-dashboard-widget - Update a widget's configuration, position, or size
  • remove-dashboard-widget - Remove a widget from its page
  • organize-dashboard - Reposition and resize several widgets at once
  • create-dashboard-page / rename-dashboard-page / delete-dashboard-page - Manage dashboard pages

Categories

  • get-grouped-categories - Retrieve a list of all category groups with their categories
  • create-category - Create a new category within a category group
  • update-category - Update an existing category's name or group
  • delete-category - Delete a category
  • create-category-group - Create a new category group
  • update-category-group - Update a category group's name
  • delete-category-group - Delete a category group

Payees

  • get-payees - Retrieve a list of all payees with their details
  • create-payee - Create a new payee
  • update-payee - Update an existing payee's details
  • delete-payee - Delete a payee
  • merge-payees - Merge duplicate payees into a single target payee

Rules

  • get-rules - Retrieve a list of all transaction rules
  • create-rule - Create a new transaction rule with conditions and actions
  • update-rule - Update an existing transaction rule
  • delete-rule - Delete a transaction rule

Prompts

  • financial-insights - Generate insights and recommendations based on your financial data
  • budget-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:```
docker pull sstefanov/actual-mcp:latest


### Local setup

1. Clone the repository:```bash
git clone https://github.com/s-stefanov/actual-mcp.git
cd actual-mcp
  1. Install dependencies:```bash
    npm install

3. Build the server:```bash
npm run build
  1. Build the local docker image (optional):```bash
    docker build -t <local-image-name> .

5. Configure environment variables (optional):```bash
# Path to your Actual Budget data directory (default: ~/.actual)
export ACTUAL_DATA_DIR=&quot;/path/to/your/actual/data&quot;

# If using a remote Actual server
export ACTUAL_SERVER_URL=&quot;https://your-actual-server.com&quot;
export ACTUAL_PASSWORD=&quot;your-password&quot;

# Specific budget to use (optional)
export ACTUAL_BUDGET_SYNC_ID=&quot;your-budget-id&quot;

# How long downloaded data stays fresh before the server re-syncs, in ms
# (default: 60000). Use 0 to sync before every call, or -1 to never sync.
export ACTUAL_SYNC_TTL_MS=&quot;60000&quot;

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.```bash

If server auth and encryption/unlock use different passwords

export ACTUAL_BUDGET_ENCRYPTION_PASSWORD="your-encryption-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&#x27;t be used. Instead, sign in to Actual in a browser and pass the resulting session token. It takes precedence over `ACTUAL_PASSWORD`.```bash
export ACTUAL_SERVER_URL=&quot;https://your-actual-server.com&quot;
export ACTUAL_SESSION_TOKEN=&quot;your-session-token&quot;

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 &quot;X-ACTUAL-TOKEN: &quot; https://your-actual-server.com/account/validate, which should return &quot;validated&quot;: 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:```bash
code ~/Library/Application\ Support/Claude/claude_desktop_config.json


On Windows:```bash
code %APPDATA%\Claude\claude_desktop_config.json

Add the following to your configuration...

a. Using Node.js (npx version):```json

{
"mcpServers": {
"actualBudget": {
"command": "npx",
"args": ["-y", "actual-mcp", "--enable-write"],
"env": {
"ACTUAL_DATA_DIR": "path/to/your/data",
"ACTUAL_PASSWORD": "your-password",
"ACTUAL_SERVER_URL": "http://your-actual-server.com",
"ACTUAL_BUDGET_SYNC_ID": "your-budget-id"
}
}
}
}

a. Using Node.js (local only):

{
  &quot;mcpServers&quot;: {
    &quot;actualBudget&quot;: {
      &quot;command&quot;: &quot;node&quot;,
      &quot;args&quot;: [&quot;/path/to/your/clone/build/index.js&quot;, &quot;--enable-write&quot;],
      &quot;env&quot;: {
        &quot;ACTUAL_DATA_DIR&quot;: &quot;path/to/your/data&quot;,
        &quot;ACTUAL_PASSWORD&quot;: &quot;your-password&quot;,
        &quot;ACTUAL_SERVER_URL&quot;: &quot;http://your-actual-server.com&quot;,
        &quot;ACTUAL_BUDGET_SYNC_ID&quot;: &quot;your-budget-id&quot;
      }
    }
  }
}```

### b. Using Docker (local or remote images):

```json
{
  &quot;mcpServers&quot;: {
    &quot;actualBudget&quot;: {
      &quot;command&quot;: &quot;docker&quot;,
      &quot;args&quot;: [
        &quot;run&quot;,
        &quot;-i&quot;,
        &quot;--rm&quot;,
        &quot;-v&quot;,
        &quot;/path/to/your/data:/data&quot;,
        &quot;-e&quot;,
        &quot;ACTUAL_PASSWORD=your-password&quot;,
        &quot;-e&quot;,
        &quot;ACTUAL_SERVER_URL=https://your-actual-server.com&quot;,
        &quot;-e&quot;,
        &quot;ACTUAL_BUDGET_SYNC_ID=your-budget-id&quot;,
        &quot;sstefanov/actual-mcp:latest&quot;,
        &quot;--enable-write&quot;
      ]
    }
  }
}```

After saving the configuration, restart Claude Desktop.

&gt; 💡 `ACTUAL_DATA_DIR` is optional if you&#x27;re using `ACTUAL_SERVER_URL`.

&gt; 💡 Use `--enable-write` to enable write-access tools.

## Running an SSE Server

To expose the server over a port using Docker:

```bash
docker run -i --rm \
  -p 3000:3000 \
  -v &quot;/path/to/your/data:/data&quot; \
  -e ACTUAL_PASSWORD=&quot;your-password&quot; \
  -e ACTUAL_SERVER_URL=&quot;http://your-actual-server.com&quot; \
  -e ACTUAL_BUDGET_SYNC_ID=&quot;your-budget-id&quot; \
  -e BEARER_TOKEN=&quot;your-bearer-token&quot; \
  sstefanov/actual-mcp:latest \
  --sse --enable-write --enable-bearer```

&gt; ⚠️ Important: When using --enable-bearer, the BEARER_TOKEN environment variable must be set.
&gt; 🔒 This is highly recommended if you&#x27;re exposing your server via a public URL.

## Example Queries

Once connected, you can ask Claude questions like:

- &quot;What&#x27;s my current account balance?&quot;
- &quot;Show me my spending by category last month&quot;
- &quot;How much did I spend on groceries in January?&quot;
- &quot;What&#x27;s my savings rate over the past 3 months?&quot;
- &quot;Which categories am I overspending on this month?&quot;
- &quot;How has my net worth changed over the past year?&quot;
- &quot;Which payees do I spend the most with?&quot;
- &quot;Is my grocery spending trending up or down?&quot;
- &quot;Analyze my budget and suggest areas to improve&quot;
- &quot;What custom reports do I have?&quot;
- &quot;Add a net worth widget to my Spending Plan dashboard&quot;
- &quot;Rearrange my dashboard so the cash flow card is full width at the top&quot;

## Usage with Codex CLI

Example Codex configuration:

In `~/.codex/config.toml`:
```toml
[mcp_servers.actual-budget]
url = &quot;http://localhost:3000&quot;```

Point Codex at the same port you pass to `npm start -- --sse --port &lt;PORT&gt;`.

## Development

For development with auto-rebuild:

```bash
npm run watch```

### Testing the connection to Actual

To verify the server can connect to your Actual Budget data:

```bash
node build/index.js --test-resources```

### Debugging

Since MCP servers communicate over stdio, debugging can be challenging. You can use the [MCP Inspector](https://github.com/modelcontextprotocol/inspector):

```bash
npx @modelcontextprotocol/inspector node build/index.js```

### 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:

```bash
npm run build &amp;&amp; npm run test:e2e

Docker must be installed and running; the test suite pulls and starts the Actual server image automatically.

Project Structure

  • index.ts - Main server implementation
  • types.ts - Type definitions for API responses and parameters
  • prompts.ts - Prompt templates for LLM interactions
  • utils.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.
```

常见问题

7 问
答案由本站依据条目字段整理,不引用上游原文
Actual Budget 怎么安装?

在客户端按下面的安装命令接入:npx @modelcontextprotocol/inspector node build/index.js。装完在客户端配置里引用同一个包或端点。

Actual Budget 怎么在客户端里配置?

它的传输方式未标注,在客户端 MCP 配置里按官方文档填写启动命令和参数,保存后重启客户端生效。

Actual Budget 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Actual Budget 需要 API Key 吗?

资料没有标注鉴权方式,是否需要密钥取决于服务本身,接入前按官方文档确认。

Actual Budget 能提供哪些能力?

资料显示能力标签包括 财务分析、JavaScript、自然语言。具体工具清单以官方文档为准。

Actual Budget 需要什么运行环境?

运行时为 Node.js;属于远程端点,不需要在本地装运行时。

Actual Budget 是本地还是远程?

它是远程端点,连服务地址即可。传输方式为HTTP · 远程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。