Skip to main content
Glama
lantip

Personal Finance Tracker

by lantip
README.md
# Personal Finance Tracker (MCP Server)

A lightweight [MCP server](https://github.com/multiprompt/mcp) for tracking **personal** expenses, income, and budget summaries using SQLite.  
This server is designed for **individuals or households** — not for businesses or stock analysis.

---

## ✨ Features

- šŸ“Œ Record personal expenses and income
- šŸ“Š View monthly summaries and budget overviews
- šŸ“ˆ Analyze monthly spending trends
- āš™ļø Configurable database path (`DB_PATH`)

---

## šŸ“¦ Installation

Install from PyPI:

```bash
pip install personal-finance-tracker
```

---

## šŸš€ Usage

You can run the server using:

```bash
uvx personal-finance-tracker
```

Or configure it in a client like [Cursor](https://cursor.so) or other MCP-compatible tools:

```jsonc
{
  "mcpServers": {
    "personal-finance-tracker": {
      "command": "uvx",
      "args": ["personal-finance-tracker"],
      "env": {
        "DB_PATH": "/absolute/path/to/your/finance.db"
      }
    }
  }
}
```

---

## šŸ“ Environment Variables

| Variable  | Description                              | Default         |
|-----------|------------------------------------------|-----------------|
| `DB_PATH` | Path to the SQLite database file         | `expenses.db`   |

The database file is created and initialized automatically if it doesn't exist.

---

## 🧠 Prompt Behavior

This MCP server is **specifically scoped for personal finance**. The underlying LLM is guided to:

āœ… Use these tools when:
- The user asks about **daily expenses**, **personal income**, **budgeting**, **household savings**

🚫 Avoid using for:
- Business accounting
- Stock market analysis
- Corporate finance data

---

## šŸ“‚ Project Structure

```
personal-finance-tracker/
ā”œā”€ā”€ src/
│   └── personal_finance_tracker/
│       └── main.py
ā”œā”€ā”€ pyproject.toml
ā”œā”€ā”€ README.md
```

---

## šŸ“ License

ABRMS License