Skip to main content
Glama
vansh216

Expense Tracker MCP Server

by vansh216

Expense Tracker MCP Server

An MCP (Model Context Protocol) server built with FastMCP for managing and analyzing expenses through AI assistants such as Claude, ChatGPT, Gemini, Cursor, and other MCP-compatible clients.

Features

Tools

1. Add Expense

Add a new expense record.

Parameters:

  • date

  • amount

  • category

  • subcategory (optional)

  • note (optional)

2. List Expenses

Retrieve all stored expenses.

3. Get Expenses by Category

Filter expenses by category.

4. Calculate Total Expenses

Calculate the total amount spent.

5. Summarize Expenses

Generate a spending summary including:

  • Total expenses

  • Number of transactions

  • Category-wise spending

  • Highest expense

  • Lowest expense

  • Average expense

Example Response:

{
  "total_expenses": 12500,
  "transaction_count": 45,
  "average_expense": 277.78,
  "highest_expense": 1500,
  "lowest_expense": 50,
  "category_breakdown": {
    "Food": 3500,
    "Transport": 2200,
    "Shopping": 4800,
    "Bills": 2000
  }
}

Related MCP server: expense-tracker-mcp-server

MCP Resources

expense://categories

Returns available expense categories.

MIME Type:

application/json

Example:

{
  "categories": [
    "Food",
    "Transport",
    "Shopping",
    "Bills",
    "Healthcare",
    "Entertainment",
    "Education",
    "Other"
  ]
}

Project Structure

expense-tracker/
│
├── main.py
├── expenses.db
├── categories.json
├── pyproject.toml
├── README.md
└── .venv/

Installation

git clone <repository-url>
cd expense-tracker
uv sync

Running the MCP Server

uv run fastmcp run main.py

Development mode:

uv run fastmcp run main.py --reload

Example Expense Record

{
  "date": "2026-06-20",
  "amount": 250,
  "category": "Food",
  "subcategory": "Restaurant",
  "note": "Lunch"
}

Database

SQLite is used for storing expenses.

Fields:

  • id

  • date

  • amount

  • category

  • subcategory

  • note


Supported MCP Clients

  • Claude Desktop

  • ChatGPT MCP Clients

  • Gemini MCP Clients

  • Cursor

  • VS Code MCP Extensions

  • Any MCP-compatible MCP client


License

No license specified. All rights reserved by the project owner unless otherwise stated.

Install Server
F
license - not found
B
quality
B
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

  • A
    license
    A
    quality
    D
    maintenance
    Personal expense tracker MCP server that enables tracking expenses, income, budgets, and savings goals through natural language.
    Last updated
    10
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    MCP server for tracking personal expenses using FastMCP and SQLite, enabling adding, listing, updating, deleting expenses and summarizing by category via natural language tools.
    Last updated
    5
    1
  • F
    license
    B
    quality
    D
    maintenance
    A remote MCP server for expense tracking, providing tools to add, list, update, delete expenses, and generate summaries, budget status, and monthly trends.
    Last updated
    8
  • F
    license
    -
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server for tracking personal expenses. This server provides tools to add, list, and summarize expenses, utilizing a local SQLite database for storage.
    Last updated

View all related MCP servers

Related MCP Connectors

  • Hosted MCP server for Mini Accountant: invoices, expenses, customers, analytics, tax estimates.

  • MCP server for URL shortening and management

  • MCP server for generating rough-draft project plans from natural-language prompts.

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/vansh216/Expensive_Tracker_MCP_Server'

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