Lunch Money MCP Server
Click 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., "@Lunch Money MCP Server show me my transactions for July 2024"
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.
Lunch Money MCP Server
A Model Context Protocol (MCP) server for the Lunch Money API v2, designed with minimal response sizes to prevent context window bloat.
Features
Optimized responses: Concise, formatted output to minimize token usage
Simple authentication: Uses environment variable for API token
Type-safe: Built with modern Python type hints
Easy to extend: Add more endpoints one at a time
Related MCP server: LunchMoney MCP Server
Currently Supported Endpoints
add_numbers- Helper tool for arithmetic operationsget_current_user- Get information about the authenticated user (GET /me)get_transaction- Get details about a specific transaction by ID (GET /transactions/{id})get_transactions- List transactions for a date range (GET /transactions)
Installation
Clone this repository:
git clone <your-repo-url>
cd lunchmoney-mcp-miniInstall dependencies using uv:
uv syncConfiguration
Get Your API Token
Log in to Lunch Money
Go to the Developers page
Create a new API token or use an existing one
Set Environment Variable
export LUNCHMONEY_API_TOKEN="your-api-token-here"Or create a .env file (not committed to git):
LUNCHMONEY_API_TOKEN=your-api-token-hereUsage
With Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"lunchmoney-mini": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/lunchmoney-mcp-mini",
"run",
"lunchmoney_mcp_mini/main.py"
],
"env": {
"LUNCHMONEY_API_TOKEN": "your-api-token-here"
}
}
}
}Standalone Testing
# Make sure LUNCHMONEY_API_TOKEN is set
uv run lunchmoney_mcp_mini/main.pyAvailable Tools
add_numbers
Helper tool for performing arithmetic operations with precise decimal handling to avoid floating-point precision issues.
Parameters:
numbers(required): List of numbers to add together. Can include negative values for subtraction.
Returns:
sum: Sum rounded to 2 decimal placesinput_count: Number of values provided
Example output:
{
"sum": 123.45,
"input_count": 3
}get_current_user
Get details about the authenticated Lunch Money user.
Returns:
name: User's full nameemail: User's email addressuser_id: Unique user identifieraccount_id: Unique account identifierbudget_name: Name of the budgetprimary_currency: Primary currency code (e.g., 'usd')api_key_label: Label for the API key being used
Example output:
{
"name": "John Doe",
"email": "john@example.com",
"user_id": 12345,
"account_id": 67890,
"budget_name": "Family budget",
"primary_currency": "usd",
"api_key_label": "Development key"
}get_transaction
Get full details about a specific transaction by its ID.
Parameters:
transaction_id(required): ID of the transaction to retrieve
Returns: Complete transaction object with all available fields including:
Core data: id, date, amount, currency, payee, original_name
Category/accounts: category_id, manual_account_id, plaid_account_id, recurring_id
Metadata: plaid_metadata, custom_metadata, files (if any)
Grouping/splitting: is_split_parent, split_parent_id, is_group_parent, group_parent_id, children
Timestamps: created_at, updated_at
Status: status, is_pending, source, external_id, tag_ids, notes
Example output:
{
"id": 2112150655,
"date": "2024-07-28",
"amount": -45.50,
"currency": "USD",
"payee": "Whole Foods",
"original_name": "WHOLE FOODS #1234",
"category_id": 82,
"status": "reviewed",
"is_pending": false,
"created_at": "2024-07-28T12:34:56.789Z",
"updated_at": "2024-07-28T12:34:56.789Z"
}get_transactions
List transactions within a specified date range.
Parameters:
start_date(required): Start date in YYYY-MM-DD formatend_date(optional): End date in YYYY-MM-DD format. Defaults to last day of start_date's monthcategory_id(optional): Filter by category IDtag_id(optional): Filter by tag IDstatus(optional): Filter by status ("reviewed", "unreviewed", "delete_pending")is_pending(optional): Filter by pending statusmanual_account_id(optional): Filter by manual account IDplaid_account_id(optional): Filter by plaid account IDrecurring_id(optional): Filter by recurring item IDinclude_pending(optional): Include pending transactionslimit(optional): Maximum number of transactions (1-2000, default 100)offset(optional): Pagination offsetinclude_aggregates(optional): If True, calculates totals per category for full date range (respects all filters)
Returns:
transactions: Array of transaction objectshas_more: Boolean indicating if more transactions are availableaggregates(optional): Category totals and counts wheninclude_aggregates=True
Transaction fields:
id: Transaction IDdate: Transaction date (YYYY-MM-DD)amount: Transaction amount (numeric string)payee: Payee namecategory_id: Category IDstatus: Transaction statusis_pending: Pending status
Aggregates fields (when include_aggregates=True):
by_category: Array sorted bytotal_amountdescending, each with:category_id: Category ID (or null for uncategorized)category_name: Category namecount: Number of transactions in this categorytotal_amount: Sum of transaction amounts (numeric string)
total_count: Total number of transactionstotal_amount: Sum of all transaction amounts (numeric string)
Example output (without aggregates):
{
"transactions": [
{
"id": 2112150655,
"date": "2024-07-28",
"amount": "1250.8400",
"payee": "Paycheck",
"category_id": 88,
"status": "reviewed",
"is_pending": false
}
],
"has_more": false
}Example output (with aggregates):
{
"transactions": [...],
"has_more": false,
"aggregates": {
"by_category": [
{"category_id": 88, "category_name": "Rent", "count": 2, "total_amount": "2500.00"},
{"category_id": 82, "category_name": "Groceries", "count": 5, "total_amount": "245.50"},
{"category_id": null, "category_name": "Uncategorized", "count": 3, "total_amount": "45.00"}
],
"total_count": 10,
"total_amount": "2790.50"
}
}Design Philosophy
This MCP server is intentionally designed to return minimal, focused responses to avoid filling up the context window. Each tool:
Returns only essential information
Uses concise formatting
Avoids verbose JSON dumps
Provides human-readable output
Technical Details
This server uses:
FastMCP: A high-level Python framework for building MCP servers
requests-openapi: Automatically generates API client from OpenAPI spec
OpenAPI 3.0 spec: Ensures type safety and accurate API calls
The combination of FastMCP and requests-openapi means:
Less boilerplate code
Automatic request/response validation
Easy to add new endpoints from the spec
Type-safe API calls
Resources
License
MIT
Available Tools
6 toolsadd_numbersA
Helper tool for adding numbers together.
LLMs should use this tool for arithmetic operations to avoid calculation errors. This is especially useful for summing expenses, calculating totals, or performing any arithmetic where precision matters.
Args: numbers: List of numbers to add together. Can include negative values for subtraction.
Returns: Dictionary with the sum rounded to 2 decimal places to avoid floating-point precision issues.
Inputs: numbers (required). Returns: object
get_accountsA
Get all accounts (both manual and Plaid-synced).
Returns a combined list of all accounts in the user's budget, including:
Manual accounts: manually-managed asset/liability accounts
Plaid accounts: accounts synced with financial institutions
Each account includes minimal information: id, name, type, balance, currency, status, and account_type (to distinguish between 'manual' and 'plaid' accounts).
Useful for understanding which accounts are available and their current balances.
Inputs: no named parameters. Returns: object
get_categoriesB
Return a list of category names.
Inputs: no named parameters. Returns: result
get_current_userA
Get details about the current Lunch Money user.
Returns user information including:
name: User's full name
email: User's email address
user_id: Unique user identifier
account_id: Unique account identifier
budget_name: Name of the budget
primary_currency: Primary currency code (e.g., 'usd')
api_key_label: Label for the API key being used (or null)
Useful for verifying authentication and understanding the account context.
Inputs: no named parameters. Returns: object
get_transactionA
Get details about a specific transaction.
Retrieves the full details of a single transaction by its ID, including:
Core data: id, date, amount, currency, payee, original_name
Category: category name (and category_id for reference)
Accounts: manual_account_id, plaid_account_id, recurring_id
Metadata: plaid_metadata, custom_metadata, files (if available)
Grouping/splitting: is_split_parent, split_parent_id, is_group_parent, group_parent_id, children
Timestamps: created_at, updated_at
Status: status, is_pending, source, external_id, tag_ids, notes
Args: transaction_id: ID of the transaction to retrieve
Returns: Full transaction object with all available fields
Inputs: transaction_id (required). Returns: object
get_transactionsA
Get transactions for a date range.
This is a paginated tool and you MUST consider that not all transactions
may be returned. The has_more return value will tell you if pagniation
should continue. If has_more is true, ask yourself if you need to make
another request to properly answer the user's query.
include_aggregates returns aggregates for all pages.
Args: start_date: Start date in YYYY-MM-DD format (required) end_date: End date in YYYY-MM-DD format (defaults to last day of start_date's month) filter_category_name: Filter by category name (e.g., "Groceries", "Dining Out") filter_tag_id: Filter by tag ID filter_status: Filter by transaction status (reviewed, unreviewed, delete_pending) filter_is_pending: Filter by pending status filter_manual_account_id: Filter by manual account ID filter_plaid_account_id: Filter by plaid account ID filter_recurring_id: Filter by recurring item ID include_pending: Include pending transactions (ignored if is_pending is set) limit: Maximum number of transactions to return (1-100, default 100) offset: Pagination offset include_aggregates: If True, calculates totals per category for full date range (respects all filters, except pagination)
Returns: Structured JSON where transactions include category names instead of IDs, has_more pagination flag, and optionally category aggregates. When has_more is true, next_offset and next_limit are provided for easy pagination.
Inputs: start_date (required), limit, offset, end_date, +9 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct resource or action: user info, categories, arithmetic, transaction list, single transaction, and accounts. No overlap or ambiguity.
All tools use a consistent verb_noun pattern in snake_case (e.g., get_current_user, get_transactions, add_numbers). No mixing of conventions.
6 tools is well-scoped for a personal finance MCP server covering user, categories, transactions, and accounts with a helper arithmetic tool. Not too many or too few.
The server is heavily read-only, missing write operations for transactions, categories, and accounts. The arithmetic helper is out of domain, and there are no create, update, or delete tools.
Maintenance
Related MCP Connectors
Read-only Lunch Money accounts, transactions, categories and budgets. Unofficial connector.
Query your real net worth, spending, transactions, budgets and portfolio from any MCP client.
SmartMoney77 MCP v0.6.0 — 14 public tools that turn financial questions into exact numbers and citable links. New: historical_investment_return and compare_investments, which compute "what if I had invested" results from real yearly price data. Also compound interest, FIRE number, credit-card payoff, emergency fund, inflation, latte factor, investment fees, cost of waiting, plus discovery/deep-link/share-pack tools for a catalog of calculators in 6 languages (he/en/ar/es/pt/in). Public, no login. Endpoint: https://smartmoney77.com/mcp
Log, query, and edit expenses, budgets, and accounts in Manilo from any MCP-compatible AI assistant.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants and other MCP clients to manage personal finances through the LunchMoney API, covering transactions, budgets, categories, tags, recurring items, accounts, crypto, and balance history.41 npm-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants and MCP clients to access personal finance data through LunchMoney's API, covering transactions, categories, tags, recurring items, budgets, manual and Plaid accounts, crypto, and balance history. Supports full CRUD operations with token-efficient responses and stdio or remote HTTP transport.41 npm-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants and MCP clients to manage personal finance data through the LunchMoney API, including transactions, budgets, categories, tags, accounts, recurring items, and crypto balances.41 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants and other MCP clients to manage personal finance data via the LunchMoney API, covering transactions, categories, tags, budgets, recurring items, accounts, crypto, and balance history.41 npmMIT