Skip to main content
Glama
ashishkathane599

Expense Tracker MCP Server

Expense Tracker MCP Server

A lightweight, async Model Context Protocol (MCP) server that lets any MCP-compatible AI assistant (like Claude) add, list, and summarize your personal expenses — backed by SQLite.

Built with FastMCP and deployed on FastMCP Cloud.

🔗 Live MCP endpoint: https://slippery-tomato-sawfish.fastmcp.app/mcp


What it does

Once connected, an AI assistant can manage your expenses conversationally — no forms, no spreadsheets. Just say "add ₹500 for groceries" or "summarize my July spending" and it happens.

Related MCP server: Expense Tracker MCP Server

Tools

Tool

Description

add_expense(date, amount, category, subcategory="", note="")

Adds a new expense entry to the database

list_expenses(start_date, end_date)

Lists all expenses within an inclusive date range, most recent first

summarize(start_date, end_date, category=None)

Groups and totals expenses by category within a date range

Resources

  • expense:///categories — Returns the list of supported expense categories as JSON.

Tech Stack

  • FastMCP — MCP server framework

  • aiosqlite — fully async SQLite driver (no blocking calls on the event loop)

  • SQLite — simple, file-based storage (auto-initialized on first run)

Why async?

Every tool (add_expense, list_expenses, summarize) is defined with async def and uses aiosqlite under the hood. This means the server doesn't block while waiting on database I/O — multiple requests can be handled concurrently instead of queuing behind a single synchronous call.

Database

The database (expenses.db) is created automatically in the system's temp directory on first run, with the following schema:

CREATE TABLE expenses(
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    date TEXT NOT NULL,
    amount REAL NOT NULL,
    category TEXT NOT NULL,
    subcategory TEXT DEFAULT '',
    note TEXT DEFAULT ''
)

WAL journal mode is enabled for better concurrent read/write performance.

Running Locally

pip install fastmcp aiosqlite

python server.py

By default this starts an HTTP server on 0.0.0.0:8000. To run over stdio instead (for local MCP clients), swap the mcp.run(...) call at the bottom of the file.

Deploying

This server is deployed on FastMCP Cloud, which handles hosting the HTTP transport and gives you a public MCP URL you can plug into any MCP client (Claude, etc.) — no need to manage your own server or ngrok tunnel.

Connecting from Claude

Add the MCP endpoint as a connector:

https://slippery-tomato-sawfish.fastmcp.app/mcp

Once connected, just talk to it naturally:

"Add an expense of ₹450 for groceries today" "Show me my expenses from this month" "Summarize my spending by category"

Roadmap / Ideas

  • Edit/delete expense entries

  • Monthly budget limits + alerts

  • Export to CSV

  • Multi-user support with auth


Built as a hands-on project to learn the Model Context Protocol — from local server to a deployed, always-on tool an AI assistant can actually use.

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

Related MCP Servers

  • F
    license
    B
    quality
    D
    maintenance
    MCP server for tracking personal expenses using FastMCP and SQLite, enabling adding, listing, updating, deleting expenses and summarizing by category via natural language tools.
    Last updated
    5
    1
  • F
    license
    -
    quality
    D
    maintenance
    A powerful SQLite-backed expense tracking server built with the Model Context Protocol (MCP). This server allows AI agents (like Claude) to manage your personal finances by adding, deleting, and listing expenses directly from your chat interface.
    Last updated
  • F
    license
    -
    quality
    D
    maintenance
    A local MCP server for tracking personal expenses using SQLite, enabling users to add, list, and summarize expenses via natural language.
    Last updated
  • F
    license
    -
    quality
    C
    maintenance
    An MCP server that enables any MCP-compatible client to add, list, and summarize expenses through natural conversation, using FastMCP and aiosqlite for async database operations.
    Last updated

View all related MCP servers

Related MCP Connectors

  • MCP server for AI dialogue using various LLM models via AceDataCloud

  • GibsonAI MCP server: manage your databases with natural language

  • MCP server for Gainium — manage trading bots, deals, and balances via AI assistants

View all MCP Connectors

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/ashishkathane599/test-remote-mcp-server'

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