SuperAPIAI Directory

lunchmoney-mcp

github.com · AI developer platforms

lunchmoney-mcp is a Model Context Protocol (MCP) server implementation for the LunchMoney personal finance management platform, providing programmatic access through the LunchMoney API. It enables AI assistants and other MCP clients to interact with LunchMoney data, supporting automated financial insights, transaction management, budget management, and more. The server is implemented type-safely with TypeScript and Zod, uses TOON encoding instead of JSON to reduce token consumption in AI conversations, follows a standard MCP server architecture with stdio transport, and supports convenient installation in Claude Desktop as an MCP Bundle (.mcpb). The current version v4.0.1 performs input validation against the LunchMoney v2 API (alpha), keeps tool names and parameters unchanged, and adds six settings-related tools.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Purpose

lunchmoney-mcp is a Model Context Protocol (MCP) server that provides programmatic access to the LunchMoney personal finance management platform. It enables AI assistants and other MCP clients to read and manipulate LunchMoney data, thereby supporting scenarios such as automated financial insights, transaction management, and budgeting.

Key Capabilities

The server covers the main data domains of LunchMoney:

  • User Management: Retrieve user account details.
  • Categories: Full CRUD operations on categories and category groups.
  • Tags: Full CRUD operations on transaction tags.
  • Transactions: Full CRUD with support for advanced filtering, bulk updates, bulk deletion, splitting, grouping, and file attachments.
  • Recurring Items: Track and manage recurring expenses, including system-suggested items.
  • Budgets: Period budget summaries, account-level budget settings, upsert, and deletion.
  • Manual Accounts: Full CRUD on manually managed accounts (formerly called "assets").
  • Plaid Accounts: List, retrieve, and trigger synchronization of connected bank accounts.
  • Crypto: Full CRUD on manual crypto balances, read and refresh synced crypto accounts, and manage the list of supported cryptocurrencies.
  • Balance History: Read, upsert, and delete monthly balance history for manual, Plaid, crypto, and deleted accounts.

Technical features include: full integration with the LunchMoney API v2 (alpha); type-safe implementation using TypeScript and Zod validation; use of TOON encoding instead of JSON to reduce token consumption in AI conversations; modular architecture for easy extension; and a standard MCP server implementation based on stdio transport.

Usage

Installation Options

MCP Bundle (Claude Desktop): Download the latest .mcpb file from the releases page, open Extensions in Claude Desktop, click "Install Extension" and select the downloaded file, then enter your LunchMoney API token when prompted (from LunchMoney Developer Settings), and the tool is ready to use.

Claude Code CLI: You can add the LunchMoney MCP server to Claude Code, with support for debug logging, and you can verify whether the server was added successfully.

Codex CLI: You can add this MCP server to Codex.

Manual MCP configuration: Add the server configuration to the MCP client's configuration file. The configuration location varies by client: for Claude Desktop on macOS it is ~/Library/Application Support/Claude/claude_desktop_config.json, on Windows it is %APPDATA%\Claude\claude_desktop_config.json, and on Linux it is ~/.config/Claude/claude_desktop_config.json. Add the configuration to the mcpServers section, save, and restart the client.

Environment variable notes: LUNCHMONEY_DEBUG is optional; set it to "true" to enable debug logging of API requests and responses (output to stderr). LUNCHMONEY_ATTACHMENTS_DIR is optional; attach_file_to_transaction is the only tool that reads the filesystem, and before uploading it verifies that the file is actually a JPEG, PNG, HEIC, HEIF, or PDF; setting this variable restricts reads to the specified directory and rejects .. and symlinks pointing outside it; if not set, the server can read any path, which is usually fine for a local stdio server but is not suitable for remote deployment.

Remote deployment

The built-in stdio binary is suitable for desktop MCP clients, but mobile Claude and claude.ai custom connectors only support HTTP. There are two ways to expose it remotely:

  • Cloudflare Workers: lunchmoney-mcp-cloudflare wraps this package as a Cloudflare Worker, fronted by Google login and an email allowlist. The entire stack can run within the free tiers of Cloudflare and Google Cloud, and the setup.sh wizard handles KV creation, OAuth client setup, secrets, and deployment. Each authenticated user runs in their own Durable Object, and the configuration singleton is isolated per user.
  • Self-hosted HTTP transport: For single-user deployments, you can connect createServer() to StreamableHTTPServerTransport and serve it through any Node HTTP framework (such as Express, Hono, Fastify). You need to add authentication yourself in front of /mcp; this package does not provide transport-layer authentication.

For remote deployment, you should set LUNCHMONEY_ATTACHMENTS_DIR, because attach_file_to_transaction reads the path provided by the caller; in an HTTP scenario the caller and the file owner may differ, and unrestricted reads could be exploited by a remote caller or a model subject to prompt injection. The content type check (only genuine JPEG/PNG/HEIC/HEIF/PDF files can be uploaded) is a fallback measure, not a replacement.

Multi-tenant warning: this mode serves one user per process and shares one API token. If you want to serve multiple users in a single Node process, you will encounter the single-tenant configuration singleton problem; you need to fork a process per user or use the Cloudflare approach described above (each user gets an independent isolate).

Prerequisites

Requires Node.js 16+, npx in the system PATH, and a valid LunchMoney API token with appropriate permissions.

Use cases

Example prompts demonstrate typical usage: account overview ("Show me my LunchMoney account details"), category management (create categories, category groups, delete and reassign transactions), transaction management (filter by date/amount, create expenses, update transactions, group them, budget summaries), manual account tracking (create savings accounts, update investment account balances, close old credit cards), recurring expenses (view subscriptions, list recurring items for the next 3 months), bank integrations (view Plaid accounts, refresh data, trigger syncs, view crypto holdings, update Bitcoin balances, add cold wallets), net worth and balance history (view 12-month net worth changes, set a balance for a given month, clear old account history), analysis and insights (top spending categories this month, filter by tag, find uncategorized transactions).

Limitations

  • Currently targets the LunchMoney v2 API (alpha) and is not backward compatible with v1.x servers: tool names, fields, and endpoint shapes have changed (e.g., assets became manual_accounts, the tags array became tag_ids, transaction asset_id became manual_account_id, the debit_as_negative switch was removed, and the budget summary moved to the new /summary endpoint). To rely on v1.x, pin @akutishevsky/lunchmoney-mcp@^1.4.3.
  • v3.0.0 removed get_all_crypto; crypto tools now use the v2 crypto endpoints, splitting manual and synced holdings into separate resources, with no merged equivalent of the v1 GET /crypto; use get_all_manual_crypto and get_all_synced_crypto instead. update_manual_crypto also removed the currency parameter. To rely on get_all_crypto, pin @akutishevsky/lunchmoney-mcp@^2.2.0.
  • v4.0.1 validates input against the LunchMoney v2 specification, so input that the API would reject is rejected before the request is sent: unknown currency codes, null or empty amounts, unpaired date ranges, updates with no fields, and conflicting fields such as manual_account_id and plaid_account_id. delete_tag and delete_category now report 422 as an error, and split children with category_id: null are sent as uncategorized rather than 0. To rely on the old behavior, pin @akutishevsky/lunchmoney-mcp@^3.0.0.
  • Remote deployments must handle authentication themselves; multi-tenancy requires isolating processes per user or using a Cloudflare solution.
  • Attachment uploads support only JPEG, PNG, HEIC, HEIF, and PDF, and must not exceed 10MB.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools