
通过标准(PAT)或HTTP(OAuth)将任何MCP客户端连接到Firefly III——140个工具
概览
一个MCP(模型上下文协议)服务器,连接任何兼容MCP的AI助手到你的Firefly III个人理财实例。用自然语言向你的AI助手提问你的财务问题。 配置好后,你可以问以下问题: - “我上个月在杂货上花了多少钱?”- “给我看本月的预算状态。”- “查找过去30天内任何重复的交易。”- “为我的假期基金设立了一个储蓄罐,目标是2000欧元。”- “今年我最大的支出类别是什么?” 你的AI助手负责Firefly III的API调用——你会用通俗易懂的语言获得答案。 Node.js 22.12+,Firefly III 个人访问令牌(选项→远程访问和令牌→创建新令牌)。 添加到你的Claude MCP配置(.claude/mcp.json或Claude桌面claude_desktop_config.json): 你的MCP客户端在首次使用时会自动下载并启动服务器。不需要单独的安装步骤。 这个STDIO表格是推荐的配置。
概述(AI 翻译)
一个MCP(模型上下文协议)服务器,连接任何兼容MCP的AI助手到你的Firefly III个人理财实例。用自然语言向你的AI助手提问你的财务问题。
📖 完整文档→ daften.github.io/fireflyiii-mcp
你可以问什么
配置好后,你可以问以下问题:
- “我上个月在杂货上花了多少钱?”
- “给我看看本月的预算状态。”
- “查找过去30天内的任何重复交易。”
- “为我的假期基金设立一个储蓄罐,目标是2000欧元。”
- “今年我最大的开销类别是什么?”
你的AI助手负责Firefly III的API调用——你会用通俗易懂的语言获得答案。
选择你的设置方式:
| 方法 | 运输 | 最佳 |
|---|---|---|
| NPM — 标准 | 标准 | 最简单的设置,AI在同一台机器上 |
| npm — HTTP | HTTP + OAuth 或 PAT | 远程 AI 访问,或无浏览器循环的无头网关 |
| Docker — HTTP | HTTP + OAuth 或 PAT | 自托管于服务器或家庭实验室 |
| Git 检查 | 标准或 HTTP | 贡献或本地开发 |
除 Docker 外,所有选项都需要 Node.js 22.12+。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP server for Firefly III
An MCP (Model Context Protocol) server that connects any MCP-compatible AI assistant to your Firefly III personal finance instance. Ask your AI assistant questions about your finances in natural language. Requires Firefly III v6.4.0 or later.
📖 Full documentation → daften.github.io/fireflyiii-mcp
What you can ask
Once configured, you can ask things like:
- “How much did I spend on groceries last month?”
- “Show me my budget status for this month.”
- “Find any duplicate transactions in the last 30 days.”
- “Set up a piggy bank for my vacation fund with a €2000 target.”
- “What were my biggest expense categories this year?”
Your AI assistant handles the Firefly III API calls — you get answers in plain language.
Choose your setup method:
| Method | Transport | Best for |
|---|---|---|
| npm — stdio | stdio | Simplest setup, AI on the same machine |
| npm — HTTP | HTTP + OAuth or PAT | Remote AI access, or a headless gateway with no browser in the loop |
| Docker — HTTP | HTTP + OAuth or PAT | Self-hosted on a server or home lab |
| Git checkout | stdio or HTTP | Contributing or local development |
All options except Docker require Node.js 22.12+.
Option 1: npm package — stdio (simplest)
Requires: Node.js 22.12+, a Firefly III Personal Access Token (Options → Remote access and tokens → Create new token).
Add to your Claude MCP config (.claude/mcp.json or Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"fireflyiii": {
"command": "npx",
"args": ["-y", "@daften/fireflyiii-mcp"],
"env": {
"FIREFLY_URL": "https://your-firefly-instance.example.com",
"FIREFLY_TOKEN": "your-personal-access-token-here"
}
}
}
}
Your MCP client downloads and starts the server automatically on first use. No separate install step needed.
安装
npx -y @daften/fireflyiii-mcp配置
{
"mcpServers": {
"fireflyiii": {
"command": "npx",
"args": ["-y", "@daften/fireflyiii-mcp"],
"env": {
"FIREFLY_URL": "https://your-firefly-instance.example.com",
"FIREFLY_TOKEN": "your-personal-access-token-here"
}
}
}
}