Skip to main content
Glama
Lunch Money MCP Server

Lunch Money MCP Server

by robshox

Lunch Money MCP 서버

TypeScript Node.js 라이선스

AI 에이전트가 Lunch Money 개인 금융 데이터와 상호작용할 수 있게 해주는 Model Context Protocol (MCP) 서버입니다.

기능

이 MCP 서버는 금융 데이터를 관리하기 위한 15가지 도구를 제공합니다:

사용자 및 계정

  • get_user — 프로필 및 계정 정보 가져오기

카테고리

  • get_categories — 모든 카테고리 나열 (평면 또는 계층형)

  • create_category — 새로운 사용자 지정 카테고리 생성

  • update_category — 기존 카테고리 수정

거래

  • get_transactions — 필터(날짜 범위, 카테고리, 상태 등)를 사용하여 거래 조회

  • create_transaction — 새로운 거래 추가 (단일 또는 최대 500개 일괄 추가)

  • update_transaction — 거래 업데이트 또는 여러 항목으로 분할

자산 및 계정

  • get_assets — 수동 관리 자산 나열

  • create_asset — 새로운 수동 자산 추가

  • get_plaid_accounts — Plaid 연결 은행 계좌 나열

  • trigger_plaid_fetch — Plaid 계정 동기화 트리거

예산 및 계획

  • get_budgets — 모든 날짜 범위에 대한 예산 및 지출 보기

  • upsert_budget — 예산 금액 설정 또는 업데이트

  • get_recurring_items — 반복되는 비용 및 수입 보기

태그

  • get_tags — 모든 거래 태그 나열

Related MCP server: LunchMoney MCP Server

사전 요구 사항

설치

옵션 1: 복제 및 빌드 (로컬 stdio 전송)

Cursor, Claude Desktop 또는 기타 stdio 기반 MCP 클라이언트와 로컬에서 사용하려면:

# Clone the repository
git clone https://github.com/yourusername/lunchmoney-mcp.git
cd lunchmoney-mcp

# Install dependencies
npm install

# Build the TypeScript
npm run build

옵션 2: Cloudflare Workers (원격 HTTP 전송)

HTTP를 통해 액세스할 수 있는 원격 MCP 서버로 배포:

# Clone the repository
git clone https://github.com/yourusername/lunchmoney-mcp.git
cd lunchmoney-mcp

# Install dependencies
npm install

# Set your API key as a secret
npx wrangler secret put LUNCH_MONEY_API_KEY
# Enter your Lunch Money API key when prompted

# Deploy to Cloudflare Workers
npm run deploy

옵션 3: npx 사용 (로컬 전용)

복제 없이 MCP 서버를 직접 실행할 수 있습니다:

npx -y lunchmoney-mcp

참고: LUNCH_MONEY_API_KEY 환경 변수를 설정해야 합니다.

구성

API 키 가져오기

  1. Lunch Money에 로그인

  2. 설정 → 개발자로 이동

  3. 새 API 키 생성

  4. 키 복사 (안전하게 보관하세요!)

Cursor IDE

Cursor MCP 구성(~/.cursor/mcp.json)에 추가:

{
  "mcpServers": {
    "lunchmoney": {
      "command": "node",
      "args": ["/path/to/lunchmoney-mcp/dist/index.js"],
      "env": {
        "LUNCH_MONEY_API_KEY": "your_api_key_here"
      }
    }
  }
}

또는 npx 사용:

{
  "mcpServers": {
    "lunchmoney": {
      "command": "npx",
      "args": ["-y", "lunchmoney-mcp"],
      "env": {
        "LUNCH_MONEY_API_KEY": "your_api_key_here"
      }
    }
  }
}

Claude Desktop

Claude Desktop 구성(~/Library/Application Support/Claude/claude_desktop_config.json, macOS 기준)에 추가:

{
  "mcpServers": {
    "lunchmoney": {
      "command": "node",
      "args": ["/path/to/lunchmoney-mcp/dist/index.js"],
      "env": {
        "LUNCH_MONEY_API_KEY": "your_api_key_here"
      }
    }
  }
}

기타 MCP 클라이언트

stdio 전송을 지원하는 모든 MCP 클라이언트는 이 서버를 사용할 수 있습니다. LUNCH_MONEY_API_KEY 환경 변수를 설정하고 다음을 실행하세요:

node /path/to/lunchmoney-mcp/dist/index.js

Cloudflare Workers를 통한 원격 MCP (사용자 직접 API 키 사용)

Cloudflare Workers 배포는 각 사용자가 자신의 API 키를 가져와 사용하는 공용 MCP 서버로 설계되었습니다. 서버는 어떠한 API 키도 저장하지 않습니다.

작동 방식:

  1. 서버를 Cloudflare Workers에 배포 (또는 공유 인스턴스 사용)

  2. 각 사용자가 자신의 Lunch Money API 키로 연결

  3. API 키는 X-LunchMoney-API-Key 헤더에 포함되어 각 요청과 함께 전송됨

mcp-remote 프록시로 연결:

{
  "mcpServers": {
    "lunchmoney": {
      "command": "npx",
      "args": ["mcp-remote", "https://lunchmoney-mcp.your-subdomain.workers.dev/mcp"],
      "env": {
        "MCP_HEADERS": "X-LunchMoney-API-Key: your_api_key_here"
      }
    }
  }
}

참고: mcp-remote 프록시는 사용자 지정 헤더를 지원해야 합니다. 일부 MCP 클라이언트는 아직 이를 지원하지 않을 수 있습니다.

⚠️ mcp.json 파일을 자격 증명 파일처럼 취급하세요. 이 파일에는 귀하의 Lunch Money API 키가 포함되어 있습니다. Git 저장소(dotfiles 저장소 포함)에 커밋하지 마십시오. 저장소 내부에 있다면 .gitignore에 추가하십시오. 이 파일에 대한 읽기 권한이 있는 사람은 누구나 귀하의 Lunch Money 데이터를 읽고 수정할 수 있습니다.

보안: 이 모델이 가장 안전한 이유는 다음과 같습니다:

  • 서버가 API 키를 전혀 저장하지 않음

  • 각 사용자는 자신의 데이터에만 액세스함

  • API 키는 서버에 저장되지 않고 요청별로 전달됨

  • 공용 워커는 IP별 속도 제한을 적용하며 요청 본문이나 헤더를 기록하지 않음

Cloudflare Workers 배포 (공용 서버)

이 설정은 누구나 자신의 API 키로 사용할 수 있는 공용 MCP 서버를 생성합니다. 서버는 자격 증명을 저장하지 않습니다.

사전 요구 사항

배포

  1. 의존성 설치:

 npm install
  1. Cloudflare Workers에 배포:

 npm run deploy
  1. 공용 MCP 서버가 활성화되었습니다! URL이 출력에 표시됩니다:

 https://lunchmoney-mcp.your-account.workers.dev/mcp

선택 사항: 테스트를 위해 기본 API 키를 설정할 수 있습니다:

npx wrangler secret put LUNCH_MONEY_API_KEY

사용자가 연결하는 방법

사용자는 자신의 Lunch Money API 키를 사용하여 공용 서버에 연결합니다:

{
  "mcpServers": {
    "lunchmoney": {
      "command": "npx",
      "args": ["mcp-remote", "https://lunchmoney-mcp.your-account.workers.dev/mcp"],
      "env": {
        "MCP_HEADERS": "X-LunchMoney-API-Key: their_api_key_here"
      }
    }
  }
}

Wrangler를 사용한 로컬 개발

# Run locally with hot reload
npm run dev:worker

보안 모델

  • 서버는 API 키를 저장하지 않음 — 키는 헤더를 통해 요청별로 전달됨

  • 사용자는 자신의 데이터에만 액세스함 — 각 요청은 사용자의 고유 키를 사용함

  • 공개적으로 액세스 가능 — 누구나 서버를 사용할 수 있지만, 자신의 Lunch Money 계정이 필요함

이는 공용 API 게이트웨이가 작동하는 방식과 유사합니다. 인프라는 공유되지만 자격 증명은 사용자별로 관리됩니다.

사용 예시

구성이 완료되면 AI 어시스턴트에게 다음과 같이 질문할 수 있습니다:

  • "이번 달 카테고리별 지출을 보여줘"

  • "지난주 가장 큰 지출은 무엇이었어?"

  • "3월의 분류되지 않은 모든 거래를 분류해줘"

  • "'프리랜서 수입'이라는 새로운 카테고리를 만들어줘"

  • "1분기에 식료품에 얼마를 썼어?"

  • "반복되는 모든 구독 항목을 나열해줘"

개발

로컬 stdio 모드 (Cursor, Claude Desktop용)

# Install dependencies
npm install

# Run in development mode with hot reload
npm run dev

# Build for production
npm run build

# Type check without emitting
npm run typecheck

# Test with MCP Inspector
npm run inspect

Cloudflare Workers 모드 (원격 HTTP 액세스용)

# Build the Worker
npm run build

# Run locally with Wrangler
npm run dev:worker

# Deploy to production
npm run deploy

프로젝트 구조

src/
├── index.ts           # MCP server entry point (stdio mode)
├── worker.ts          # Cloudflare Workers entry point (HTTP mode)
├── client.ts          # Lunch Money API client
├── types.ts           # TypeScript type definitions
├── tool-utils.ts      # Shared tool utilities
└── tools/             # Individual tool implementations
    ├── user.ts
    ├── categories.ts
    ├── transactions.ts
    ├── assets.ts
    ├── plaid.ts
    ├── budgets.ts
    ├── recurring.ts
    └── tags.ts

배포 모드

모드

전송

사용 사례

진입점

로컬

stdio

Cursor, Claude Desktop

src/index.ts

Cloudflare Workers

스트리밍 HTTP

원격 액세스, 웹 클라이언트

src/worker.ts

두 모드 모두 동일한 도구 구현과 API 클라이언트를 공유합니다.

보안

API 키 보호

  • API 키를 절대 커밋하지 마십시오. 이러한 이유로 .env 파일은 .gitignore에 포함되어 있습니다.

  • 키는 환경 변수나 안전한 MCP 구성 파일에 저장하십시오.

  • 키가 노출된 경우 Lunch Money 개발자 페이지에서 즉시 취소하고 새 키를 생성하십시오.

데이터 개인정보 보호

  • 이 서버는 AI 어시스턴트와 Lunch Money 사이의 프록시 역할을 합니다.

  • 귀하의 금융 데이터는 Lunch Money의 개인정보 처리방침에 따라 처리됩니다.

  • 오류 메시지는 우발적인 정보 노출을 방지하기 위해 정제됩니다.

권한

제공하는 API 키에 따라 MCP 서버가 수행할 수 있는 작업이 결정됩니다. Lunch Money API 키는 다음을 수행할 수 있습니다:

  • 모든 금융 데이터 읽기

  • 거래 생성, 업데이트 및 삭제

  • 카테고리 및 예산 수정

  • Plaid 동기화 트리거

API 참조

이 MCP 서버는 Lunch Money API v1을 사용합니다.

속도 제한

Lunch Money API에는 속도 제한이 있습니다. MCP 서버는 API에서 발생하는 모든 속도 제한 오류를 그대로 전달합니다. 속도 제한이 발생하면 몇 분 기다린 후 다시 시도하십시오.

오류 처리

서버는 Lunch Money API 오류를 처리하여 MCP 도구 오류로 반환합니다. 참고 사항:

  • Lunch Money는 때때로 논리적 오류를 HTTP 200 응답으로 반환하며, 이는 적절한 오류로 정규화됩니다.

  • 서버는 잠재적인 민감 정보를 제거하기 위해 오류 메시지를 정제합니다.

  • 전체 오류 세부 정보는 디버깅을 위해 stderr에 기록됩니다.

문제 해결

"Missing LUNCH_MONEY_API_KEY" 오류

LUNCH_MONEY_API_KEY 환경 변수가 설정되지 않았습니다. MCP 구성을 확인하고 키가 올바르게 구성되었는지 확인하십시오.

"Unauthorized" 오류

API 키가 유효하지 않거나 취소되었을 수 있습니다. https://my.lunchmoney.app/developers에서 키를 확인하십시오.

거래가 나타나지 않음

Plaid 연결 계정을 사용하는 경우 동기화를 트리거해야 할 수 있습니다:

  • trigger_plaid_fetch 도구를 사용하여 백그라운드 동기화를 대기열에 추가하십시오.

  • 이는 작업만 대기열에 추가하는 것이며, 거래가 나타나기까지 몇 분 정도 걸릴 수 있습니다.

기여

기여를 환영합니다! 자유롭게 Pull Request를 제출해 주세요.

  1. 저장소 포크

  2. 기능 브랜치 생성 (git checkout -b feature/amazing-feature)

  3. 변경 사항 커밋 (git commit -m 'feat: add amazing feature')

  4. 브랜치 푸시 (git push origin feature/amazing-feature)

  5. Pull Request 열기

라이선스

이 프로젝트는 ISC 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 LICENSE 파일을 참조하십시오.

감사의 말

지원

  • 이 MCP 서버 관련 문제는 GitHub 이슈를 열어주세요.

  • Lunch Money API 관련 질문은 Lunch Money API 문서를 참조하세요.

  • MCP 프로토콜 관련 질문은 MCP 문서를 참조하세요.


면책 조항: 이 프로젝트는 비공식 커뮤니티 프로젝트입니다. Lunch Money와 제휴하거나 보증하지 않습니다.

Available Tools

15 tools
create_assetC

Create a manually managed asset in Lunch Money.

Inputs: type_name (required), name (required), balance (required), subtype_name, +6 more.

create_categoryC

Create a new Lunch Money category.

Inputs: name (required), description, is_income, exclude_from_budget, +3 more.

create_transactionC

Create one or more Lunch Money transactions.

Inputs: transactions (required), apply_rules, skip_duplicates, check_for_recurring, +2 more.

get_assetsA
Read-only

List manually managed Lunch Money assets.

Inputs: no named parameters.

get_budgetsA
Read-only

Get Lunch Money budgets and spending for a date range.

Inputs: start_date (required), end_date (required), currency.

get_categoriesA
Read-only

List Lunch Money categories in flattened or nested form.

Inputs: format.

get_plaid_accountsA
Read-only

List Lunch Money Plaid-connected accounts.

Inputs: no named parameters.

get_recurring_itemsA
Read-only

Get Lunch Money recurring items for the current or specified month range.

Inputs: start_date, end_date, debit_as_negative.

get_tagsA
Read-only

List all Lunch Money tags.

Inputs: no named parameters.

get_transactionsC
Read-only

Get Lunch Money transactions with optional filters.

Inputs: tag_id, recurring_id, plaid_account_id, category_id, +9 more.

get_userA
Read-only

Get information about the Lunch Money user connected to the configured API key.

Inputs: no named parameters.

trigger_plaid_fetchC

Trigger a Lunch Money fetch for eligible Plaid accounts. This queues a background fetch job.

Inputs: start_date, end_date, plaid_account_id.

update_categoryC

Update an existing Lunch Money category.

Inputs: category_id (required), name, description, is_income, +4 more.

update_transactionC

Update a Lunch Money transaction or split it into multiple child transactions.

Inputs: transaction_id (required), transaction, split, debit_as_negative, +1 more.

upsert_budgetC

Create or update a Lunch Money budget entry for a category and month.

Inputs: start_date (required), category_id (required), amount (required), currency.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 15 tools

    Disambiguation5/5

    Each tool targets a distinct resource or action, with clear separation between asset, category, transaction, budget, account, recurring item, tag, and user operations. No overlapping functionality.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (e.g., create_asset, get_transactions, update_category), using the same set of verbs (create, get, update, upsert, trigger) throughout.

    Tool Count5/5

    With 15 tools, the server covers the core aspects of personal finance management without being overloaded or underdeveloped. Each tool has a clear purpose.

    Completeness2/5

    The server provides create, read, and update operations for several resources, but lacks delete operations for all resources and missing update for assets and recurring items. Tags only have a get operation, leaving significant gaps in the lifecycle.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables managing personal finances through the Lunch Money API, including transactions, categories, budgets, and accounts via natural language commands.
      14
      5
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants and MCP clients to access and manage LunchMoney personal finance data, including transactions, categories, tags, budgets, accounts, recurring items, and crypto through LunchMoney's API.
      41 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables 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 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants and other MCP clients to interact with LunchMoney data for automated financial insights, transaction management, budgeting, and more. Provides comprehensive tools for categories, tags, transactions, recurring items, budgets, accounts, cryptocurrency, and balance history via LunchMoney's API.
      41 npm
      MIT