LunchMoney 的模型上下文协议 (MCP) 服务器实现,通过 LunchMoney 的 API 提供对个人财务管理的程序化访问。也可作为桌面扩展工具 (DXT),便于在 Claude Desktop 中安装。
<a href="https://glama.ai/mcp/servers/@akutishevsky/lunchmoney-mcp"> <img width="380" height="200" src="https://gips2.baidu.com/it/u=1971159020,3754810925&fm=3081&app=3081&f=PNG?w=760&h=400" alt="LunchMoney Server MCP 服务器" /> </a>此 MCP 服务器允许 AI 助手和其他 MCP 客户端与 LunchMoney 数据进行交互,支持自动化的财务洞察、交易管理、预算制定等功能。
最简单的安装方式是将其作为 Claude Desktop 的桌面扩展工具:
.dxt 文件。.dxt 文件。要使用任何兼容 MCP 的客户端(如 Claude Desktop),您需要将其添加到客户端的配置中。
可以在您的 MCP 客户端配置文件中配置该服务器。具体位置和格式可能因客户端而异,但通常遵循以下模式:
{
"mcpServers": {
"lunchmoney": {
"command": "npx",
"args": ["@akutishevsky/lunchmoney-mcp"],
"env": {
"LUNCHMONEY_API_TOKEN": "your-api-token-here"
}
}
}
}
将 "your-api-token-here" 替换为您实际的 LunchMoney API 令牌,从LunchMoney 开发者设置获取。
不同的 MCP 客户端存储其配置的位置不同:
Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json其他 MCP 客户端:查阅您的客户端文档以了解配置文件位置。
mcpServers 部分。npx# 使用 npx 运行
LUNCHMONEY_API_TOKEN="your-api-token" npx @akutishevsky/lunchmoney-mcp
这里有一些您可以与 LunchMoney MCP 服务器一起使用的示例提示:
get_user - 获取当前用户详情get_all_categories - 列出所有支出类别get_single_category - 获取特定类别的详细信息create_category - 创建新的类别create_category_group - 创建类别组update_category - 更新类别属性add_to_category_group - 将类别添加到组中delete_category - 删除类别force_delete_category - 强制删除并清理数据get_all_tags - 列出所有可用标签get_transactions - 列出具有广泛过滤选项的交易get_single_transaction - 获取详细的交易信息create_transactions - 创建新的交易update_transaction - 更新现有交易unsplit_transactions - 从拆分组中移除交易get_transaction_group - 获取交易组详细信息create_transaction_group - 创建交易组delete_transaction_group - 删除交易组get_recurring_items - 列出指定日期范围内的重复项目get_budget_summary - 获取指定日期范围内的预算总结upsert_budget - 创建或更新预算金额remove_budget - 移除类别的预算get_all_assets - 列出所有手动管理的资产create_asset - 创建新的资产update_asset - 更新资产属性get_all_plaid_accounts - 列出所有连接的 Plaid 账户trigger_plaid_fetch - 触发从 Plaid 获取最新数据get_all_crypto - 列出所有加密货币资产update_manual_crypto - 更新手动管理的加密货币余额lunchmoney-mcp/
├── src/
│ ├── index.ts # 服务器入口点
│ ├── config.ts # 配置管理
│ ├── types.ts # TypeScript 类型定义
│ └── tools/ # 工具实现
│ ├── user.ts
│ ├── categories.ts
│ ├── tags.ts
│ ├── transactions.ts
│ ├── recurring-items.ts
│ ├── budgets.ts
│ ├── assets.ts
│ ├── plaid-accounts.ts
│ └── crypto.ts
├── build/ # 编译后的 JavaScript 输出
├── package.json
├── tsconfig.json
└── README.md
# 构建 MCP 服务器
npm run build
# 构建用于发布的 DXT 包
npm run build:dxt
src/tools/ 中创建一个新文件。src/index.ts 中注册工具。src/types.ts 添加类型。服务器实现了完整的 LunchMoney API v1。有关详细的 API 文档,请参阅:
欢迎贡献!请随时提交拉取请求。
MIT 许可证