Skip to main content
Glama
sppandita85

mcp-expense-tracker

by sppandita85

mcp-expense-tracker

An MCP (Model Context Protocol) server for tracking expenses. Expenses are stored in a local JSON file, and the server exposes tools for adding expenses and summarizing totals by day or month.

Two equivalent implementations are included:

  • src/ — TypeScript/Node, stdio transport. Use this with Claude Code or Claude Desktop.

  • server.py — Python (FastMCP). Use this to deploy on FastMCP Cloud so it's reachable as a remote connector from claude.ai.

Tools

  • add_expense — record an expense (amount, category, optional description, optional date defaulting to today)

  • list_expenses — list expenses, optionally filtered by start_date, end_date, category

  • delete_expense — delete an expense by id

  • summarize — get the total (and per-category breakdown) for a day, month, or all time, anchored on an optional date

Related MCP server: Expense Tracker MCP Server

Deploy on FastMCP Cloud (for claude.ai)

FastMCP Cloud deploys directly from this GitHub repo. When it asks for an entrypoint, use:

server.py

(FastMCP Cloud auto-detects the mcp object in server.py; you'd only need server.py:mcp if the variable were named something else.) It installs requirements.txt automatically. Once deployed, add the resulting https://<your-app>.fastmcp.app/mcp URL as a custom connector in claude.ai's connector settings.

Storage caveat: server.py stores expenses in a local data/expenses.json file. Confirm your FastMCP Cloud plan gives that container a persistent disk — if storage is ephemeral/rebuilt on redeploy, expenses will reset. If you hit that, swap server.py's file-backed storage for a hosted database.

Node/TypeScript setup

npm install
npm run build

Run standalone

npm start

The server communicates over stdio, so it's meant to be launched by an MCP client rather than used directly in a terminal.

Use with Claude Code

claude mcp add expense-tracker -- node /absolute/path/to/mcp-tracker/build/index.js

Use with Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "expense-tracker": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-tracker/build/index.js"]
    }
  }
}

Run the Python version locally

pip install -r requirements.txt
python server.py

Data storage

Expenses are stored in data/expenses.json (created automatically). Set EXPENSE_DATA_DIR to change where data is stored. This applies to both implementations.

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    Enables users to track and manage personal expenses through natural language, including adding entries, filtering by date/category, viewing statistics, and exporting data in JSON or CSV format.
    3
  • 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
    -
    quality
    B
    maintenance
    Enables tracking of personal expenses with tools to add, list, update, delete, and summarize expenses by category.
  • F
    license
    -
    quality
    D
    maintenance
    Enables AI assistants to track and manage expenses, including adding, viewing, and summarizing expenses by category, date, or amount, with persistent local storage.
    1

View all related MCP servers

Related MCP Connectors

  • Log, query, and edit expenses, budgets, and accounts in Ledgy from any MCP-compatible AI assistant.

  • Personal finance by conversation: expenses, receipts, statement import, budgets, net worth.

  • Capture receipts, scan Gmail, analyze spending, and create reviewed reports from AI assistants.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sppandita85/mcp-expense-tracker'

If you have feedback or need assistance with the MCP directory API, please join our Discord server