Skip to main content
Glama
SyedSarimAbbas

Expense_Tracker_MCP

๐Ÿ’ฐ Expense Tracker MCP

๐Ÿค– AI-Powered Expense Management using Model Context Protocol


๐Ÿ“Œ Overview

Expense Tracker MCP is an AI-powered financial management system built usingModel Context Protocol (MCP ).

The system allows Large Language Models to interact with expense data throughMCP tools, enabling users to:

  • Add expenses

  • Search expenses

  • Analyze spending patterns

  • Generate financial insights

  • Communicate with expense data using natural language


๐Ÿง  MCP Architecture

flowchart TB


USER["๐Ÿ‘ค User"]

CLIENT["๐Ÿ”Œ MCP Client"]

SERVER["โšก FastMCP Server"]

TOOLS["๐Ÿ›  MCP Tools"]

FASTAPI["๐Ÿš€ FastAPI Application"]

MONGO["๐Ÿƒ MongoDB Database"]



USER --> CLIENT

CLIENT --> SERVER

SERVER --> TOOLS

TOOLS --> FASTAPI

FASTAPI --> MONGO

๐Ÿš€ Key Features

๐Ÿ’ธ Expense Managementโœ… Create expensesโœ… Update expensesโœ… Delete expensesโœ… Retrieve expense recordsโœ… Store financial history

๐Ÿ”Œ Model Context Protocol

This project implements MCP architecture:

User|MCP Client|FastMCP Server|Expense Tools|MongoDB

Related MCP server: Expense Tracker MCP

๐Ÿ› ๏ธ Technology Stack

###๐Ÿ Core Development

โšก MCP Framework

๐Ÿš€ Backend

๐Ÿƒ Database

๐Ÿ“ฆ Validation & Configuration

Pydantic v2Pydantic SettingsEnvironment Variablespython-dotenv

๐Ÿ“‚ Project Structure

Expense_Tracker/
โ”‚
โ”œโ”€โ”€ app/
โ”‚   โ””โ”€โ”€ db/
โ”‚       โ”œโ”€โ”€ database.py       # MongoDB connection configurations & client initialization
โ”‚       โ””โ”€โ”€ application.py    # Core FastAPI application routing and logic
โ”‚
โ”œโ”€โ”€ mcp/
โ”‚   โ”œโ”€โ”€ mcp_client.py         # MCP Client implementation for context bridging
โ”‚   โ””โ”€โ”€ mcp_server.py         # FastMCP Server registering the operational tools
โ”‚
โ”œโ”€โ”€ .env                      # Local environment variable configuration
โ”œโ”€โ”€ .gitignore                # Specified version control exclusions (e.g., venv, __pycache__ )
โ”œโ”€โ”€ .python-version           # Explicit python version pinning
โ”œโ”€โ”€ pyproject.toml            # Project metadata, dependencies, and editable tool configurations
โ””โ”€โ”€ README.md                 # System documentation## โš™๏ธ Installation

Clone repository:

git clone https://github.com/YOUR_USERNAME/Expense-Tracker-MCP.git

cd Expense-Tracker-MCP

Install dependencies:

pip install -e .

๐Ÿ” Environment Configuration


Create .env


MONGODB_URI=your_mongodb_connection_string

DATABASE_NAME=expense_tracker

โ–ถ๏ธ Running Application

Start MCP Server

-expense-server

or

python mcp_server.py

๐ŸŒ Remote MCP Server

This project also provides a remote MCP server that users can connect to:https://expense-tracker-01.fastmcp.app/mcp

API Documentation:

http://localhost:8000/docs

๐Ÿ”ฎ Future Improvements

-Expense prediction using ML-Budget recommendation engine-Voice-based expense entry-Multi-user authentication-React dashboard-Cloud deployment-Mobile application

๐Ÿ‘จโ€๐Ÿ’ป Developer

Sarim Abbas

AI Engineer | Backend Developer | Agentic AI Developer

โญ Star this repository if you find it useful!

F
license - not found
-
quality - not tested
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.

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/SyedSarimAbbas/Expense_Tracker_MCP'

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