MCP Hub
Back to servers

lunchmoney-mcp

A comprehensive MCP server that enables AI assistants to manage Lunch Money finances through 37 tools for transactions, budgets, and accounts. It supports both local stdio and remote HTTP transport modes with secure, encrypted credential storage.

glama
Updated
Mar 26, 2026

lunchmoney-mcp

npm version CI License: MIT

The definitive MCP server for Lunch Money -- manage your finances through any AI assistant that supports the Model Context Protocol.

37 tools covering every Lunch Money API endpoint. Runs locally via stdio or remotely over HTTP with OAuth 2.1. Credentials never touch disk in plain text.

Quick Start

npx lunchmoney-mcp setup          # Store your API token in the OS keychain
npx lunchmoney-mcp                # Start the MCP server (stdio)

Then add it to your MCP client. For Claude Desktop, add this to your config:

{
  "mcpServers": {
    "lunchmoney": {
      "command": "npx",
      "args": ["lunchmoney-mcp"]
    }
  }
}

That's it. Ask your AI assistant to "show my recent transactions" and you're off.

Features

  • 37 tools -- full CRUD for transactions, categories, tags, budgets, recurring items, assets, and Plaid accounts
  • Two transport modes -- stdio for local AI clients (Claude Desktop, Cursor) or HTTP for remote/multi-user deployments
  • Secure credential storage -- API tokens in the OS keychain (macOS Keychain, GNOME Keyring, Windows Credential Manager); OAuth session tokens encrypted with AES-256-GCM
  • 4 OAuth providers -- Google, GitHub, CyberArk Identity, or any custom OAuth 2.1 provider
  • Deploy anywhere -- Docker, systemd, Railway, Render, Fly.io with one-click configs included
  • 278 tests -- comprehensive test suite with >90% coverage

Setup

Local (stdio mode)

Best for single-user setups with Claude Desktop, Cursor, or other local MCP clients.

# Install globally (optional -- npx works too)
npm install -g lunchmoney-mcp

# Run the setup wizard to store your token securely
lunchmoney-mcp setup

# Start the server
lunchmoney-mcp

Your API token is stored in the OS keychain and never written to disk. Get a token at my.lunchmoney.app/developers.

Alternatively, you can configure the token from within your AI assistant using the configureLunchMoneyToken tool -- no terminal required.

Remote (HTTP mode)

Best for multi-user deployments, shared teams, or running on a server.

# Set required environment variables
export LUNCH_MONEY_API_TOKEN="your-token"
export AUTH_PROVIDER="google"  # or github, cyberark, custom
export GOOGLE_CLIENT_ID="..."
export GOOGLE_CLIENT_SECRET="..."
export BASE_URL="https://your-domain.com"

# Start the server
lunchmoney-mcp --http --port 8080

HTTP mode requires OAuth 2.1 for authentication. See Authentication below.

Environment Variable Fallback

For containers and CI where no OS keychain is available:

export LUNCH_MONEY_API_TOKEN="your-token"
lunchmoney-mcp

Authentication

HTTP mode supports four OAuth providers. Set AUTH_PROVIDER and the corresponding credentials:

Google

AUTH_PROVIDER=google
GOOGLE_CLIENT_ID=your-client-id
GOOGLE_CLIENT_SECRET=your-client-secret

GitHub

AUTH_PROVIDER=github
GITHUB_CLIENT_ID=your-client-id
GITHUB_CLIENT_SECRET=your-client-secret

CyberArk Identity

AUTH_PROVIDER=cyberark
CYBERARK_TENANT_URL=https://abc1234.id.cyberark.cloud
CYBERARK_CLIENT_ID=your-client-id    # or OAUTH_CLIENT_ID
CYBERARK_CLIENT_SECRET=your-secret   # or OAUTH_CLIENT_SECRET

Custom OAuth

AUTH_PROVIDER=custom
OAUTH_CLIENT_ID=your-client-id
OAUTH_CLIENT_SECRET=your-client-secret
OAUTH_AUTH_URL=https://provider.com/authorize
OAUTH_TOKEN_URL=https://provider.com/token
OAUTH_SCOPES=openid,email  # optional, defaults to openid,email

Deployment

Pre-built deployment configs are included in the repository.

Docker

docker build -t lunchmoney-mcp .
docker run -p 8080:8080 \
  -e LUNCH_MONEY_API_TOKEN="your-token" \
  -e AUTH_PROVIDER=google \
  -e GOOGLE_CLIENT_ID="..." \
  -e GOOGLE_CLIENT_SECRET="..." \
  -e BASE_URL="https://your-domain.com" \
  lunchmoney-mcp

Or with Docker Compose:

docker compose up

systemd

A systemd service file is included at deploy/lunchmoney-mcp.service. Copy it to /etc/systemd/system/ and configure the environment variables.

Railway

Deploy on Railway

The included railway.json configures the build and start commands automatically. Set your environment variables in the Railway dashboard.

Render

The included render.yaml defines the service as a private worker. Set your environment variables in the Render dashboard.

Fly.io

fly launch
fly secrets set LUNCH_MONEY_API_TOKEN="your-token"
fly secrets set AUTH_PROVIDER=google GOOGLE_CLIENT_ID="..." GOOGLE_CLIENT_SECRET="..."
fly deploy

Tools Reference

Setup (1 tool)

ToolDescription
configureLunchMoneyTokenConfigure and validate your Lunch Money API token

User (1 tool)

ToolDescription
getUserGet account details including email, name, and currency preferences

Categories (7 tools)

ToolDescription
getCategoriesList all categories including groups and parent categories
getCategoryGet a single category by ID
createCategoryCreate a new spending or income category
updateCategoryUpdate an existing category's properties
deleteCategoryDelete a category by ID
createCategoryGroupCreate a new category group with optional category IDs
addToGroupAdd existing categories to a category group

Tags (4 tools)

ToolDescription
getTagsList all transaction tags
createTagCreate a new tag for categorizing transactions
updateTagUpdate an existing tag's name
deleteTagDelete a tag by ID

Transactions (10 tools)

ToolDescription
getTransactionsList transactions with filtering (date range, category, tags, status)
getTransactionGet a single transaction by ID
createTransactionCreate a new transaction (expense, income, or transfer)
updateTransactionUpdate an existing transaction's properties
deleteTransactionDelete a transaction by ID
bulkUpdateTransactionsBulk update multiple transactions with the same changes
getTransactionGroupRetrieve a transaction group with all child transactions
createTransactionGroupGroup multiple transactions under a single parent
deleteTransactionGroupDelete a group, restoring individual transactions
unsplitTransactionsReverse a split, merging child transactions back into parent

Recurring Items (4 tools)

ToolDescription
getRecurringItemsList all recurring expense and income items
createRecurringItemCreate a new recurring expense or income item
updateRecurringItemUpdate an existing recurring item's properties
deleteRecurringItemDelete a recurring item by ID

Budgets (4 tools)

ToolDescription
getBudgetsList all budgets with category assignments and date ranges
createBudgetCreate a new budget for a category with amount and date range
updateBudgetUpdate an existing budget's amount, category, or date range
deleteBudgetDelete a budget by ID

Assets (4 tools)

ToolDescription
getAssetsList all manually-managed assets
createAssetCreate a new manually-managed asset
updateAssetUpdate an existing asset's properties including balance
deleteAssetDelete an asset by ID

Plaid Accounts (2 tools)

ToolDescription
getPlaidAccountsList all Plaid-connected accounts with balances
fetchPlaidAccountsTrigger a Plaid sync to update account balances

CLI Reference

lunchmoney-mcp                  # Start in stdio mode (default)
lunchmoney-mcp --http           # Start in HTTP mode with OAuth
lunchmoney-mcp --http --port 3000  # HTTP mode on custom port
lunchmoney-mcp setup            # Run the interactive setup wizard
lunchmoney-mcp --version        # Print version

The server also reads the PORT environment variable when --port is not specified.

Security

Credentials are stored in your OS keychain and never written to disk in plain text. OAuth session tokens are encrypted with AES-256-GCM, with the encryption key stored in the keychain.

For full details on the two-tier credential architecture, threat model, and deployment security, see SECURITY.md.

Contributing

See CONTRIBUTING.md for development setup, testing guidelines, and pull request requirements.

License

MIT -- Copyright (c) 2026 Joe Garcia

Based on lunch-money-mcp by Gilbert Pellegrom, MIT License.

Reviews

No reviews yet

Sign in to write a review