Skip to main content
Glama
Monthly Expense MCP Server

Monthly Expense MCP Server

by Harshitnehra

Monthly Expense MCP Server

A local MCP (Model Context Protocol) server that tracks your monthly expenses. Data is stored in expenses.json right next to server.py — no external database needed.

Tools it exposes

  • add_expense — add an expense (date, category, amount, description)

  • list_expenses — list expenses, optionally filtered by month/category

  • delete_expense — remove an expense by id

  • monthly_summary — total + per-category breakdown for a month, plus budget status if you've set one

  • set_budget — set/update a budget for a given month

  • list_categories — see all categories you've used

Related MCP server: Expense Tracker MCP

Setup with uv

  1. Install uv if you don't already have it: https://docs.astral.sh/uv/getting-started/installation/

  2. Create the environment and install FastMCP. Open a terminal/PowerShell in this folder and run:

uv sync


3. **Run the server** (it waits for MCP messages on stdin, which is normal):

uv run python server.py


Press Ctrl+C to stop it.

The server is implemented in `server.py` with FastMCP. `uv sync` creates the
local `.venv`, installs the locked dependencies, and generates `uv.lock`.

## Connect it to Claude Desktop

Open your Claude Desktop config file:

- Windows: `%APPDATA%\Claude\claude_desktop_config.json`

Add (or merge into) the `mcpServers` section:

```json
{
"mcpServers": {
 "monthly-expense": {
   "command": "C:\\Users\\reenu\\Desktop\\monthly-expense-mcp\\.venv\\Scripts\\python.exe",
   "args": [
     "C:\\Users\\reenu\\Desktop\\monthly-expense-mcp\\server.py"
   ]
 }
}
}

Save the file and fully restart Claude Desktop. You should then see the expense tools available (look for the 🔨 tools icon in a new chat).

Example usage once connected

  • "Add an expense: $45.20 for groceries on 2026-08-15"

  • "Show me all my expenses for August 2026"

  • "Set my August budget to $2000"

  • "Give me my August spending summary"

  • "Delete expense #3"

Notes

  • All data lives in expenses.json in this folder — back it up if you care about the history. Delete that file to start fresh.

  • This server only runs locally; it doesn't send your data anywhere.

Available Tools

6 tools
add_expenseC

Add a new expense entry. Date must be in YYYY-MM-DD format.

Inputs: date (required), amount (required), category (required), description.

delete_expenseB

Delete an expense by its ID.

Inputs: id (required).

list_categoriesA

List all distinct expense categories currently in use.

Inputs: no named parameters.

list_expensesA

List expenses, optionally filtered by month (YYYY-MM) and/or category.

Inputs: month, category.

monthly_summaryA

Get a summary (total + per-category breakdown) for a given month (YYYY-MM). Also shows budget status if a budget is set.

Inputs: month (required).

set_budgetA

Set (or update) the budget for a given month (YYYY-MM).

Inputs: month (required), amount (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a distinct action or resource: adding, listing, deleting expenses, summarizing months, setting budgets, and listing categories. There is no meaningful overlap that would cause an agent to select the wrong tool.

    Naming Consistency4/5

    Most tools follow a clear verb_noun pattern: add_expense, list_expenses, delete_expense, set_budget, list_categories. The one deviation is monthly_summary, which uses a noun phrase instead of a verb_prefix, but it is still readable and predictable.

    Tool Count5/5

    Six tools is well-scoped for a monthly expense management server. Each tool covers a necessary part of the domain without redundancy or bloat.

    Completeness4/5

    The tool surface covers creating, reading, and deleting expenses, plus monthly summaries and budgeting. The main gap is the lack of an update_expense tool, but users can work around it by deleting and re-adding an expense.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Enables tracking and managing personal expenses through a local SQLite database. Supports adding, editing, deleting, listing, and summarizing expenses by category, as well as managing credit accounts.
      6
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables tracking of personal expenses with tools to add, list, update, delete, and summarize expenses by category.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables natural language management of personal expenses, including adding, listing, and summarizing expenses with local SQLite storage.
      -
    • F
      license
      A
      quality
      D
      maintenance
      Enables tracking personal expenses by adding, listing, deleting, and summarizing expenses by day or month, stored locally in a JSON file.
      4
      -