expenselm-mcp-server
OfficialClick on "Deploy 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., "@expenselm-mcp-server what did I spend on travel last month?"
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.
ExpenseLM MCP Server
Introduction
MCP server for ExpenseLM.
ExpenseLM is an easy to use, GenAI powered Expense Management application. From expense recording to expense insights and advice, ExpenseLM puts you in control of your money like never before. MCP server enables access to your expense data with your favorite AI Agent.
mcp-name: io.github.clarenceh/expenselm-mcp-server
Related MCP server: Expense_Tracker_MCP
Installation
Prerequisites
uv
Python 3.9+
ExpenseLM API key (Instructions)
Setup MCP Client
Claude Desktop (Mac)
Add the following MCP server in your Claude Desktop configuration.
Config file (create if not exists): ~/Library/Application Support/Claude/claude_desktop_config.json
Add the following into your config file (replace the value of EXPENSELM_API_KEY with your own key).
{
"mcpServers": {
"expenselm": {
"command": "uvx",
"args": [
"expenselm-mcp-server"
],
"env": {
"EXPENSELM_API_KEY": "Replace with your ExpenseLM API Key",
"MCP_TIMEOUT": "200000"
}
}
}
}Claude Desktop (Windows)
Add the following MCP server in your Claude Desktop configuration.
Config file (create if not exists): %AppData%\Claude\claude_desktop_config.json (e.g. C:\Users[YourUsername]\AppData\Roaming\Claude\claude_desktop_config.json)
Add the following into your config file (replace the value of EXPENSELM_API_KEY with your own key).
{
"mcpServers": {
"expenselm": {
"command": "uv",
"args": [
"tool",
"run",
"expenselm-mcp-server"
],
"env": {
"EXPENSELM_API_KEY": "Replace with your ExpenseLM API Key",
"MCP_TIMEOUT": "200000"
}
}
}
}Perplexity Desktop (Mac)
In Perplexity Desktop for Mac, navigate to "Settings" -> "Connectors". Click "Add Connector".
Enter ExpenseLM MCP Server configuration like the below screenshot. Replace the environment variable "EXPENSELM_API_KEY" with your own key.

Publish new version
Available Tools
10 toolsdownload_expense_receipt_imageA
Download an expense receipt image from the backend API.
Args: expense_id: The ID of the expense to download the receipt image for thumbnail: Whether to download the thumbnail version (default: False)
Returns: dict containing the image data (base64 encoded), content type, and metadata
Inputs: expense_id (required), thumbnail. Returns: object
get_expense_by_idA
Get an expense record by id.
Args: id: The id of the expense.
Returns: ExpenseImageData: The expense record.
Inputs: id (required). Returns: Represents the image and the extracted data of an expense.
get_expense_count_by_periodA
Get expense count for the provided period.
Example usage: When user want to perform analytics for a period, first use this method to get the count of total expenses first. Then can use the get_latest_expenses tool to fetch the expenses by page to get all records.
Args: from_date (required): The start date for filtering. Format is YYYY-MM-DD. to_date (required): The end date for filtering. Format is YYYY-MM-DD.
Returns: int: The count of expense reocrds for the period.
Inputs: to_date (required), from_date (required). Returns: result
get_expense_summary_by_category_by_currencyA
Get expense summary by category and currency for the provided period.
Args: from_date (required): The start date for filtering. Format is YYYY-MM-DD. to_date (required): The end date for filtering. Format is YYYY-MM-DD.
Returns: list[CategoryCurAmtStatItem]: The expense summary by category and currency.
Inputs: to_date (required), from_date (required). Returns: result
get_expense_summary_by_month_by_currencyA
Get expense summary by month and currency for the provided period.
Args: from_date (required): The start date for filtering. Format is YYYY-MM-DD. to_date (required): The end date for filtering. Format is YYYY-MM-DD.
Returns: list[MonthCurAmtStatItem]: The expense summary by month and currency. For month, the format is YYYY-MM.
Inputs: to_date (required), from_date (required). Returns: result
get_expense_summary_by_subscription_by_currencyA
Get expense summary by subscription and currency for the provided period.
Args: from_date (required): The start date for filtering. Format is YYYY-MM-DD. to_date (required): The end date for filtering. Format is YYYY-MM-DD.
Returns: list[SubscriptionCurAmtStatItem]: The expense summary by subscription and currency.
Inputs: to_date (required), from_date (required). Returns: result
get_latest_expensesB
Get the latest expense records.
Also for searching expenses by the provided criterias.
Args: skip (int): The number of records to skip. Default is 0. limit (int): The maximum number of records to return. Default is 10. from_date (Optional[date]): The start date for filtering. Default is None. Format is YYYY-MM-DD. to_date (Optional[date]): The end date for filtering. Default is None. Format is YYYY-MM-DD. text_input (Optional[str]): The text for semantic search. Default is None.
Returns: list[ExpenseRecord]: The latest expense records.
Inputs: skip, limit, to_date, from_date, +1 more. Returns: result
get_latest_subscription_expensesA
Get the latest expense records related to regular subscriptions.
Args: skip (int): The number of records to skip. Default is 0. limit (int): The maximum number of records to return. Default is 10. from_date (Optional[date]): The start date for filtering. Default is None. Format is YYYY-MM-DD. to_date (Optional[date]): The end date for filtering. Default is None. Format is YYYY-MM-DD. text_input (Optional[str]): The text for semantic search. Default is None.
Returns: list[ExpenseRecord]: The latest subscription expense records.
Inputs: skip, limit, to_date, from_date, +1 more. Returns: result
get_subscription_expense_count_by_periodA
Get subscription based expense count for the provided period.
Example usage: When user want to perform analytics of subscription based expenses for a period, first use this method to get the count of total subscription based expenses first. Then can use the get_latest_subscription_expenses tool to fetch the expenses by page to get all records.
Args: from_date (required): The start date for filtering. Format is YYYY-MM-DD. to_date (required): The end date for filtering. Format is YYYY-MM-DD.
Returns: int: The count of subscription based expense reocrds for the period.
Inputs: to_date (required), from_date (required). Returns: result
save_expense_receipt_imageA
Download and save an expense receipt image to a local file.
Args: expense_id: The ID of the expense to download the receipt image for save_path: Local file path where the image should be saved thumbnail: Whether to download the thumbnail version (default: False)
Returns: dict containing success status and file information
Inputs: save_path (required), expense_id (required), thumbnail. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools are clearly separated by resource and action: expense list/by-id, subscription expenses, summary dimensions, counts, and receipts. The only real ambiguity is between download_expense_receipt_image and save_expense_receipt_image, which differ mainly in whether the image is returned as data or written to a local file.
All names consistently use snake_case with a clear verb (get, download, save) followed by the object and modifiers. Patterns like get_expense_summary_by_*_by_currency and get_*_expense_count_by_period make the toolset predictable and easy to navigate.
Ten tools is well-scoped for an expense retrieval and analytics server. Each tool covers a distinct retrieval, summary, count, or receipt operation, with no redundant or filler tools.
The server covers the apparent read-only analytics domain thoroughly: listing/searching/paginating expenses, by-id lookup, subscription expenses, monthly/category/subscription summaries, per-period counts, and receipt image retrieval/saving. The count + pagination flow is explicitly supported, so there are no dead ends.
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
The Ramp MCP server enables users to securely connect Ramp with AI assistants like ChatGPT and Claude to query financial data and take actions using natural language. It transforms Ramp's developer API into a SQL interface that LLMs can query, allowing admins to analyze spend trends, identify cost savings, and run complex SQL analyses on comprehensive datasets (transactions, purchase orders, vendors, users), while all users can manage cards, view transactions, request reimbursements, and get expense policy answers.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA lightweight MCP server that lets LLM clients track, query, and summarize personal expenses using a local SQLite database.-
- AlicenseNot gradedqualityDmaintenanceA production-grade MCP server for personal finance management, enabling AI agents to add, update, search expenses, manage budgets and credit cards, and generate financial reports.2MIT
- FlicenseNot gradedqualityDmaintenanceAI-powered expense tracking MCP server that connects LLM clients to PostgreSQL for natural language expense management.-
- FlicenseNot gradedqualityDmaintenanceAn MCP server for managing SAP Concur expense reports, allowing AI agents to create and update expenses, attach receipts and attendees, and read report data, while leaving submission and approval to humans.-