Query Monarch Money for financial data via CLI wrapper scripts.
```bash
pip install monarchmoney
```
```bash
python3 scripts/login_setup.py
```
Prompts for email, password, and MFA code if enabled. Saves session to ~/.monarchmoney/mm_session.pickle. Sessions last months.
All commands output JSON. Pipe through jq for filtering.
python3 scripts/monarch.py accounts
Returns: id, displayName, type, subtype, currentBalance, institution, isHidden, includeInNetWorth.
# Last 30 days (default)
python3 scripts/monarch.py transactions
# Custom date range
python3 scripts/monarch.py transactions --start 2026-01-01 --end 2026-01-31
# Limit results
python3 scripts/monarch.py transactions --limit 50
Returns: id, date, amount, merchant, category, account, notes, isPending, isRecurring.
python3 scripts/monarch.py budgets
Returns: monthlyBudget, totalSpent, per-category breakdown (budgetAmount, spentAmount, remainingAmount).
# Current month
python3 scripts/monarch.py cashflow
# Specific month
python3 scripts/monarch.py cashflow --month 2026-01
Returns: income, expenses, savings, savingsRate for the specified month.
python3 scripts/monarch.py refresh
Triggers a sync with all linked financial institutions.
~/.monarchmoney/mm_session.pickle and re-run scripts/login_setup.py.monarchmoney is installed in the Python environment being used.共 1 个版本