Skip to main content
Glama
mayankchugh-learning

expense-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
add_expenseA

Insert one expense row and return the new row id.

Args: date: Calendar date of the expense, preferably YYYY-MM-DD. amount: Monetary amount (positive number). category: High-level label (e.g. food, transport). subcategory: Optional finer grouping (default empty string). note: Optional free text (default empty string).

Returns: A dict with status "ok" and id set to the new SQLite INTEGER PRIMARY KEY, or None if the driver does not expose it.

list_expensesA

Return all expenses with date between start_date and end_date, inclusive.

Rows are ordered by id ascending.

Args: start_date: Range start, YYYY-MM-DD recommended. end_date: Range end, YYYY-MM-DD recommended.

Returns: List of dicts with keys id, date, amount, category, subcategory, note.

summarizeA

Aggregate total spend per category over a date range.

Args: start_date: Range start, YYYY-MM-DD recommended. end_date: Range end, YYYY-MM-DD recommended. category: If set, only this category is included in the aggregation.

Returns: List of dicts with keys category and total_amount (sum of amount). Sorted by category ascending.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
categoriesMCP resource: raw contents of ``categories.json`` beside ``main.py``. The file is read on each request so edits apply without restarting the server. Returns UTF-8 text; MIME type is ``application/json``. Raises: FileNotFoundError: If ``categories.json`` does not exist.

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/mayankchugh-learning/local-expense-mcp'

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