Expense Tracker MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Expense Tracker MCP ServerAdd $50 for gas under Transportation/Fuel"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Expense Tracker MCP Server
A Python-based FastMCP server for tracking personal expenses with MongoDB storage and a fixed category/subcategory model.
Project Overview
This repository implements an expense tracker as an MCP service using fastmcp. It stores expenses in a MongoDB collection and enforces a predefined set of categories and subcategories defined in categories.json.
The server exposes the following MCP tools:
list_categories()add_expense(amount, category, subcategory, date=None, note=None)update_expense(expense_id, amount=None, category=None, subcategory=None, date=None, note=None)delete_expense(expense_id)list_expenses(start_date=None, end_date=None, category=None, limit=20)get_expense_summary(start_date=None, end_date=None, group_by="category")
Related MCP server: expense-tracker-mcp-server
Requirements
Python 3.13 or newer
MongoDB access via connection URI
fastmcppython-dotenvpymongo
Setup
Create and activate a Python virtual environment.
Install dependencies:
pip install -r requirements.txtCreate a
.envfile at the project root with:
MONGODB_URI=<your-mongodb-uri>Run the server:
python main.pyThe server listens on port
8000by default and can be overridden with thePORTenvironment variable.
Configuration
main.pycontains the MCP service configuration, database connection logic, and expense CRUD operations.categories.jsondefines the allowed categories and subcategories for every expense.render.yamldefines a Render deployment configuration that installs requirements and starts the service.
Expense Data Model
Each expense document includes:
amount(float)category(string)subcategory(string)date(stored as a date object)note(optional string)created_at(UTC timestamp)
Expense IDs are stored as MongoDB _id values and returned as expense_id in serialized responses.
Usage Notes
Use
list_categories()before adding or updating an expense so you can choose valid category and subcategory values.Dates must be in
YYYY-MM-DDformat when provided.add_expense()requires a positive amount.update_expense()only changes the fields you provide.list_expenses()defaults to the most recent 20 expenses and supports filtering by date range and category.get_expense_summary()aggregates totals by category or by month.
Deployment on Render
The included render.yaml configures a Python web service:
buildCommand:pip install -r requirements.txtstartCommand:python main.pyMONGODB_URIis expected from a Render-managed secret namedmongodb_uri
Category Guidance
The app uses the category definitions from categories.json, so do not invent new categories or subcategories. If you need to verify valid values, call list_categories().
This server cannot be installed
Maintenance
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
- FlicenseNot gradedqualityDmaintenanceA lightweight server built with FastMCP and SQLite for managing personal finances. It allows users to add, list, and summarize expenses by category through MCP-compatible clients.
- 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
- FlicenseNot gradedqualityBmaintenanceA simple MCP server for tracking expenses in a local SQLite database, enabling add, read, update, delete, and summarization of expenses with predefined categories.
- FlicenseBqualityCmaintenanceAn AI-powered MCP server for personal and group expense management, providing CRUD operations, advanced filtering, analytics, Splitwise-style splitting, budget tracking, and report generation.38
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 InsForge BaaS — database, storage, edge functions, and deployments
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/jayasurya-madugonde/expense-tracker-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server