# expense-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/justfsl50/expense-mcp  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/expense-mcp

## Description
Personal Expense Tracker MCP Server — expenses, income, budgets & savings goals

## Tools
Capabilities this server exposes over MCP:

- **expense_add** — Save expense or income
- **expense_search** — Filter by text, date, category, amount
- **expense_summary** — today / week / month / year totals
- **expense_delete** — Delete with Pydantic confirmation prompt
- **expense_insights** — Spending patterns and top categories
- **budget_set** — Set monthly category budget
- **budget_list** — View budgets with usage %
- **goal_create** — Create savings goal
- **goal_update** — Add money toward goal
- **goal_list** — View goals with progress bars

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/justfsl50/expense-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
uv pip install git+https://github.com/justfsl50/expense-mcp.git
```

2. Install:

```sh
pip install git+https://github.com/justfsl50/expense-mcp.git
```

3. Install:

```sh
git clone https://github.com/justfsl50/expense-mcp.git
```

4. Run:

```sh
cd expense-mcp
```

5. Install:

```sh
pip install -e .
```

6. Start the server:

```sh
python server.py http
```

## Documentation

## What expense-mcp does

The expense-mcp MCP server provides a personal finance data layer for MCP-compatible clients. It stores expenses and income with categories, descriptions, dates, amounts, users, and transaction types. Separate records support monthly category budgets and savings goals with target amounts, saved amounts, and optional deadlines.

Its tools cover the main tracking workflow:

- Add expenses or income.
- Search transactions by text, date, category, or amount.
- Calculate totals for today, the current week, month, or year.
- Inspect spending patterns, top categories, daily averages, and biggest spending days.
- Set monthly category budgets and check their usage percentages.
- Create savings goals and add money toward them.
- Delete an expense after a Pydantic-based confirmation step.

The server also publishes resources for the current monthly summary, current-month budgets, and all savings goals. Three prompts support guided workflows: monthly review, budget setup, and savings planning.

## How it works

The expense-mcp MCP server is implemented with the Python MCP SDK and FastMCP. SQLAlchemy manages persistence through a database engine and session factory, while Pydantic validates tool inputs and supplies the deletion confirmation schema. Tool annotations identify read-only, destructive, and idempotent operations for clients that use those hints.

Local clients can launch the server over stdio. For remote or multi-client access, the documented HTTP command starts a streamable MCP endpoint at `http://127.0.0.1:8000/mcp`. The database schema contains separate tables for expenses, budgets, and goals, with user IDs available for multi-user setups.

## Setup and configuration

Install from the Git repository with `uv`, regular `pip`, or an editable source checkout. A local client configuration can launch `expense-mcp` with `uv run expense-mcp`. Claude Desktop, Cursor, and Windsurf use the same MCP configuration pattern described in the project documentation.

Configuration uses these environment variables:

- `DATABASE_URL`: Database connection string; defaults to `sqlite:///expenses.db` and can point to PostgreSQL.
- `CURRENCY`: Currency symbol used by the server; defaults to `₹`.
- `DEFAULT_USER`: User ID applied by default; defaults to `default`.

For HTTP mode, run `python server.py http`. The example binds the endpoint to localhost on port 8000.

## Tools and capabilities

The expense-mcp MCP server exposes ten tools. `expense_add`, `budget_set`, `goal_create`, and `goal_update` change stored data. `expense_search`, `expense_summary`, `expense_insights`, `budget_list`, and `goal_list` read or calculate information. `expense_delete` removes a transaction and includes a confirmation prompt before the destructive action.

Read-only resources provide a current month summary, the current month's budgets, and all savings goals. The `monthly_review`, `budget_setup`, and `savings_plan` prompts give clients structured starting points for common finance tasks.

## Limitations and notes

The documented default database is a local SQLite file, while PostgreSQL is supported through the database URL. The HTTP example uses a loopback address, so using the server remotely requires adapting the deployment and client configuration.

_Full upstream README: https://allmcps.com/mcp/expense-mcp/readme_

