Expense MCP logo

Expense MCP

Track expenses, income, budgets, and savings goals through MCP tools backed by SQLite or PostgreSQL.

Install Expense MCP

Run the project’s own setup commands, in order.

Setup steps from the project

expense-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    uv pip install git+https://github.com/justfsl50/expense-mcp.git
    
  2. 2. Install
    pip install git+https://github.com/justfsl50/expense-mcp.git
    
  3. 3. Install
    git clone https://github.com/justfsl50/expense-mcp.git
    
  4. 4. Run
    cd expense-mcp
    
  5. 5. Install
    pip install -e .
    
  6. 6. Start the server
    python server.py http
    

Overview

The expense-mcp MCP server gives AI clients tools for recording and searching expenses or income, reviewing totals, managing budgets, and tracking savings goals. It uses SQLite by default or a PostgreSQL database configured through DATABASE_URL, with stdio for local use and streamable HTTP for remote access. Reach for it when an agent needs personal finance tracking, periodic spending summaries, budget usage, or savings progress. The server also exposes summary, budget, and goal resources plus prompts for monthly reviews, budget setup, and savings planning.

Use cases

  • Record daily expenses and income
  • Review spending totals by period
  • Monitor category budget usage
  • Track progress toward savings goals

Key features

  • Expense and income tracking
  • Date, category, amount, and text search
  • Period-based spending summaries
  • Monthly category budgets with usage percentages
  • Savings goals with progress tracking
  • SQLite or PostgreSQL storage

Tools10

What Expense MCP lets your agent do. Expand a tool for its parameters.

Self-reported~103 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 84d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9/11/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit9mo agoMost recent push to the default branch.
Tools exposed10Callable tools this server registers over MCP.

How Expense MCP works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Expense MCP

expense-mcp is an MCP server that connects AI clients to a SQLite or PostgreSQL expense database. Its main tools record and search expenses or income, summarize spending, manage budgets, and create or update savings goals. It also provides spending insights and a confirmation step for deletions.

Install it with uv or pip from the GitHub repository, or clone the source and run an editable installation. The documented commands use `uv pip install git+https://github.com/justfsl50/expense-mcp.git`, `pip install` with the same URL, or `pip install -e .` after cloning.

Yes, expense-mcp works with Cursor through its MCP settings. Use the same server configuration pattern documented for Claude Desktop, launching the server with `uv run expense-mcp` and optionally setting `DATABASE_URL`, `CURRENCY`, and `DEFAULT_USER`.

Yes, expense-mcp can use PostgreSQL by setting `DATABASE_URL` to a PostgreSQL connection string. SQLite is the default with `sqlite:///expenses.db`, while a PostgreSQL value such as `postgresql://user:pass@localhost:5432/expenses` selects the PostgreSQL database.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewExpense MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/expense-mcp?style=directory)](https://allmcps.com/mcp/expense-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/expense-mcp"><img src="https://allmcps.com/api/badge/expense-mcp?style=directory" alt="Expense MCP on AllMCPs" /></a>