actual-mcp
Summary: This MCP server connects an LLM to your Actual Budget data, letting you query accounts, transactions, budgets, reports, and dashboards in natural language (read-only here; write tools require --enable-write).
Transactions & accounts —
get-transactions(filter by account, date range, amount, category, or payee),get-accounts(balances + IDs),balance-history(balance over time).Reporting & analytics —
spending-by-category,monthly-summary(income/expenses/savings),budget-vs-actual,net-worth(assets/liabilities over time),category-trends(month-over-month direction),spending-by-payee,cash-flow(monthly or weekly).Budget data —
get-budget-months(available months) andget-budget-month(budgeted vs. spent per category for a given month).Categories, payees & rules —
get-grouped-categories,get-payees,get-rules.Custom reports & dashboards —
get-custom-reports,get-dashboards(pages and their widgets).Notes — Analytics tools return JSON with amounts as integer cents; write operations (create/update/delete for transactions, categories, payees, rules, reports, dashboards) exist in the full server but require enabling write access.
Enables access to personal financial data from Actual Budget, including accounts, transactions, and financial metrics. Provides tools for retrieving filtered transactions, generating spending breakdowns by category, viewing monthly summaries, and analyzing budget performance.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@actual-mcp show me my spending by category for last month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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).
Related MCP server: monarch-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:
docker pull sstefanov/actual-mcp:latestLocal setup
Clone the repository:
git clone https://github.com/s-stefanov/actual-mcp.git
cd actual-mcpInstall dependencies:
npm installBuild the server:
npm run buildBuild the local docker image (optional):
docker build -t <local-image-name> .Configure environment variables (optional):
# Path to your Actual Budget data directory (default: ~/.actual)
export ACTUAL_DATA_DIR="/path/to/your/actual/data"
# If using a remote Actual server
export ACTUAL_SERVER_URL="https://your-actual-server.com"
export ACTUAL_PASSWORD="your-password"
# Specific budget to use (optional)
export ACTUAL_BUDGET_SYNC_ID="your-budget-id"
# 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="60000"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.
# 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't be used. Instead, sign in to Actual in a browser and pass the resulting session token. It takes precedence over ACTUAL_PASSWORD.
export ACTUAL_SERVER_URL="https://your-actual-server.com"
export ACTUAL_SESSION_TOKEN="your-session-token"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:
code ~/Library/Application\ Support/Claude/claude_desktop_config.jsonOn Windows:
code %APPDATA%\Claude\claude_desktop_config.jsonAdd the following to your configuration...
a. Using Node.js (npx version):
{
"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):
```json
{
"mcpServers": {
"actualBudget": {
"command": "node",
"args": ["/path/to/your/clone/build/index.js", "--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"
}
}
}
}b. Using Docker (local or remote images):
{
"mcpServers": {
"actualBudget": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"/path/to/your/data:/data",
"-e",
"ACTUAL_PASSWORD=your-password",
"-e",
"ACTUAL_SERVER_URL=https://your-actual-server.com",
"-e",
"ACTUAL_BUDGET_SYNC_ID=your-budget-id",
"sstefanov/actual-mcp:latest",
"--enable-write"
]
}
}
}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:
docker run -i --rm \
-p 3000:3000 \
-v "/path/to/your/data:/data" \
-e ACTUAL_PASSWORD="your-password" \
-e ACTUAL_SERVER_URL="http://your-actual-server.com" \
-e ACTUAL_BUDGET_SYNC_ID="your-budget-id" \
-e BEARER_TOKEN="your-bearer-token" \
sstefanov/actual-mcp:latest \
--sse --enable-write --enable-bearer⚠️ 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:
[mcp_servers.actual-budget]
url = "http://localhost:3000"Point Codex at the same port you pass to npm start -- --sse --port <PORT>.
Development
For development with auto-rebuild:
npm run watchTesting the connection to Actual
To verify the server can connect to your Actual Budget data:
node build/index.js --test-resourcesDebugging
Since MCP servers communicate over stdio, debugging can be challenging. You can use the MCP Inspector:
npx @modelcontextprotocol/inspector node build/index.jsE2E 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:
npm run build && npm run test:e2eDocker 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.
Available Tools
17 toolsbalance-historyC
Get account balance history over time
Inputs: months, accountId, includeOffBudget.
budget-vs-actualB
Compare budgeted amounts against actual spending per category, for recent months. Returns JSON; amounts are integer cents.
Inputs: months (required), includeHidden (required), categoryGroupName.
cash-flowB
Report income, expenses, and net cash flow per month or week. Returns JSON; amounts are integer cents.
Inputs: months (required), interval (required), accountId.
category-trendsB
Show how spending in each category changes month over month, with trend direction. Returns JSON; amounts are integer cents.
Inputs: months (required), includeIncome (required), categoryNames, categoryGroupName.
get-accountsA
Retrieve a list of all accounts with their current balance and ID.
Inputs: no named parameters.
get-budget-monthA
Retrieve budget data for a specific month, including budgeted amounts, spending, and balances per category.
Inputs: month (required).
get-budget-monthsA
Retrieve a list of all available budget months in YYYY-MM format.
Inputs: no named parameters.
get-custom-reportsA
Retrieve every saved custom report from the budget's Reports section
Inputs: no named parameters.
get-dashboardsA
Retrieve every dashboard page and the widgets laid out on it. These are the dashboards under the Reports section of the sidebar.
Inputs: no named parameters.
get-grouped-categoriesA
Retrieve a list of all category groups with their id, name, type and category list.
Inputs: no named parameters.
get-payeesA
Retrieve a list of all payees with their id, name, categoryId and transferAccountId.
Inputs: no named parameters.
get-rulesA
Retrieve a list of all rules. PS amount comes in cents: positive for deposit, negative for payment
Inputs: no named parameters.
get-transactionsB
Get transactions with optional filtering, for one account or across all accounts if accountId is omitted
Inputs: limit, endDate, accountId, maxAmount, +4 more.
monthly-summaryC
Get monthly income, expenses, and savings
Inputs: months (required), accountId.
net-worthB
Track assets, liabilities, and net worth across all accounts over time. Returns JSON; amounts are integer cents.
Inputs: months (required), includeClosed (required), includeOffBudget (required).
spending-by-categoryC
Get spending breakdown by category for a specified date range
Inputs: endDate, accountId, startDate, includeIncome.
spending-by-payeeB
Rank payees by how much money was spent with (or received from) each one. Returns JSON; amounts are integer cents.
Inputs: limit (required), includeIncome (required), endDate, accountId, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools have distinct reporting purposes, but monthly-summary and cash-flow both cover income/expenses, while balance-history and net-worth both track balances over time. Several category-spending tools also overlap conceptually, though their descriptions help differentiate them.
All names use consistent kebab-case, which is predictable and readable. However, action naming is mixed: retrieval tools use a get- prefix while reporting tools omit it, creating a minor inconsistency.
17 tools is slightly heavy for a finance reporting server, but each tool covers a meaningful reporting dimension such as categories, payees, cash flow, net worth, and budget months. There is little obvious filler, though some overlap exists.
The surface is entirely read-only and covers many reporting and retrieval views, but it lacks create/update/delete operations for transactions, accounts, payees, and budgets. If the server is intentionally read-only, coverage is good; otherwise it has notable lifecycle gaps.
Maintenance
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server for interacting with YNAB (You Need A Budget). Provides tools for accessing budget data through MCP-enabled clients like Claude Desktop.4MIT
- FlicenseBqualityDmaintenanceMCP server that bridges Claude to Monarch Money for personal-finance analysis and lightweight edits.18-
- AlicenseAqualityAmaintenanceLets AI assistants read and manage a self-hosted Actual Budget: accounts, transactions, budgets, categories, payees, rules, schedules and reports. Runs over stdio for Claude Desktop and Claude Code, or over HTTP with Bearer or OIDC auth for LibreChat and LobeChat.154,231 npm82MIT
- AlicenseBqualityAmaintenanceAn MCP server that connects Actual Budget to Claude, enabling users to manage budgets, transactions, and spending insights through natural language.37263 npm20MIT