
etnperlong/firefly-iii-mcp 是从 https://github.com/etnperlong/firefly-iii-mcp. 导入的 MCP 服务器候选服务器。
概览
etnperlong/firefly-iii-mcp 是从 https://github.com/etnperlong/firefly-iii-mcp. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
这是一个用于Firefly III的模型上下文协议(MCP)服务器,Firefly III是一款免费且开源的个人理财管理器。通过该MCP服务器,用户可以利用AI工具管理Firefly III账户和交易,创建个人理财和会计的AI助手。
查看中文版
项目结构
该项目采用Turborepo管理的单仓库结构,包含以下主要包:
- @firefly-iii-mcp/core - 为与 Firefly III API 交互提供基础的核心功能模块
- @firefly-iii-mcp/local - 用于本地运行MCP服务器的命令行工具
- @firefly-iii-mcp/cloudflare-worker - 部署到Cloudflare Workers的实现
- @firefly-iii-mcp/server - 基于Express的服务器实现,支持可流式HTTP和SSE
特色
- 通过AI与Firefly III实例互动
- 程序化管理账户和交易
- 适用于各种财务操作的可扩展工具集
- 支持本地和云部署
- 兼容模型上下文协议标准
- 通过预设或自定义标签进行工具过滤,以减少代币使用。
先修条件
- 一个正在运行的Firefly III实例
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Firefly III MCP Server
This is a Model Context Protocol (MCP) server for Firefly III, a free and open-source personal finance manager. Through this MCP server, users can leverage AI tools to manage their Firefly III accounts and transactions, creating AI assistants for personal finance and accounting.
Project Structure
This project uses a Turborepo-managed monorepo structure, containing the following main packages:
- @firefly-iii-mcp/core - Core functionality module providing the foundation for interacting with the Firefly III API
- @firefly-iii-mcp/local - Command-line tool for running the MCP server locally
- @firefly-iii-mcp/cloudflare-worker - Implementation for deployment to Cloudflare Workers
- @firefly-iii-mcp/server - Express-based server implementation with Streamable HTTP and SSE support
Features
- Interact with Firefly III instances via AI
- Programmatically manage accounts and transactions
- Extensible toolset for various financial operations
- Support for both local and cloud deployment
- Compatible with the Model Context Protocol standard
- Tool filtering via presets or custom tags to reduce token usage
Prerequisites
- A running Firefly III instance
- A Cloudflare account if you plan to deploy using the “Deploy to Cloudflare” button
Getting Started
1. Obtain a Firefly III Personal Access Token (PAT)
To allow the MCP server to interact with your Firefly III instance, you need to generate a Personal Access Token (PAT):
- Log in to your Firefly III instance
- Navigate to Options > Profile > OAuth
- Under the “Personal access tokens” section, click on “Create new token”
- Give your token a descriptive name (e.g., “MCP Server Token”)
- Click “Create”
- Important: Copy the generated token immediately. You will not be able to see it again.
For more details, refer to the official Firefly III documentation on Personal Access Tokens.
2. Configure the MCP Server
You need to provide the Firefly III PAT and your Firefly III instance URL to the MCP server. This can be done in several ways:
Request Headers (Recommended)
Provide these values in the headers of each request to the MCP server. This is generally the most secure method:
X-Firefly-III-Url: Your Firefly III instance URL (e.g.,https://firefly.yourdomain.com)Authorization: The Personal Access Token, typically prefixed withBearer(e.g.,Bearer YOUR_FIREFLY_III_PAT)
Please consult the documentation of the AI tool or client you are using for the exact header names it expects.
Query Parameters (Use with caution)
Alternatively, you can provide these values in the query parameters of each request to the MCP server:
baseUrl: Your Firefly III instance URLpat: Your Firefly III Personal Access Token
安装
npx @firefly-iii-mcp/local --pat <Your Firefly III Personal Access Token> --baseUrl <Your Firefly III Base URL> --preset default配置
{
"mcpServers": {
"firefly-iii": {
"command": "npx",
"args": [
"@firefly-iii-mcp/local",
"--pat",
"<Your Firefly III Personal Access Token>",
"--baseUrl",
"<Your Firefly III Base URL>",
"--preset",
"default"
]
}
}
}