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 a $20 lunch expense to the Food category"
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
An asynchronous Model Context Protocol (MCP) server built with Python and FastMCP to log and track personal expenses inside a local SQLite database with strict category/subcategory checks.
Features
SQLite Database Backend: Logs expenses locally in
expenses.dbusingaiosqlite.Asynchronous Execution: Fully utilizes
asyncioand async database connections.Categorization: Validates categories and subcategories against a custom JSON hierarchy (
categories.json).Exposed Tools:
add_expense: Add a new transaction (validates amount, category, and dates).get_expenses: View matching logs with optional category, subcategory, start date, and end date filters.get_expense_summary: View spent totals, item count, and percentages grouped by category.delete_expense: Remove transaction logs by database ID.
Exposed Resources:
expense://categories: Returns the JSON representation of categories and their subcategories.expense://categories/{category}/subcategories: Returns subcategories for a given category in JSON format.
Files Structure
main.py: Server entrypoint containing initialization, SQLite queries, MCP tools, and MCP resource declarations.
categories.json: Configuration file specifying categories and subcategories.
pyproject.toml: Package configuration with metadata and dependency requirements (
fastmcpandaiosqlite)..gitignore: Configured to ignore virtual environments, cache directories, and local database files.
Installation
Ensure you have uv installed.
To sync dependencies:
uv syncRunning the Server
To start the MCP server locally:
uv run python main.pyDevelopment and Testing
A test suite is available under the artifacts directory. To run the async test suite:
uv run python C:\Users\User\.gemini\antigravity-ide\brain\7f833c64-f9e4-404b-a691-0d0df923616c\scratch\test_server.pyThis 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.
Latest Blog Posts
- 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/akshay0101/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server