Skip to content

yashisrani/FinanceFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ฐ FinanceFlow

Your Personal Finance Analyzer - 100% Offline, 100% Private, 100% Yours

MCP Server TypeScript NitroStack License

Built on NitroStack, Codescope exposes analysis results as MCP tools and renders interactive visualizations via built-in widgets.


demo-video

๐Ÿš€ The Problem

You download your bank statement. It contains your salary, rent, food expenses, medical bills, and every financial decision you've made. Then you upload it to some AI service. Where does it go? Who sees it? How long is it stored?

And then you get hit with the bill - $20/month for Mint, $15/month for YNAB, $10/month for Copilot Money... $540/year just to understand your own money.

โœจ The Solution

FinanceFlow is an MCP (Model Context Protocol) server that analyzes your bank transactions entirely on your machine. No cloud. No API keys. No data leaving your computer. No monthly subscriptions. Just pure, private financial intelligence.

๐Ÿ”’ Your transactions never leave your computer. Period.

๐Ÿ’ฐ Stop paying $500+/year for SaaS finance tools. FinanceFlow is free forever.


๐ŸŽฏ What It Does

FinanceFlow transforms your bank CSV into actionable financial insights:

  • ๐Ÿ“Š Detect Subscriptions - Find all recurring charges automatically
  • ๐Ÿ’ธ Find Unused Subscriptions - Discover money you're wasting
  • ๐Ÿ“ˆ Price Increase Alerts - Catch subscription price hikes
  • ๐Ÿ”„ Duplicate Detection - Find billing errors and double charges
  • ๐Ÿ“‰ Spending Trends - Analyze your spending patterns over time
  • ๐Ÿ‡ฎ๐Ÿ‡ณ Tax Deductions - Indian tax rules (Section 80C, 80D, 80TTA, etc.)
  • ๐ŸŽฏ Savings Goals - Simulate and plan your savings targets
  • ๐Ÿ“‹ Beautiful Reports - Generate HTML dashboards with D3.js charts
  • ๐Ÿ” Person Search - Track money sent to specific people

๐Ÿ›ก๏ธ Privacy First

Feature FinanceFlow Cloud AI Services
Data Location Your computer only Unknown servers
API Key Required โŒ No โœ… Yes
Data Retention Never stored Indefinitely
Third-party Access None Unknown
Offline Capable โœ… Yes โŒ No
Cost Free forever $20-50/month

๐Ÿ“ฆ Installation

Prerequisites

Quick Start

# Clone the repository
git clone https://github.com/yourusername/financeflow.git
cd financeflow

# Install dependencies
npm install

# Build the project
npm run build

# Start the server
npm run dev

That's it! No API keys, no configuration, no cloud setup.


๐ŸŽฌ Demo

Watch FinanceFlow in action:

# 1. Start the server
npm run dev

# 2. Open NitroStack Studio
# 3. Connect to the running server
# 4. Try these prompts:

Example Prompts

Import my bank statement from fixtures/indian-bank-statement.csv
Detect all my subscriptions
Find unused subscriptions for the last 2 months
Find tax deductions for 2026
Can I save โ‚น100,000 in 4 months to buy a MacBook?
Search all transactions with Rahul
Search all transactions with Priya
Generate a savings report and save it to /tmp/savings-report.html

๐Ÿ› ๏ธ Tools (13 Total)

FinanceFlow provides 13 powerful MCP tools:

๐Ÿ“Š Analysis Tools

Tool Description
import-transactions Import CSV and get basic statistics
categorize-transactions Group transactions by category
detect-subscriptions Find all recurring subscription charges
find-unused-subscriptions Detect subscriptions you're not using
detect-price-increases Catch subscription price hikes
find-duplicate-charges Find billing errors and duplicates
analyze-spending-trends Track spending patterns over time

๐Ÿ’ฐ Optimization Tools

Tool Description
find-tax-deductions Find Indian tax deductions (80C, 80D, 80TTA, etc.)
simulate-savings-goal Simulate savings goal feasibility

๐Ÿ“„ Report Tools

Tool Description
generate-savings-report Generate HTML savings dashboard
generate-budget-report Generate monthly budget breakdown
validate-csv-format Validate CSV structure

๐Ÿ” Search Tools

Tool Description
search-transactions-by-person Search transactions by person name

๐Ÿ“‹ CSV Format

FinanceFlow accepts CSV files with these columns (auto-detected):

Date,Merchant,Amount,Category,Description
2026-01-01,TechCorp India Pvt Ltd,50000,Income,Monthly Salary
2026-01-05,Swiggy,345,Food,Food Delivery
2026-01-10,Netflix,649,Entertainment,Subscription

Flexible Column Detection:

  • Date: Date, Transaction Date, Posting Date
  • Merchant: Merchant, Vendor, Payee, Name
  • Amount: Amount, Debit, Credit, Total
  • Category: Category, Type, Group
  • Description: Description, Memo, Notes

๐Ÿ‡ฎ๐Ÿ‡ณ Indian Tax Deductions

FinanceFlow supports comprehensive Indian tax deduction detection:

  • Section 80C - Life Insurance, PPF, ELSS, Tuition fees (up to โ‚น1.5 lakh)
  • Section 80D - Health Insurance Premium (โ‚น25,000 for self, โ‚น50,000 for senior citizens)
  • Section 80TTA - Savings Account Interest (up to โ‚น10,000)
  • Section 24(b) - Home Loan Interest (up to โ‚น2 lakh)
  • Section 80G - Charitable Donations (50% or 100% deduction)
  • Section 80E - Education Loan Interest (no upper limit)
  • Section 80CCD(1B) - NPS Additional Contribution (โ‚น50,000)
  • Section 80DDB - Medical Treatment for Specified Diseases
  • Business Expenses - Software, tools, and work-from-home expenses
  • HRA Exemption - House Rent Allowance (not in bank statement, but suggested)

๐Ÿ“Š Sample Output

Subscription Detection

โœ… Active subscriptions: 17
โœ… Unused subscriptions: 2
โœ… Price increases: 1

Unused:
  - Daily Hunt: โ‚น99 | Wasted: โ‚น396
  - Duolingo India: โ‚น199 | Wasted: โ‚น398

Price Increase:
  - Spotify India: โ‚น119 โ†’ โ‚น199 (67.2%)

Tax Deductions (India)

โœ… Total deductions: โ‚น6,490
โœ… Estimated savings: โ‚น324.50

Categories:
  - Section 80TTA - Savings Account Interest: โ‚น2,700
  - Business Expenses - Software & Tools: โ‚น3,790

Savings Goal Simulation

Goal: Buy MacBook (โ‚น100,000 in 4 months)
โœ… Possible: Yes
โœ… Monthly needed: โ‚น25,000
โœ… Current disposable: โ‚น28,773
โœ… Gap: โ‚น0

Person Search

Person: Rahul
โœ… Total transactions: 13
โœ… Total amount: โ‚น4,250
โœ… Average: โ‚น326.92

Person: Priya
โœ… Total transactions: 23
โœ… Total amount: โ‚น3,443
โœ… Average: โ‚น149.70

๐ŸŽจ Dashboard Widget

FinanceFlow includes a beautiful dashboard widget that displays:

  • ๐Ÿ“Š Summary cards (income, expenses, potential savings)
  • ๐Ÿ’ณ Active subscriptions with amount badges
  • โš ๏ธ Unused subscription alerts (red warning)
  • ๐Ÿ“ˆ Price increase badges (orange "โ†‘60%")
  • ๐Ÿ’ฐ Tax deductions found count
  • ๐ŸŽฏ Goal progress bar
  • ๐Ÿ–ฑ๏ธ Click cards for detailed views

๐Ÿ“„ HTML Reports

Generate professional HTML reports with:

  • Savings Report: Category pie charts, unused subscriptions, price increases, duplicates, tax deductions, goal tracker
  • Budget Report: Income vs expenses bar charts, category breakdown, top merchants, tax deductions summary

Reports use D3.js for beautiful, interactive charts.


๐Ÿ”ง Technical Details

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   MCP Client (NitroStack Studio)    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
               โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚      FinanceFlow MCP Server         โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Analyzer Module                    โ”‚
โ”‚  โ”œโ”€ TransactionService              โ”‚
โ”‚  โ””โ”€ AnalyzerTools (7 tools)         โ”‚
โ”‚                                     โ”‚
โ”‚  Optimizer Module                   โ”‚
โ”‚  โ”œโ”€ OptimizerService                โ”‚
โ”‚  โ””โ”€ OptimizerTools (2 tools)        โ”‚
โ”‚                                     โ”‚
โ”‚  Report Tools (3 tools)             โ”‚
โ”‚  Search Tools (1 tool)              โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Tech Stack

  • Runtime: Node.js 18+
  • Language: TypeScript 5.3
  • Framework: NitroStack
  • Protocol: MCP (Model Context Protocol)
  • Charts: D3.js v7
  • Validation: Zod

๐Ÿš€ Usage with NitroStack Studio

  1. Download NitroStack Studio: nitrostack.ai/studio
  2. Start FinanceFlow: npm run dev
  3. Connect: NitroStack auto-detects the running server
  4. Chat: Use natural language to analyze your finances

๐Ÿ“ Example Workflow

# 1. Export your bank statement as CSV
# 2. Start FinanceFlow
npm run dev

# 3. In NitroStack Studio, ask:
"Import my bank statement from ~/Downloads/statement.csv"
"Detect all my subscriptions"
"Find unused subscriptions"
"Generate a savings report"

# 4. Open the generated HTML report
open /tmp/savings-report.html

๐Ÿค Contributing

Contributions are welcome! Areas for improvement:

  • ๐Ÿฆ Support more bank CSV formats
  • ๐Ÿ“Š Add more chart types
  • ๐ŸŽจ Enhance dashboard widget
  • ๐Ÿงช Add more test cases
  • ๐ŸŒ Add support for other countries' tax rules

๐Ÿ“„ License

MIT License - feel free to use this project however you want.


๐Ÿ™ Built With


๐Ÿ’ฌ Community


โญ Star History

If FinanceFlow helps you take control of your finances privately, consider giving it a star!


๐Ÿ” Security

  • โœ… No data leaves your machine
  • โœ… No external API calls
  • โœ… No telemetry or analytics
  • โœ… Open source - audit the code yourself
  • โœ… Runs entirely offline

๐ŸŽฏ Who Is This For?

  • Privacy-conscious individuals who want financial insights without compromising data
  • Developers who want to build on top of a solid MCP foundation
  • Indian users looking for tax deduction detection
  • Anyone tired of subscription services eating their money
  • Freelancers tracking business expenses
  • Families managing shared finances

๐Ÿšฆ Quick Commands

npm run dev          # Start development server
npm run build        # Build for production
npm start            # Run production server
npm run widget       # Widget development

๐Ÿ”— Links

Made with โค๏ธ for privacy-conscious finance enthusiasts

About

Your Personal Finance Analyzer - 100% Offline, 100% Private, 100% Yours

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors