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.
Related MCP server: Expense Tracker MCP Server
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.
Related MCP Servers
- FlicenseCqualityDmaintenanceEnables personal expense management with SQLite storage, allowing users to add, update, delete, list, and summarize expenses by category through natural language interactions.5
- FlicenseAqualityDmaintenanceEnables tracking and managing personal expenses through a local SQLite database. Supports adding, editing, deleting, listing, and summarizing expenses by category, as well as managing credit accounts.6
- Alicense-qualityCmaintenanceEnables AI assistants to manage personal expenses by adding, querying, and summarizing expense data through a SQLite database and configurable categories.1GPL 3.0
- Flicense-qualityDmaintenanceEnables management of expenses via SQLite database, including adding, listing, updating, deleting, filtering, and summing expenses through natural language.
Related MCP Connectors
Log, query, and edit expenses, budgets, and accounts in Ledgy from any MCP-compatible AI assistant.
Personal finance by conversation: expenses, receipts, statement import, budgets, net worth.
Receipt tracker with no friction: receipts arrive by email and file themselves
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/akshay0101/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server