Actual Budget MCP Server
# Actual Budget MCP Server
A Model Context Protocol (MCP) server for [Actual Budget](https://actualbudget.com/) that lets you query your budget data through Claude or other MCP-compatible AI assistants.
## Features
- **Budget Overview** - Get current month's budget with spending vs budgeted
- **Transaction Management** - Query transactions, add new ones, categorize existing
- **Spending History** - Analyze spending patterns over time
- **Discretionary Spending** - Track discretionary spending against a cap
- **Age of Money** - YNAB-style metric showing how long money sits before being spent
- **Home Equity** - Track home equity breakdown (deposit, principal paid, appreciation)
## Setup
### 1. Install dependencies
```bash
npm install
```
### 2. Configure environment
Copy `.env.example` to `.env` and fill in your Actual Budget server details:
```bash
cp .env.example .env
```
Required settings:
- `ACTUAL_SERVER_URL` - Your Actual Budget server URL
- `ACTUAL_PASSWORD` - Your server password
- `ACTUAL_SYNC_ID` - Your budget's sync ID
**Finding your Sync ID:**
1. Open Actual Budget
2. Go to Settings → Show advanced settings
3. Look for "Sync ID" - it's a UUID like `6e1dbd4a-88ae-4edf-bd8f-ab1c031057b2`
Optional (for home equity tracking):
- `HOME_PURCHASE_PRICE` - Original purchase price
- `HOME_INITIAL_LOAN` - Initial loan amount
- `HOME_VALUE_ACCOUNT` - Name of your home value asset account
- `HOME_LOAN_ACCOUNT` - Name of your mortgage liability account
### 3. Build
```bash
npm run build
```
### 4. Add to Claude Code
Add to your `~/.claude.json`:
```json
{
"mcpServers": {
"actual-budget": {
"type": "stdio",
"command": "node",
"args": ["/path/to/actual-budget-mcp/build/index.js"]
}
}
}
```
Restart Claude Code to load the MCP.
## Available Tools
### Budget Queries
- `get_budget` - Current month's budget overview
- `get_budget_month` - Budget for a specific month
- `get_categories` - List all categories
- `get_accounts` - List accounts with balances
### Transactions
- `get_transactions` - Query transactions by account and date range
- `add_transaction` - Add a new transaction
- `categorize_transaction` - Update a transaction's category
### Analytics
- `get_spending_history` - Spending by category over time
- `get_discretionary_spending` - Track against discretionary cap
- `get_age_of_money` - YNAB-style Age of Money metric
- `get_home_equity` - Home equity breakdown
## Example Usage
Once configured, you can ask Claude things like:
- "What's my budget looking like this month?"
- "Add a $50 expense to my credit card for groceries at Woolworths"
- "What's my age of money?"
- "Show me my home equity breakdown"
- "How much have I spent on dining out in the last 6 months?"
## Requirements
- Node.js 18+
- Running Actual Budget server
- Claude Code or other MCP-compatible client
## License
ISC
TDQS
Scored across 11 tools
Most tools target distinct resources or time scopes: get_budget (current month), get_budget_month (arbitrary month), get_spending_history (multi-month trend), and get_discretionary_spending (single capped metric) are differentiated by their descriptions. The two write tools (add_transaction vs categorize_transaction) are also clearly separated, though a few read tools around budget data could invite mild hesitation about which to call.
Every tool follows a consistent snake_case verb_noun pattern, with reads uniformly prefixed with get_ (get_categories, get_budget, get_transactions, etc.) and mutations using clear action verbs (add_transaction, categorize_transaction). No mixed conventions or vague standalone verbs.
Eleven tools is well within the ideal 3-15 range for a personal finance/budget domain. Each tool maps to a recognizable read or write operation, and even the niche analytics (get_home_equity, get_age_of_money) are distinct enough to earn their place.
The surface covers reading accounts, categories, budgets, and transactions plus adding and recategorizing transactions, but there is no way to delete or fully update a transaction, and no operation to assign/modify budget amounts per category — a core action for a budget app. get_home_equity is oddly domain-specific relative to the missing budget-editing capability.