Finance MCP
Finance MCP
Personal finance management via Model Context Protocol (MCP).
Overview
This MCP server provides tools for managing personal finances:
Accounts: Bank accounts, credit cards, savings
Transactions: Income, expenses, transfers
Debts: Track debts and payments
Monthly Payments: Installments (MSI) tracking
Fixed Expenses: Recurring monthly expenses
Active Loans: Money others owe to you
Savings: Goals and movement tracking
Budgets: Monthly budget limits
Assets: Personal asset inventory
Installation
# Clone the repository
git clone https://github.com/FrancoMeneses/finance-mcp.git
cd finance-mcp
# Install dependencies
pip install -r requirements.txt
# Initialize the database (optional - server creates it on first run)
sqlite3 finance.db < schema/init.sqlUsage
With Hermes Agent
Add to ~/.hermes/config.yaml:
mcp_servers:
finance:
command: "python3"
args: ["/path/to/finance-mcp/src/finance/server.py"]
env:
DB_PATH: "/path/to/finance.db"Standalone
# Set database path
export DB_PATH="/path/to/finance.db"
# Run the server
python src/finance/server.pyAvailable Tools
Accounts
list_accounts- List all accountsget_account- Get account detailscreate_new_account- Create a new accountupdate_account_balance- Update account balance
Categories
list_categories- List all categoriesget_category- Get category details
Transactions
list_transactions- List transactions with filtersadd_transaction- Record a new transaction
Debts
list_debts- List debtsget_debt- Get debt detailsadd_debt- Register a new debtrecord_debt_payment- Record a debt payment
Monthly Payments (MSI)
list_monthly_payments- List installmentsadd_monthly_payment- Register new installment
Fixed Expenses
list_fixed_expenses- List fixed expensesadd_fixed_expense- Add fixed expense
Active Loans
list_active_loans- List loans given to othersadd_active_loan- Register a new loanrecord_loan_payment- Record payment received
Savings
list_savings- List savings goalsget_savings_goal- Get savings goal detailsadd_savings_goal- Create savings goalrecord_savings_movement- Deposit/withdraw from savingslist_savings_movements- View savings history
Budgets
list_budgets- List budgets
Assets
list_assets- List personal assetsget_assets_total- Get total asset value
Summaries
get_account_overview- Quick account summaryget_monthly_report- Monthly income/expense report
Database Schema
See schema/init.sql for the complete database schema.
Project Structure
finance-mcp/
├── README.md
├── requirements.txt
├── schema/
│ └── init.sql # Database schema
├── src/
│ └── finance/
│ ├── __init__.py
│ ├── server.py # MCP server (FastMCP)
│ ├── db.py # Database access layer
│ └── models.py # Pydantic validation models
├── tests/
│ └── ...
└── docs/
└── architecture.mdLicense
MIT