Labsco
s-stefanov logo

Actual Budget

β˜… 175

from s-stefanov

Integrate Actual Budget with LLM assistants to manage your personal finances.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredAdvanced setup

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

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

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

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?"
  • "Analyze my budget and suggest areas to improve"

Development

For development with auto-rebuild:

Copy & paste β€” that's it
npm run watch

Testing the connection to Actual

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

Copy & paste β€” that's it
node build/index.js --test-resources

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. You can use the MCP Inspector:

Copy & paste β€” that's it
npx @modelcontextprotocol/inspector node build/index.js

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

Fork Modifications

This fork includes the following changes from the upstream s-stefanov/actual-mcp:

  • @actual-app/api bumped from ^26.3.0 to ^26.5.0 β€” updates the Actual Budget API client to the latest version for compatibility with newer Actual server releases.
  • Balance cutoff fix β€” getAccountBalance calls now pass a far-future cutoff date (2099-01-01) so that future-dated pending transactions are included in balance calculations. Without this fix, banks that pre-date pending transactions (showing them in the future) would cause reported balances to be lower than the actual cleared balance.

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.