ExpenseTracker MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π° ExpenseTracker MCP Server
A lightweight and scalable Expense Tracking MCP Server built using FastMCP and SQLite. This server allows you to add, list, and summarize expenses efficiently, making it ideal for personal finance management or integration with MCP-compatible clients like Claude Desktop.
π Features
β Add expenses with category and notes
π List expenses within a date range
π Summarize expenses by category
π Default categories support (with fallback)
β‘ Async database operations using
aiosqliteβοΈ Cloud-ready (FastMCP deployment compatible)
Related MCP server: expense-tracker-mcp-server
π οΈ Tech Stack
Python
FastMCP
SQLite (aiosqlite for async support)
π Project Structure
.
βββ main.py # Main MCP server file
βββ requirements.txt # Dependencies
βββ categories.json # (Optional) Custom categories
βββ README.mdβοΈ Setup & Installation
1. Clone the repository
git clone https://github.com/your-username/your-repo-name.git
cd your-repo-name2. Create virtual environment
python -m venv venv
venv\Scripts\activate # Windows3. Install dependencies
pip install -r requirements.txtβΆοΈ Running the Server
python main.pyServer will start at:
http://0.0.0.0:8000π MCP Endpoint
Once deployed on FastMCP, your endpoint will look like:
https://your-app-name.fastmcp.app/mcpβ οΈ Note: Authentication is required to access this endpoint.
π Available Tools
β€ Add Expense
Adds a new expense entry.
Parameters:
date(YYYY-MM-DD)amount(float)category(string)subcategory(optional)note(optional)
β€ List Expenses
Fetch expenses within a date range.
Parameters:
start_dateend_date
β€ Summarize Expenses
Get category-wise expense summary.
Parameters:
start_dateend_datecategory(optional)
π Categories Resource
Endpoint:
expense:///categoriesLoads from
categories.jsonif availableFalls back to default categories if file is missing
π§ How It Works
Uses a temporary directory for database storage
Initializes database on startup
Uses async operations for better performance
Safe fallback mechanisms for missing files
β οΈ Common Issues & Fixes
β Pre-flight check failed
Ensure your file name is
main.pyMake sure
mcp = FastMCP(...)is correctCheck logs for missing dependencies
β Module not found
Add missing packages to
requirements.txt
Example:
fastmcp
aiosqliteπ‘ Future Improvements
User authentication system
Dashboard UI
Monthly budget tracking
Data export (CSV/Excel)
π¨βπ» Author
Built with β€οΈ for learning and real-world MCP integration.
β Support
If you like this project:
Star β the repo
Share with others
Contribute improvements
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Query your real net worth, spending, transactions, budgets and portfolio from any MCP client.
Log, query, and edit expenses, budgets, and accounts in Manilo from any MCP-compatible AI assistant.
A simple MCP server built with FastMCP and python
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA lightweight MCP server for tracking personal expenses, income, and budget summaries using SQLite.4Martin Birgmeier
- FlicenseBqualityDmaintenanceMCP server for tracking personal expenses using FastMCP and SQLite, enabling adding, listing, updating, deleting expenses and summarizing by category via natural language tools.51-
- FlicenseAqualityDmaintenanceA 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.3-
- FlicenseNot gradedqualityDmaintenanceA lightweight local MCP server for tracking personal or small-team expenses. It lets you add expense entries, list transactions within a date range, and generate simple summaries by category β all backed by a local SQLite database.-