Skip to main content
Glama
NeelContractor

Expense Tracker MCP Server

Expense Tracker MCP Server

A simple Expense Tracker MCP server built with FastMCP and SQLite.

Features

  • Add expenses

  • List expenses by date range

  • Summarize expenses by category

  • Expose expense categories as an MCP resource

  • Compatible with Claude Desktop and MCP Inspector

Related MCP server: Expense Tracker MCP

Tech Stack

  • Python 3.14+

  • FastMCP 3.4.0

  • SQLite

Installation

Clone the repository and install dependencies:

uv sync

or

uv add fastmcp

Project Structure

.
├── main.py
├── expenses.db
├── categories.json
├── pyproject.toml
├── uv.lock
└── README.md

Available Tools

add_expense

Add a new expense record.

Parameters:

  • date

  • amount

  • category

  • subcategory (optional)

  • note (optional)

Example:

{
  "date": "2026-06-01",
  "amount": 600,
  "category": "transport",
  "subcategory": "cab_ride_hailing",
  "note": "Cab ride to Delhi"
}

list_expenses

List expenses within a date range.

Parameters:

  • start_date

  • end_date

summarize

Summarize expenses by category.

Parameters:

  • start_date

  • end_date

  • category (optional)

Available Resources

expense://categories

Returns the contents of categories.json.

Example categories:

  • food

  • transport

  • housing

  • utilities

  • health

  • education

  • entertainment

  • shopping

  • travel

  • investments

  • and more

Running the MCP Server

Start the server:

uv run fastmcp run main.py

MCP Inspector

Launch the MCP Inspector for local testing:

uv run fastmcp dev inspector main.py

Claude Desktop Integration

Install the server into Claude Desktop:

uv run fastmcp install claude-desktop main.py

Restart Claude Desktop after installation.

Example Prompts

Add an expense:

Add an expense of ₹600 for a cab ride to Delhi last Sunday.

List expenses:

Show all expenses between 2026-06-01 and 2026-06-30.

Summarize expenses:

Summarize my expenses for June 2026.
Install Server
F
license - not found
B
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
    -
    quality
    B
    maintenance
    Enables tracking of personal expenses with tools to add, list, update, delete, and summarize expenses by category.
  • F
    license
    -
    quality
    C
    maintenance
    Enables users to track expenses by adding, listing, and summarizing them with category support through natural language.
  • 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/NeelContractor/expense-tracker-mcp-server'

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